Show grid squares by default on rover planner
This commit is contained in:
parent
e1af2e7045
commit
e6aab62ea8
2 changed files with 4 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ export const RoverMap = {
|
||||||
this.scoreOverlay = null
|
this.scoreOverlay = null
|
||||||
this.gridLookup = new Map()
|
this.gridLookup = new Map()
|
||||||
this.gridLayer = L.layerGroup()
|
this.gridLayer = L.layerGroup()
|
||||||
this.gridVisible = false
|
this.gridVisible = true
|
||||||
|
|
||||||
this.colorScale = [
|
this.colorScale = [
|
||||||
{ min: 80, r: 0, g: 255, b: 163 },
|
{ min: 80, r: 0, g: 255, b: 163 },
|
||||||
|
|
@ -30,6 +30,8 @@ export const RoverMap = {
|
||||||
|
|
||||||
this.map = map
|
this.map = map
|
||||||
this.stationMarkers.addTo(map)
|
this.stationMarkers.addTo(map)
|
||||||
|
this.gridLayer.addTo(map)
|
||||||
|
updateGridOverlay(map, this.gridLayer)
|
||||||
|
|
||||||
// Render pre-loaded propagation scores
|
// Render pre-loaded propagation scores
|
||||||
const initialScores = JSON.parse(this.el.dataset.scores || "[]")
|
const initialScores = JSON.parse(this.el.dataset.scores || "[]")
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ defmodule MicrowavepropWeb.RoverLive do
|
||||||
url_loaded: false,
|
url_loaded: false,
|
||||||
initial_scores_json: Jason.encode!(initial_scores),
|
initial_scores_json: Jason.encode!(initial_scores),
|
||||||
bounds: @initial_bounds,
|
bounds: @initial_bounds,
|
||||||
grid_visible: false
|
grid_visible: true
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue