diff --git a/assets/js/rover_map_hook.ts b/assets/js/rover_map_hook.ts index 6a15f0c3..42172366 100644 --- a/assets/js/rover_map_hook.ts +++ b/assets/js/rover_map_hook.ts @@ -161,13 +161,6 @@ export const RoverMap: Partial = { 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 = { ) => { 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) {