feat(rover): remove cell click popup; map clicks are no-ops
This commit is contained in:
parent
9bfd345e8d
commit
cbc20d03bf
1 changed files with 0 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue