From 1bf3f6fd8477da012e85f34e45cb411f1ea1f39d Mon Sep 17 00:00:00 2001 From: robinvandermolen Date: Tue, 10 Dec 2024 08:42:04 +0100 Subject: [PATCH] :fire: [open-formulieren/open-forms#2177] Removing old map marker functionality --- src/components/Map/index.jsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/Map/index.jsx b/src/components/Map/index.jsx index a4beeb141..e2139e7c5 100644 --- a/src/components/Map/index.jsx +++ b/src/components/Map/index.jsx @@ -1,5 +1,4 @@ import {GeoSearchControl} from 'leaflet-geosearch'; -import isEqual from 'lodash/isEqual'; import PropTypes from 'prop-types'; import React, {useCallback, useContext, useEffect} from 'react'; import {defineMessages, useIntl} from 'react-intl'; @@ -71,12 +70,6 @@ const LeaftletMap = ({ const defaultCoordinates = useDefaultCoordinates(); const coordinates = markerCoordinates || defaultCoordinates; - const onWrapperMarkerSet = coordinates => { - const coordinatesChanged = !isEqual(markerCoordinates, coordinates); - if (!coordinatesChanged) return; - onMarkerSet(coordinates); - }; - const modifiers = disabled ? ['disabled'] : []; const className = getBEMClassName('leaflet-map', modifiers); @@ -103,7 +96,6 @@ const LeaftletMap = ({ {coordinates ? ( <> - ) : null} - {disabled ? : } + {/*{disabled ? : }*/} {markerCoordinates && markerCoordinates.length && (