feat(rover): default Maidenhead grid overlay to on

This commit is contained in:
Graham McIntire 2026-04-26 09:27:33 -05:00
parent 7f77939fa4
commit 535fda7cce
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -91,7 +91,7 @@ export const RoverMap: Partial<RoverMapHook> = {
this.selectedCandidateMarker = null
this.candidatePathLayer = L.layerGroup()
this.gridLayer = L.layerGroup()
this.gridVisible = false
this.gridVisible = true
this.cellLookup = new Map()
this.topoLayer = null
@ -183,6 +183,8 @@ export const RoverMap: Partial<RoverMapHook> = {
map.fitBounds(this.driveCircle.getBounds(), { padding: [20, 20] })
this.candidatePathLayer.addTo(map)
this.gridLayer.addTo(map)
updateGridOverlay(map, this.gridLayer)
L.control.scale({ metric: false, imperial: true, position: "bottomleft" }).addTo(map)