Show grid squares by default on rover planner

This commit is contained in:
Graham McIntire 2026-04-08 09:08:24 -05:00
parent e1af2e7045
commit e6aab62ea8
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,7 @@ export const RoverMap = {
this.scoreOverlay = null
this.gridLookup = new Map()
this.gridLayer = L.layerGroup()
this.gridVisible = false
this.gridVisible = true
this.colorScale = [
{ min: 80, r: 0, g: 255, b: 163 },
@ -30,6 +30,8 @@ export const RoverMap = {
this.map = map
this.stationMarkers.addTo(map)
this.gridLayer.addTo(map)
updateGridOverlay(map, this.gridLayer)
// Render pre-loaded propagation scores
const initialScores = JSON.parse(this.el.dataset.scores || "[]")

View file

@ -39,7 +39,7 @@ defmodule MicrowavepropWeb.RoverLive do
url_loaded: false,
initial_scores_json: Jason.encode!(initial_scores),
bounds: @initial_bounds,
grid_visible: false
grid_visible: true
)}
end