From 1e1ebfa9018c125db62aa664fddc427f0874756a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Barrenechea=20S=C3=A1nchez?= Date: Mon, 11 Dec 2023 17:22:42 +0100 Subject: [PATCH] Markers log --- client/src/containers/map/index.tsx | 7 +------ client/src/containers/map/tooltips/home-tooltip/index.tsx | 2 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/client/src/containers/map/index.tsx b/client/src/containers/map/index.tsx index 28aafcd..a494c8a 100644 --- a/client/src/containers/map/index.tsx +++ b/client/src/containers/map/index.tsx @@ -86,8 +86,6 @@ export default function MapContainer() { const isHomePage = useMemo(() => !pathname.includes('stories'), [pathname]); - console.log('isHomePage', isHomePage); - // const { data: layersInteractiveData } = useGetLayers( // { // filters: { @@ -153,14 +151,11 @@ export default function MapContainer() { // ); const handleMapMove = useCallback((e: MapLayerMouseEvent) => { - console.log(e.features); - if (e.features?.length) { const f = e.features[0]; - console.log(f); - if (f.source === 'story-markers') { + console.log('f', f); setMarker({ ...f, geometry: f.geometry as GeoJSON.Point, diff --git a/client/src/containers/map/tooltips/home-tooltip/index.tsx b/client/src/containers/map/tooltips/home-tooltip/index.tsx index d682bec..1b088e3 100644 --- a/client/src/containers/map/tooltips/home-tooltip/index.tsx +++ b/client/src/containers/map/tooltips/home-tooltip/index.tsx @@ -12,6 +12,8 @@ interface HomeTooltipProps extends RMarkerProps { const HomeTooltip = (props: HomeTooltipProps) => { const { properties, onClick } = props; + console.log({ props }); + return (