aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/GeofenceMap.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-24 22:34:49 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-24 22:34:49 -0700
commit2184bb6a9e98327f7d756b5977ae5315268f37b3 (patch)
tree69e18482b6a036711e5ca5cf01d9d8428c9727d0 /modern/src/map/GeofenceMap.js
parent8d32ac6e16c2b9ceb2a23edf0d6254d1e318c31b (diff)
downloadtrackermap-web-2184bb6a9e98327f7d756b5977ae5315268f37b3.tar.gz
trackermap-web-2184bb6a9e98327f7d756b5977ae5315268f37b3.tar.bz2
trackermap-web-2184bb6a9e98327f7d756b5977ae5315268f37b3.zip
Rename plugin
Diffstat (limited to 'modern/src/map/GeofenceMap.js')
-rw-r--r--modern/src/map/GeofenceMap.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/modern/src/map/GeofenceMap.js b/modern/src/map/GeofenceMap.js
deleted file mode 100644
index bca4d204..00000000
--- a/modern/src/map/GeofenceMap.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css'
-import MapboxDraw from '@mapbox/mapbox-gl-draw';
-import { useEffect } from 'react';
-
-import { map } from './Map';
-
-const draw = new MapboxDraw({
- displayControlsDefault: false,
- controls: {
- polygon: true,
- trash: true,
- },
-});
-
-const GeofenceMap = () => {
- useEffect(() => {
- const mm = map;
- map.addControl(draw, 'top-left');
- return () => map.removeControl(draw);
- }, []);
-
- return null;
-}
-
-export default GeofenceMap;