diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-18 22:14:08 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-07-18 22:14:08 -0700 |
commit | 4273ec353b001a2b3a926c6ef07b8db9dbab3299 (patch) | |
tree | e97788b983936966f3f01bf94cc1eb22026919b3 | |
parent | 2b8e12b24c2c1aea9f9f36f98061f8200e153eda (diff) | |
download | trackermap-web-4273ec353b001a2b3a926c6ef07b8db9dbab3299.tar.gz trackermap-web-4273ec353b001a2b3a926c6ef07b8db9dbab3299.tar.bz2 trackermap-web-4273ec353b001a2b3a926c6ef07b8db9dbab3299.zip |
Fix geofence edit controls
-rw-r--r-- | modern/package.json | 1 | ||||
-rw-r--r-- | modern/public/styles.css | 4 | ||||
-rw-r--r-- | modern/src/map/GeofenceEditMap.js | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/modern/package.json b/modern/package.json index 2ae229c6..66066499 100644 --- a/modern/package.json +++ b/modern/package.json @@ -13,6 +13,7 @@ "@turf/circle": "^6.5.0", "@turf/turf": "^6.4.0", "canvas-tint-image": "^2.0.1", + "mapbox-gl": "^1.13.1", "maplibre-gl": "^1.15.0", "moment": "^2.29.1", "react": "^17.0.2", diff --git a/modern/public/styles.css b/modern/public/styles.css index 7e9de656..e7aee866 100644 --- a/modern/public/styles.css +++ b/modern/public/styles.css @@ -6,3 +6,7 @@ canvas { .maplibregl-popup-content { padding: 10px !important; } + +.mapboxgl-ctrl { + margin: 10px; +} diff --git a/modern/src/map/GeofenceEditMap.js b/modern/src/map/GeofenceEditMap.js index d639c192..28e259bb 100644 --- a/modern/src/map/GeofenceEditMap.js +++ b/modern/src/map/GeofenceEditMap.js @@ -1,3 +1,4 @@ +import 'mapbox-gl/dist/mapbox-gl.css' import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css'; import MapboxDraw from '@mapbox/mapbox-gl-draw'; import theme from '@mapbox/mapbox-gl-draw/src/lib/theme'; |