diff options
author | Anton Tananaev <anton@traccar.org> | 2024-05-09 15:43:14 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-05-09 15:43:14 -0700 |
commit | 577e3fbece3ef07577a7486513c98217e1a32f69 (patch) | |
tree | a7cdae6b108348c733d4f65807862ed30fe84dca /src/map | |
parent | 7c2770c7e73f8ea0ac469d4fb6248e135692ccd9 (diff) | |
download | trackermap-web-577e3fbece3ef07577a7486513c98217e1a32f69.tar.gz trackermap-web-577e3fbece3ef07577a7486513c98217e1a32f69.tar.bz2 trackermap-web-577e3fbece3ef07577a7486513c98217e1a32f69.zip |
Fix map draw plugin issues
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/draw/MapGeofenceEdit.js | 4 |
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: { |