aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/MapMarkers.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/MapMarkers.js')
-rw-r--r--modern/src/map/MapMarkers.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/map/MapMarkers.js b/modern/src/map/MapMarkers.js
index 7101a5d3..2fbfceea 100644
--- a/modern/src/map/MapMarkers.js
+++ b/modern/src/map/MapMarkers.js
@@ -1,9 +1,8 @@
-import { useEffect } from 'react';
-
+import { useId, useEffect } from 'react';
import { map } from './core/MapView';
const MapMarkers = ({ markers }) => {
- const id = 'markers';
+ const id = useId();
useEffect(() => {
map.addSource(id, {