aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-05-09 15:43:14 -0700
committerAnton Tananaev <anton@traccar.org>2024-05-09 15:43:14 -0700
commit577e3fbece3ef07577a7486513c98217e1a32f69 (patch)
treea7cdae6b108348c733d4f65807862ed30fe84dca
parent7c2770c7e73f8ea0ac469d4fb6248e135692ccd9 (diff)
downloadtrackermap-web-577e3fbece3ef07577a7486513c98217e1a32f69.tar.gz
trackermap-web-577e3fbece3ef07577a7486513c98217e1a32f69.tar.bz2
trackermap-web-577e3fbece3ef07577a7486513c98217e1a32f69.zip
Fix map draw plugin issues
-rw-r--r--src/map/draw/MapGeofenceEdit.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/draw/MapGeofenceEdit.js b/src/map/draw/MapGeofenceEdit.js
index e547ea05..46fe8c9c 100644
--- a/src/map/draw/MapGeofenceEdit.js
+++ b/src/map/draw/MapGeofenceEdit.js
@@ -13,6 +13,10 @@ import { errorsActions, geofencesActions } from '../../store';
import { useCatchCallback } from '../../reactHelper';
import theme from './theme';
+MapboxDraw.constants.classes.CONTROL_BASE = 'maplibregl-ctrl';
+MapboxDraw.constants.classes.CONTROL_PREFIX = 'maplibregl-ctrl-';
+MapboxDraw.constants.classes.CONTROL_GROUP = 'maplibregl-ctrl-group';
+
const draw = new MapboxDraw({
displayControlsDefault: false,
controls: {