diff --git a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx index 355655c8..dc0f3d91 100644 --- a/src/Components/Map/Subcomponents/Controls/SearchControl.tsx +++ b/src/Components/Map/Subcomponents/Controls/SearchControl.tsx @@ -36,7 +36,9 @@ export const SearchControl = ({ clusterRef }) => { const filterTags = useFilterTags(); useMapEvents({ - popupopen: () => { + popupopen: (e) => { + console.log(e); + setPopupOpen(true); }, popupclose: () => { @@ -132,7 +134,8 @@ export const SearchControl = ({ clusterRef }) => { searchInput.current?.blur(); L.marker(new LatLng(geo.geometry.coordinates[1], geo.geometry.coordinates[0]),{icon: MarkerIconFactory("circle", "#777", "RGBA(35, 31, 32, 0.2)", "circle-solid")}).addTo(map).bindPopup(`