aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/draw/theme.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-06 09:22:10 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-06 09:22:10 -0700
commitf418231b6b2f5e030a0d2dcc390c314602b1f740 (patch)
tree10326adf3792bc2697e06bb5f2b8ef2a8f7e55fe /modern/src/map/draw/theme.js
parentb392a4af78e01c8e0f50aad5468e9583675b24be (diff)
downloadtrackermap-web-f418231b6b2f5e030a0d2dcc390c314602b1f740.tar.gz
trackermap-web-f418231b6b2f5e030a0d2dcc390c314602b1f740.tar.bz2
trackermap-web-f418231b6b2f5e030a0d2dcc390c314602b1f740.zip
Move modern to the top
Diffstat (limited to 'modern/src/map/draw/theme.js')
-rw-r--r--modern/src/map/draw/theme.js230
1 files changed, 0 insertions, 230 deletions
diff --git a/modern/src/map/draw/theme.js b/modern/src/map/draw/theme.js
deleted file mode 100644
index c9864e2f..00000000
--- a/modern/src/map/draw/theme.js
+++ /dev/null
@@ -1,230 +0,0 @@
-// Copy of the original theme
-// https://github.com/mapbox/mapbox-gl-draw/blob/v1.4.0/src/lib/theme.js
-
-export default [
- {
- 'id': 'gl-draw-polygon-fill-inactive',
- 'type': 'fill',
- 'filter': ['all',
- ['==', 'active', 'false'],
- ['==', '$type', 'Polygon'],
- ['!=', 'mode', 'static']
- ],
- 'paint': {
- 'fill-color': '#3bb2d0',
- 'fill-outline-color': '#3bb2d0',
- 'fill-opacity': 0.1
- }
- },
- {
- 'id': 'gl-draw-polygon-fill-active',
- 'type': 'fill',
- 'filter': ['all', ['==', 'active', 'true'], ['==', '$type', 'Polygon']],
- 'paint': {
- 'fill-color': '#fbb03b',
- 'fill-outline-color': '#fbb03b',
- 'fill-opacity': 0.1
- }
- },
- {
- 'id': 'gl-draw-polygon-midpoint',
- 'type': 'circle',
- 'filter': ['all',
- ['==', '$type', 'Point'],
- ['==', 'meta', 'midpoint']],
- 'paint': {
- 'circle-radius': 3,
- 'circle-color': '#fbb03b'
- }
- },
- {
- 'id': 'gl-draw-polygon-stroke-inactive',
- 'type': 'line',
- 'filter': ['all',
- ['==', 'active', 'false'],
- ['==', '$type', 'Polygon'],
- ['!=', 'mode', 'static']
- ],
- 'layout': {
- 'line-cap': 'round',
- 'line-join': 'round'
- },
- 'paint': {
- 'line-color': '#3bb2d0',
- 'line-width': 2
- }
- },
- {
- 'id': 'gl-draw-polygon-stroke-active',
- 'type': 'line',
- 'filter': ['all', ['==', 'active', 'true'], ['==', '$type', 'Polygon']],
- 'layout': {
- 'line-cap': 'round',
- 'line-join': 'round'
- },
- 'paint': {
- 'line-color': '#fbb03b',
- 'line-dasharray': [0.2, 2],
- 'line-width': 2
- }
- },
- {
- 'id': 'gl-draw-line-inactive',
- 'type': 'line',
- 'filter': ['all',
- ['==', 'active', 'false'],
- ['==', '$type', 'LineString'],
- ['!=', 'mode', 'static']
- ],
- 'layout': {
- 'line-cap': 'round',
- 'line-join': 'round'
- },
- 'paint': {
- 'line-color': '#3bb2d0',
- 'line-width': 2
- }
- },
- {
- 'id': 'gl-draw-line-active',
- 'type': 'line',
- 'filter': ['all',
- ['==', '$type', 'LineString'],
- ['==', 'active', 'true']
- ],
- 'layout': {
- 'line-cap': 'round',
- 'line-join': 'round'
- },
- 'paint': {
- 'line-color': '#fbb03b',
- 'line-dasharray': [0.2, 2],
- 'line-width': 2
- }
- },
- {
- 'id': 'gl-draw-polygon-and-line-vertex-stroke-inactive',
- 'type': 'circle',
- 'filter': ['all',
- ['==', 'meta', 'vertex'],
- ['==', '$type', 'Point'],
- ['!=', 'mode', 'static']
- ],
- 'paint': {
- 'circle-radius': 5,
- 'circle-color': '#fff'
- }
- },
- {
- 'id': 'gl-draw-polygon-and-line-vertex-inactive',
- 'type': 'circle',
- 'filter': ['all',
- ['==', 'meta', 'vertex'],
- ['==', '$type', 'Point'],
- ['!=', 'mode', 'static']
- ],
- 'paint': {
- 'circle-radius': 3,
- 'circle-color': '#fbb03b'
- }
- },
- {
- 'id': 'gl-draw-point-point-stroke-inactive',
- 'type': 'circle',
- 'filter': ['all',
- ['==', 'active', 'false'],
- ['==', '$type', 'Point'],
- ['==', 'meta', 'feature'],
- ['!=', 'mode', 'static']
- ],
- 'paint': {
- 'circle-radius': 5,
- 'circle-opacity': 1,
- 'circle-color': '#fff'
- }
- },
- {
- 'id': 'gl-draw-point-inactive',
- 'type': 'circle',
- 'filter': ['all',
- ['==', 'active', 'false'],
- ['==', '$type', 'Point'],
- ['==', 'meta', 'feature'],
- ['!=', 'mode', 'static']
- ],
- 'paint': {
- 'circle-radius': 3,
- 'circle-color': '#3bb2d0'
- }
- },
- {
- 'id': 'gl-draw-point-stroke-active',
- 'type': 'circle',
- 'filter': ['all',
- ['==', '$type', 'Point'],
- ['==', 'active', 'true'],
- ['!=', 'meta', 'midpoint']
- ],
- 'paint': {
- 'circle-radius': 7,
- 'circle-color': '#fff'
- }
- },
- {
- 'id': 'gl-draw-point-active',
- 'type': 'circle',
- 'filter': ['all',
- ['==', '$type', 'Point'],
- ['!=', 'meta', 'midpoint'],
- ['==', 'active', 'true']],
- 'paint': {
- 'circle-radius': 5,
- 'circle-color': '#fbb03b'
- }
- },
- {
- 'id': 'gl-draw-polygon-fill-static',
- 'type': 'fill',
- 'filter': ['all', ['==', 'mode', 'static'], ['==', '$type', 'Polygon']],
- 'paint': {
- 'fill-color': '#404040',
- 'fill-outline-color': '#404040',
- 'fill-opacity': 0.1
- }
- },
- {
- 'id': 'gl-draw-polygon-stroke-static',
- 'type': 'line',
- 'filter': ['all', ['==', 'mode', 'static'], ['==', '$type', 'Polygon']],
- 'layout': {
- 'line-cap': 'round',
- 'line-join': 'round'
- },
- 'paint': {
- 'line-color': '#404040',
- 'line-width': 2
- }
- },
- {
- 'id': 'gl-draw-line-static',
- 'type': 'line',
- 'filter': ['all', ['==', 'mode', 'static'], ['==', '$type', 'LineString']],
- 'layout': {
- 'line-cap': 'round',
- 'line-join': 'round'
- },
- 'paint': {
- 'line-color': '#404040',
- 'line-width': 2
- }
- },
- {
- 'id': 'gl-draw-point-static',
- 'type': 'circle',
- 'filter': ['all', ['==', 'mode', 'static'], ['==', '$type', 'Point']],
- 'paint': {
- 'circle-radius': 5,
- 'circle-color': '#404040'
- }
- }
-];