feat(rover): remove cell click popup; map clicks are no-ops

This commit is contained in:
Graham McIntire 2026-04-25 17:09:13 -05:00
parent 9bfd345e8d
commit cbc20d03bf
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -161,13 +161,6 @@ export const RoverMap: Partial<RoverMapHook> = {
this.stations = []
}
map.on("click", (e: L.LeafletMouseEvent) => {
this.pushEvent("rover_cell_detail", {
lat: e.latlng.lat,
lon: e.latlng.lng
})
})
this.visibilityHandler = () => {
if (document.visibilityState === "visible") {
this.map.invalidateSize()
@ -219,12 +212,6 @@ export const RoverMap: Partial<RoverMapHook> = {
) => {
this.map.flyTo([lat, lon], zoom, { duration: 0.6 })
})
this.handleEvent("show_cell_popup", (
{ lat, lon, html }: { lat: number; lon: number; html: string }
) => {
L.popup().setLatLng([lat, lon]).setContent(html).openOn(this.map)
})
},
reconnected(this: RoverMapHook) {