aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/map/GeofenceEditMap.js (renamed from modern/src/map/GeofenceMap.js)5
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/map/GeofenceMap.js b/modern/src/map/GeofenceEditMap.js
index bca4d204..9487e97c 100644
--- a/modern/src/map/GeofenceMap.js
+++ b/modern/src/map/GeofenceEditMap.js
@@ -12,9 +12,8 @@ const draw = new MapboxDraw({
},
});
-const GeofenceMap = () => {
+const GeofenceEditMap = () => {
useEffect(() => {
- const mm = map;
map.addControl(draw, 'top-left');
return () => map.removeControl(draw);
}, []);
@@ -22,4 +21,4 @@ const GeofenceMap = () => {
return null;
}
-export default GeofenceMap;
+export default GeofenceEditMap;