diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-10-24 22:34:49 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-10-24 22:34:49 -0700 |
commit | 2184bb6a9e98327f7d756b5977ae5315268f37b3 (patch) | |
tree | 69e18482b6a036711e5ca5cf01d9d8428c9727d0 /modern | |
parent | 8d32ac6e16c2b9ceb2a23edf0d6254d1e318c31b (diff) | |
download | etbsa-traccar-web-2184bb6a9e98327f7d756b5977ae5315268f37b3.tar.gz etbsa-traccar-web-2184bb6a9e98327f7d756b5977ae5315268f37b3.tar.bz2 etbsa-traccar-web-2184bb6a9e98327f7d756b5977ae5315268f37b3.zip |
Rename plugin
Diffstat (limited to 'modern')
-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 bca4d20..9487e97 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; |