feat(rover): default Maidenhead grid overlay to on
This commit is contained in:
parent
7f77939fa4
commit
535fda7cce
1 changed files with 3 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ export const RoverMap: Partial<RoverMapHook> = {
|
||||||
this.selectedCandidateMarker = null
|
this.selectedCandidateMarker = null
|
||||||
this.candidatePathLayer = L.layerGroup()
|
this.candidatePathLayer = L.layerGroup()
|
||||||
this.gridLayer = L.layerGroup()
|
this.gridLayer = L.layerGroup()
|
||||||
this.gridVisible = false
|
this.gridVisible = true
|
||||||
this.cellLookup = new Map()
|
this.cellLookup = new Map()
|
||||||
this.topoLayer = null
|
this.topoLayer = null
|
||||||
|
|
||||||
|
|
@ -183,6 +183,8 @@ export const RoverMap: Partial<RoverMapHook> = {
|
||||||
map.fitBounds(this.driveCircle.getBounds(), { padding: [20, 20] })
|
map.fitBounds(this.driveCircle.getBounds(), { padding: [20, 20] })
|
||||||
|
|
||||||
this.candidatePathLayer.addTo(map)
|
this.candidatePathLayer.addTo(map)
|
||||||
|
this.gridLayer.addTo(map)
|
||||||
|
updateGridOverlay(map, this.gridLayer)
|
||||||
|
|
||||||
L.control.scale({ metric: false, imperial: true, position: "bottomleft" }).addTo(map)
|
L.control.scale({ metric: false, imperial: true, position: "bottomleft" }).addTo(map)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue