X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/6e68f11776a8f6f5a62b989f13ebf7438ef32476..ecea2eedea2d87492f28ca713c2c1a4b7382256c:/src/components/Map.svelte?ds=sidebyside diff --git a/src/components/Map.svelte b/src/components/Map.svelte index b3b9e83..763495d 100644 --- a/src/components/Map.svelte +++ b/src/components/Map.svelte @@ -108,6 +108,7 @@ clickable: false } ); + cm.bindTooltip(`Search (${position_marker[0]},${position_marker[1]})`).openTooltip(); cm.addTo(map); dataLayers.push(cm); } @@ -136,6 +137,9 @@ let circle = L.circleMarker([lat, lon], { radius: 10, weight: 2, fillColor: '#ff7800', color: 'blue', opacity: 0.75 }); + if (position_marker) { // reverse result + circle.bindTooltip('Result').openTooltip(); + } map.addLayer(circle); dataLayers.push(circle); }