diff --git a/assets/js/propagation_map_hook.js b/assets/js/propagation_map_hook.js index 8313e791..fad5e9e6 100644 --- a/assets/js/propagation_map_hook.js +++ b/assets/js/propagation_map_hook.js @@ -439,9 +439,9 @@ export const PropagationMap = { opacity: 0.9, fillColor: "#000", fillOpacity: 0.2, - dashArray: "8,6" - }).bindTooltip(`${rangeKm} km (max)`, { permanent: false, direction: "top" }) - .addTo(this.rangeCircles) + dashArray: "8,6", + interactive: false + }).addTo(this.rangeCircles) if (typicalKm < rangeKm) { L.circle(center, { @@ -450,9 +450,9 @@ export const PropagationMap = { weight: 3, opacity: 0.9, fillColor: "#000", - fillOpacity: 0.25 - }).bindTooltip(`${typicalKm} km (typical)`, { permanent: false, direction: "top" }) - .addTo(this.rangeCircles) + fillOpacity: 0.25, + interactive: false + }).addTo(this.rangeCircles) } L.circleMarker(center, { @@ -460,7 +460,8 @@ export const PropagationMap = { color: "#fff", weight: 2, fillColor: tier.color, - fillOpacity: 1 + fillOpacity: 1, + interactive: false }).addTo(this.rangeCircles) }, diff --git a/lib/microwaveprop_web/live/map_live.ex b/lib/microwaveprop_web/live/map_live.ex index 53a59f18..06d44306 100644 --- a/lib/microwaveprop_web/live/map_live.ex +++ b/lib/microwaveprop_web/live/map_live.ex @@ -126,6 +126,11 @@ defmodule MicrowavepropWeb.MapLive do <%!-- Top-left control panel --%>