Interactive interface for browsing global, full-resolution satellite imagery
wv-2678 markers (#4225)
Tom Cariellofef7ad656340
diff --git a/web/js/modules/location-search/actions.js b/web/js/modules/location-search/actions.jsindex a2bd2eada..5dad6529a 100644--- a/web/js/modules/location-search/actions.js+++ b/web/js/modules/location-search/actions.js@@ -87,10 +87,11 @@ export function setPlaceMarker(coord, reverseGeocodeResults, isInputSearch) {});}+ const markerId = Math.floor(longitude * 1000 + latitude * 1000 + Math.random() * 1000);dispatch({type: SET_MARKER,coordinates: {- id: Math.floor(longitude + latitude),+ id: markerId,longitude,latitude,},diff --git a/web/js/modules/location-search/util.js b/web/js/modules/location-search/util.jsindex 0aa831972..438b6c8b1 100644--- a/web/js/modules/location-search/util.js+++ b/web/js/modules/location-search/util.js@@ -120,8 +120,9 @@ export function mapLocationToLocationSearchState(.filter((coord) => !lodashIsNaN(parseFloat(coord))): [];+ const markerId = Math.floor(longitude * 1000 + latitude * 1000 + Math.random() * 1000);const validatedCoordinates = isValid && {- id: Math.floor(longitude + latitude),+ id: markerId,latitude,longitude,};