diff --git a/app/javascript/components/MapEditor/SwitchMapStyle.js b/app/javascript/components/MapEditor/SwitchMapStyle.js
deleted file mode 100644
index 490ca7f5b..000000000
--- a/app/javascript/components/MapEditor/SwitchMapStyle.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import React from 'react';
-import ortho from '../MapStyles/images/preview-ortho.png';
-import vector from '../MapStyles/images/preview-vector.png';
-import PropTypes from 'prop-types';
-
-const SwitchMapStyle = ({ isVector }) => {
- const style = isVector ? 'Satellite' : 'Vectoriel';
- const source = `${isVector ? ortho : vector}`;
-
- const imgStyle = {
- width: '100%',
- height: '100%',
- cursor: 'pointer'
- };
-
- const textStyle = {
- position: 'relative',
- bottom: '26px',
- left: '4px',
- color: `${isVector ? '#fff' : '#000'}`
- };
- return (
-
-
![{style}]({source})
-
- {style}
-
-
- );
-};
-
-SwitchMapStyle.propTypes = {
- isVector: PropTypes.bool
-};
-
-export default SwitchMapStyle;
diff --git a/app/javascript/components/MapEditor/index.js b/app/javascript/components/MapEditor/index.js
index e23172d47..3bb828e29 100644
--- a/app/javascript/components/MapEditor/index.js
+++ b/app/javascript/components/MapEditor/index.js
@@ -1,4 +1,4 @@
-import React, { useState, useCallback, useRef } from 'react';
+import React, { useState, useCallback, useRef, useMemo } from 'react';
import PropTypes from 'prop-types';
import mapboxgl from 'mapbox-gl';
import ReactMapboxGl, { GeoJSONLayer, ZoomControl } from 'react-mapbox-gl';
@@ -8,8 +8,7 @@ import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css';
import { getJSON, ajax, fire } from '@utils';
-import SwitchMapStyle from './SwitchMapStyle';
-import { getMapStyle } from '../MapStyles';
+import { getMapStyle, SwitchMapStyle } from '../MapStyles';
import SearchInput from './SearchInput';
import { polygonCadastresFill, polygonCadastresLine } from './utils';
@@ -24,7 +23,7 @@ import {
const Map = ReactMapboxGl({});
-function MapEditor({ featureCollection, url, preview, hasCadastres }) {
+function MapEditor({ featureCollection, url, preview, hasCadastres, ign }) {
const drawControl = useRef(null);
const [currentMap, setCurrentMap] = useState(null);
@@ -36,7 +35,10 @@ function MapEditor({ featureCollection, url, preview, hasCadastres }) {
const [cadastresFeatureCollection, setCadastresFeatureCollection] = useState(
filterFeatureCollection(featureCollection, 'cadastre')
);
- const mapStyle = getMapStyle(style, hasCadastres);
+ const mapStyle = useMemo(() => getMapStyle(style, hasCadastres), [
+ style,
+ hasCadastres
+ ]);
const onFeatureFocus = useCallback(
({ detail }) => {
@@ -291,12 +293,13 @@ function MapEditor({ featureCollection, url, preview, hasCadastres }) {
height: '500px'
}}
>
-
+ {hasCadastres ? (
+
+ ) : null}
-
- style === 'ortho' ? setStyle('vector') : setStyle('ortho')
- }
- >
-
-
+
>
@@ -337,7 +328,8 @@ MapEditor.propTypes = {
}),
url: PropTypes.string,
preview: PropTypes.bool,
- hasCadastres: PropTypes.bool
+ hasCadastres: PropTypes.bool,
+ ign: PropTypes.bool
};
export default MapEditor;
diff --git a/app/javascript/components/MapReader/SwitchMapStyle.js b/app/javascript/components/MapReader/SwitchMapStyle.js
deleted file mode 100644
index 490ca7f5b..000000000
--- a/app/javascript/components/MapReader/SwitchMapStyle.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import React from 'react';
-import ortho from '../MapStyles/images/preview-ortho.png';
-import vector from '../MapStyles/images/preview-vector.png';
-import PropTypes from 'prop-types';
-
-const SwitchMapStyle = ({ isVector }) => {
- const style = isVector ? 'Satellite' : 'Vectoriel';
- const source = `${isVector ? ortho : vector}`;
-
- const imgStyle = {
- width: '100%',
- height: '100%',
- cursor: 'pointer'
- };
-
- const textStyle = {
- position: 'relative',
- bottom: '26px',
- left: '4px',
- color: `${isVector ? '#fff' : '#000'}`
- };
- return (
-
-
![{style}]({source})
-
- {style}
-
-
- );
-};
-
-SwitchMapStyle.propTypes = {
- isVector: PropTypes.bool
-};
-
-export default SwitchMapStyle;
diff --git a/app/javascript/components/MapReader/index.js b/app/javascript/components/MapReader/index.js
index 145007b0a..4386ba77f 100644
--- a/app/javascript/components/MapReader/index.js
+++ b/app/javascript/components/MapReader/index.js
@@ -3,8 +3,7 @@ import ReactMapboxGl, { ZoomControl, GeoJSONLayer } from 'react-mapbox-gl';
import mapboxgl, { Popup } from 'mapbox-gl';
import PropTypes from 'prop-types';
-import SwitchMapStyle from './SwitchMapStyle';
-import { getMapStyle } from '../MapStyles';
+import { getMapStyle, SwitchMapStyle } from '../MapStyles';
import {
filterFeatureCollection,
@@ -17,7 +16,7 @@ import {
const Map = ReactMapboxGl({});
-const MapReader = ({ featureCollection }) => {
+const MapReader = ({ featureCollection, ign }) => {
const [currentMap, setCurrentMap] = useState(null);
const [style, setStyle] = useState('ortho');
const cadastresFeatureCollection = useMemo(
@@ -52,10 +51,11 @@ const MapReader = ({ featureCollection }) => {
),
[selectionsUtilisateurFeatureCollection]
);
- const mapStyle = useMemo(
- () => getMapStyle(style, cadastresFeatureCollection.length),
- [style, cadastresFeatureCollection]
- );
+ const hasCadastres = !!cadastresFeatureCollection.length;
+ const mapStyle = useMemo(() => getMapStyle(style, hasCadastres), [
+ style,
+ cadastresFeatureCollection
+ ]);
const popup = useMemo(
() =>
new Popup({
@@ -176,25 +176,15 @@ const MapReader = ({ featureCollection }) => {
circleOnMouseEnter={onMouseEnter}
circleOnMouseLeave={onMouseLeave}
/>
-
+ {hasCadastres ? (
+
+ ) : null}
-
- style === 'ortho' ? setStyle('vector') : setStyle('ortho')
- }
- >
-
-
+
);
@@ -205,7 +195,8 @@ MapReader.propTypes = {
type: PropTypes.string,
bbox: PropTypes.array,
features: PropTypes.array
- })
+ }),
+ ign: PropTypes.bool
};
export default MapReader;
diff --git a/app/javascript/components/MapStyles/SwitchMapStyle.js b/app/javascript/components/MapStyles/SwitchMapStyle.js
new file mode 100644
index 000000000..074b344f5
--- /dev/null
+++ b/app/javascript/components/MapStyles/SwitchMapStyle.js
@@ -0,0 +1,78 @@
+import React from 'react';
+import ortho from './images/preview-ortho.png';
+import vector from './images/preview-vector.png';
+import PropTypes from 'prop-types';
+
+const STYLES = {
+ ortho: {
+ title: 'Satellite',
+ preview: ortho,
+ color: '#fff'
+ },
+ vector: {
+ title: 'Vectoriel',
+ preview: vector,
+ color: '#000'
+ }
+};
+
+const IGN_STYLES = {
+ ...STYLES,
+ ign: {
+ title: 'Carte IGN',
+ preview: vector,
+ color: '#000'
+ }
+};
+
+function getNextStyle(style, ign) {
+ const styles = Object.keys(ign ? IGN_STYLES : STYLES);
+ let index = styles.indexOf(style) + 1;
+ if (index === styles.length) {
+ return styles[0];
+ }
+ return styles[index];
+}
+
+export const SwitchMapStyle = ({ style, setStyle, ign }) => {
+ const nextStyle = getNextStyle(style, ign);
+ const { title, preview, color } = (ign ? IGN_STYLES : STYLES)[nextStyle];
+
+ const imgStyle = {
+ width: '100%',
+ height: '100%',
+ cursor: 'pointer'
+ };
+
+ const textStyle = {
+ position: 'relative',
+ bottom: '26px',
+ left: '4px',
+ color
+ };
+
+ return (
+ setStyle(nextStyle)}
+ >
+
+
![{title}]({preview})
+
+ {title}
+
+
+
+ );
+};
+
+SwitchMapStyle.propTypes = {
+ style: PropTypes.string,
+ setStyle: PropTypes.func,
+ ign: PropTypes.bool
+};
diff --git a/app/javascript/components/MapStyles/base-style.js b/app/javascript/components/MapStyles/base-style.js
new file mode 100644
index 000000000..8a8ab876c
--- /dev/null
+++ b/app/javascript/components/MapStyles/base-style.js
@@ -0,0 +1,61 @@
+export default {
+ version: 8,
+ metadat: {
+ 'mapbox:autocomposite': false,
+ 'mapbox:groups': {
+ '1444849242106.713': { collapsed: false, name: 'Places' },
+ '1444849334699.1902': { collapsed: true, name: 'Bridges' },
+ '1444849345966.4436': { collapsed: false, name: 'Roads' },
+ '1444849354174.1904': { collapsed: true, name: 'Tunnels' },
+ '1444849364238.8171': { collapsed: false, name: 'Buildings' },
+ '1444849382550.77': { collapsed: false, name: 'Water' },
+ '1444849388993.3071': { collapsed: false, name: 'Land' }
+ },
+ 'mapbox:type': 'template',
+ 'openmaptiles:mapbox:owner': 'openmaptiles',
+ 'openmaptiles:mapbox:source:url': 'mapbox://openmaptiles.4qljc88t',
+ 'openmaptiles:version': '3.x',
+ 'maputnik:renderer': 'mbgljs'
+ },
+ center: [0, 0],
+ zoom: 1,
+ bearing: 0,
+ pitch: 0,
+ sources: {
+ 'decoupage-administratif': {
+ type: 'vector',
+ url:
+ 'https://openmaptiles.geo.data.gouv.fr/data/decoupage-administratif.json'
+ },
+ openmaptiles: {
+ type: 'vector',
+ url: 'https://openmaptiles.geo.data.gouv.fr/data/france-vector.json'
+ },
+ 'photographies-aeriennes': {
+ type: 'raster',
+ tiles: [
+ 'https://tiles.geo.api.gouv.fr/photographies-aeriennes/tiles/{z}/{x}/{y}'
+ ],
+ tileSize: 256,
+ attribution: 'Images aériennes © IGN',
+ minzoom: 0,
+ maxzoom: 19
+ },
+ 'carte-ign': {
+ type: 'raster',
+ tiles: [
+ 'https://wxs.ign.fr/rc1egnbeoss72hxvd143tbyk/geoportail/wmts?service=WMTS&request=GetTile&version=1.0.0&tilematrixset=PM&tilematrix={z}&tilecol={x}&tilerow={y}&layer=GEOGRAPHICALGRIDSYSTEMS.MAPS&format=image/jpeg&style=normal'
+ ],
+ tileSize: 256,
+ attribution: 'IGN-F/Géoportail',
+ minzoom: 0,
+ maxzoom: 18
+ },
+ cadastre: {
+ type: 'vector',
+ url: 'https://openmaptiles.geo.data.gouv.fr/data/cadastre.json'
+ }
+ },
+ sprite: 'https://openmaptiles.github.io/osm-bright-gl-style/sprite',
+ glyphs: 'https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf'
+};
diff --git a/app/javascript/components/MapStyles/cadastre.js b/app/javascript/components/MapStyles/cadastre.js
new file mode 100644
index 000000000..46e02c9fe
--- /dev/null
+++ b/app/javascript/components/MapStyles/cadastre.js
@@ -0,0 +1,106 @@
+export default [
+ {
+ id: 'batiments-line',
+ type: 'line',
+ source: 'cadastre',
+ 'source-layer': 'batiments',
+ minzoom: 16,
+ maxzoom: 22,
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-opacity': 1,
+ 'line-color': 'rgba(0, 0, 0, 1)',
+ 'line-width': 1
+ }
+ },
+ {
+ id: 'batiments-fill',
+ type: 'fill',
+ source: 'cadastre',
+ 'source-layer': 'batiments',
+ layout: { visibility: 'visible' },
+ paint: {
+ 'fill-color': 'rgba(150, 150, 150, 1)',
+ 'fill-opacity': {
+ stops: [
+ [16, 0],
+ [17, 0.6]
+ ]
+ },
+ 'fill-antialias': true
+ }
+ },
+ {
+ id: 'parcelles',
+ type: 'line',
+ source: 'cadastre',
+ 'source-layer': 'parcelles',
+ minzoom: 15.5,
+ maxzoom: 24,
+ layout: {
+ visibility: 'visible',
+ 'line-cap': 'butt',
+ 'line-join': 'miter',
+ 'line-miter-limit': 2
+ },
+ paint: {
+ 'line-color': 'rgba(255, 255, 255, 1)',
+ 'line-opacity': 0.8,
+ 'line-width': {
+ stops: [
+ [16, 1.5],
+ [17, 2]
+ ]
+ },
+ 'line-offset': 0,
+ 'line-blur': 0,
+ 'line-translate': [0, 1],
+ 'line-dasharray': [1],
+ 'line-gap-width': 0
+ }
+ },
+ {
+ id: 'parcelles-fill',
+ type: 'fill',
+ source: 'cadastre',
+ 'source-layer': 'parcelles',
+ layout: {
+ visibility: 'visible'
+ },
+ paint: {
+ 'fill-color': 'rgba(129, 123, 0, 1)',
+ 'fill-opacity': [
+ 'case',
+ ['boolean', ['feature-state', 'hover'], false],
+ 0.7,
+ 0.1
+ ]
+ }
+ },
+ {
+ id: 'parcelle-highlighted',
+ type: 'fill',
+ source: 'cadastre',
+ 'source-layer': 'parcelles',
+ filter: ['==', 'id', ''],
+ paint: {
+ 'fill-color': 'rgba(1, 129, 0, 1)',
+ 'fill-opacity': 0.7
+ }
+ },
+ {
+ id: 'sections',
+ type: 'line',
+ source: 'cadastre',
+ 'source-layer': 'sections',
+ minzoom: 12,
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'rgba(0, 0, 0, 1)',
+ 'line-opacity': 0.7,
+ 'line-width': 2,
+ 'line-dasharray': [3, 3],
+ 'line-translate': [0, 0]
+ }
+ }
+];
diff --git a/app/javascript/components/MapStyles/index.js b/app/javascript/components/MapStyles/index.js
index 3edf38056..68298a73e 100644
--- a/app/javascript/components/MapStyles/index.js
+++ b/app/javascript/components/MapStyles/index.js
@@ -1,11 +1,44 @@
-import ortho from './ortho.json';
-import orthoCadastre from './orthoCadastre.json';
-import vector from './vector.json';
-import vectorCadastre from './vectorCadastre.json';
+import baseStyle from './base-style';
+import cadastre from './cadastre';
+import orthoStyle from './ortho-style';
+import vectorStyle from './vector-style';
+
+const ignStyle = [
+ {
+ id: 'carte-ign',
+ type: 'raster',
+ source: 'carte-ign',
+ paint: { 'raster-resampling': 'linear' }
+ }
+];
export function getMapStyle(style, hasCadastres) {
- if (hasCadastres) {
- return style === 'ortho' ? orthoCadastre : vectorCadastre;
+ const mapStyle = { ...baseStyle };
+
+ switch (style) {
+ case 'ortho':
+ mapStyle.layers = orthoStyle;
+ mapStyle.id = 'ortho';
+ mapStyle.name = 'Photographies aériennes';
+ break;
+ case 'vector':
+ mapStyle.layers = vectorStyle;
+ mapStyle.id = 'vector';
+ mapStyle.name = 'Carte OSM';
+ break;
+ case 'ign':
+ mapStyle.layers = ignStyle;
+ mapStyle.id = 'ign';
+ mapStyle.name = 'Carte IGN';
+ break;
}
- return style === 'ortho' ? ortho : vector;
+
+ if (hasCadastres) {
+ mapStyle.layers = mapStyle.layers.concat(cadastre);
+ mapStyle.id += '-cadastre';
+ }
+
+ return mapStyle;
}
+
+export { SwitchMapStyle } from './SwitchMapStyle';
diff --git a/app/javascript/components/MapStyles/ortho-style.js b/app/javascript/components/MapStyles/ortho-style.js
new file mode 100644
index 000000000..0e255a426
--- /dev/null
+++ b/app/javascript/components/MapStyles/ortho-style.js
@@ -0,0 +1,2639 @@
+export default [
+ {
+ id: 'photographies-aeriennes',
+ type: 'raster',
+ source: 'photographies-aeriennes',
+ paint: { 'raster-resampling': 'linear' }
+ },
+ {
+ id: 'communes',
+ type: 'line',
+ source: 'decoupage-administratif',
+ 'source-layer': 'communes',
+ minzoom: 10,
+ maxzoom: 24,
+ filter: ['all'],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'rgba(0, 0, 0, 1)',
+ 'line-width': 1.5,
+ 'line-opacity': 1,
+ 'line-blur': 0
+ }
+ },
+ {
+ id: 'departements',
+ type: 'line',
+ source: 'decoupage-administratif',
+ 'source-layer': 'departements',
+ minzoom: 0,
+ maxzoom: 24,
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'rgba(0, 0, 0, 1)',
+ 'line-width': 1,
+ 'line-opacity': 1
+ }
+ },
+ {
+ id: 'regions',
+ type: 'line',
+ source: 'decoupage-administratif',
+ 'source-layer': 'regions',
+ minzoom: 0,
+ maxzoom: 24,
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'rgba(0, 0, 0, 1)',
+ 'line-width': 1,
+ 'line-opacity': 1
+ }
+ },
+ {
+ id: 'waterway_tunnel',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ minzoom: 14,
+ filter: [
+ 'all',
+ ['in', 'class', 'river', 'stream', 'canal'],
+ ['==', 'brunnel', 'tunnel']
+ ],
+ layout: { 'line-cap': 'round', visibility: 'none' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-dasharray': [2, 4],
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-other',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['!in', 'class', 'canal', 'river', 'stream'],
+ ['==', 'intermittent', 0]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'none' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 2]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-other-intermittent',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['!in', 'class', 'canal', 'river', 'stream'],
+ ['==', 'intermittent', 1]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'none' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 2]
+ ]
+ },
+ 'line-dasharray': [4, 3]
+ }
+ },
+ {
+ id: 'waterway-stream-canal',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['in', 'class', 'canal', 'stream'],
+ ['!=', 'brunnel', 'tunnel'],
+ ['==', 'intermittent', 0]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'none' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-stream-canal-intermittent',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['in', 'class', 'canal', 'stream'],
+ ['!=', 'brunnel', 'tunnel'],
+ ['==', 'intermittent', 1]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'none' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 6]
+ ]
+ },
+ 'line-dasharray': [4, 3]
+ }
+ },
+ {
+ id: 'waterway-river',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['==', 'class', 'river'],
+ ['!=', 'brunnel', 'tunnel'],
+ ['==', 'intermittent', 0]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'none' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [10, 0.8],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-river-intermittent',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['==', 'class', 'river'],
+ ['!=', 'brunnel', 'tunnel'],
+ ['==', 'intermittent', 1]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'none' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [10, 0.8],
+ [20, 6]
+ ]
+ },
+ 'line-dasharray': [3, 2.5]
+ }
+ },
+ {
+ id: 'tunnel-service-track-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'service', 'track']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#cfcdca',
+ 'line-dasharray': [0.5, 0.25],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1],
+ [16, 4],
+ [20, 11]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-minor-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'minor']],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#cfcdca',
+ 'line-opacity': {
+ stops: [
+ [12, 0],
+ [12.5, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 0.5],
+ [13, 1],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-secondary-tertiary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [8, 1.5],
+ [20, 17]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-trunk-primary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'primary', 'trunk']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-motorway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'motorway']],
+ layout: { 'line-join': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-dasharray': [0.5, 0.25],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-path',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'path']]
+ ],
+ paint: {
+ 'line-color': '#cba',
+ 'line-dasharray': [1.5, 0.75],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1.2],
+ [20, 4]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-service-track',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'service', 'track']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15.5, 0],
+ [16, 2],
+ [20, 7.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-minor',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'minor_road']],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [13.5, 0],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-secondary-tertiary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff4c6',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 10]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-trunk-primary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'primary', 'trunk']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff4c6',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-motorway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'motorway']],
+ layout: { 'line-join': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#ffdaa6',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-railway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'rail']],
+ paint: {
+ 'line-color': '#bbb',
+ 'line-dasharray': [2, 2],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [15, 0.75],
+ [20, 2]
+ ]
+ }
+ }
+ },
+ {
+ id: 'ferry',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['in', 'class', 'ferry']],
+ layout: { 'line-join': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': 'rgba(108, 159, 182, 1)',
+ 'line-dasharray': [2, 2],
+ 'line-width': 1.1
+ }
+ },
+ {
+ id: 'aeroway-taxiway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'aeroway',
+ minzoom: 12,
+ filter: ['all', ['in', 'class', 'taxiway']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(153, 153, 153, 1)',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.5,
+ stops: [
+ [11, 2],
+ [17, 12]
+ ]
+ }
+ }
+ },
+ {
+ id: 'aeroway-runway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'aeroway',
+ minzoom: 12,
+ filter: ['all', ['in', 'class', 'runway']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(153, 153, 153, 1)',
+ 'line-opacity': 0.2,
+ 'line-width': {
+ base: 1.5,
+ stops: [
+ [11, 5],
+ [17, 55]
+ ]
+ }
+ }
+ },
+ {
+ id: 'aeroway-taxiway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'aeroway',
+ minzoom: 4,
+ filter: ['all', ['in', 'class', 'taxiway'], ['==', '$type', 'LineString']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(255, 255, 255, 1)',
+ 'line-opacity': {
+ base: 1,
+ stops: [
+ [11, 0],
+ [12, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1.5,
+ stops: [
+ [11, 1],
+ [17, 10]
+ ]
+ }
+ }
+ },
+ {
+ id: 'aeroway-runway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'aeroway',
+ minzoom: 4,
+ filter: ['all', ['in', 'class', 'runway'], ['==', '$type', 'LineString']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(255, 255, 255, 1)',
+ 'line-opacity': {
+ base: 1,
+ stops: [
+ [11, 0],
+ [12, 0.2]
+ ]
+ },
+ 'line-width': {
+ base: 1.5,
+ stops: [
+ [11, 4],
+ [17, 50]
+ ]
+ }
+ }
+ },
+ {
+ id: 'road_area_pier',
+ type: 'fill',
+ metadata: {},
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', '$type', 'Polygon'], ['==', 'class', 'pier']],
+ layout: { visibility: 'visible' },
+ paint: { 'fill-antialias': true, 'fill-color': '#f8f4f0' }
+ },
+ {
+ id: 'road_pier',
+ type: 'line',
+ metadata: {},
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', '$type', 'LineString'], ['in', 'class', 'pier']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#f8f4f0',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1],
+ [17, 4]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-area',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', '$type', 'Polygon'], ['!in', 'class', 'pier']],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'fill-antialias': false,
+ 'fill-color': 'hsla(0, 0%, 89%, 0.56)',
+ 'fill-opacity': {
+ stops: [
+ [15, 0],
+ [16, 0.9]
+ ]
+ },
+ 'fill-outline-color': '#cfcdca'
+ }
+ },
+ {
+ id: 'highway-motorway-link-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 12,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'motorway_link']
+ ],
+ layout: { 'line-cap': 'round', 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 1],
+ [13, 3],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-link-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 13,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ [
+ 'in',
+ 'class',
+ 'primary_link',
+ 'secondary_link',
+ 'tertiary_link',
+ 'trunk_link'
+ ]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 1],
+ [13, 3],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-minor-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!=', 'brunnel', 'tunnel'],
+ ['in', 'class', 'minor', 'service', 'track']
+ ]
+ ],
+ layout: { 'line-cap': 'round', 'line-join': 'round' },
+ paint: {
+ 'line-color': '#cfcdca',
+ 'line-opacity': {
+ stops: [
+ [14, 0],
+ [15, 0.5]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 0.5],
+ [16, 5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-secondary-tertiary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: {
+ 'line-cap': 'butt',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': {
+ stops: [
+ [15, 0],
+ [16, 0.3]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [8, 1.5],
+ [20, 17]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-primary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 5,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'primary']
+ ],
+ layout: {
+ 'line-cap': 'butt',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': {
+ stops: [
+ [16, 0],
+ [17, 0.3]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [7, 0],
+ [8, 0.6],
+ [9, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-trunk-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 5,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'trunk']
+ ],
+ layout: {
+ 'line-cap': 'butt',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': {
+ stops: [
+ [16, 0],
+ [17, 0.3]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-motorway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 4,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'motorway']
+ ],
+ layout: {
+ 'line-cap': 'butt',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': {
+ stops: [
+ [8, 0],
+ [9, 0.2]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [4, 0],
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-path',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['!in', 'brunnel', 'bridge', 'tunnel'], ['==', 'class', 'path']]
+ ],
+ layout: { visibility: 'none' },
+ paint: {
+ 'line-color': '#cba',
+ 'line-dasharray': [1.5, 0.75],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1.2],
+ [20, 4]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-motorway-link',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 12,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'motorway_link']
+ ],
+ layout: { 'line-cap': 'round', 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fc8',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12.5, 0],
+ [13, 1.5],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-link',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 13,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ [
+ 'in',
+ 'class',
+ 'primary_link',
+ 'secondary_link',
+ 'tertiary_link',
+ 'trunk_link'
+ ]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12.5, 0],
+ [13, 1.5],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-minor',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!=', 'brunnel', 'tunnel'],
+ ['in', 'class', 'minor', 'service', 'track']
+ ]
+ ],
+ layout: { 'line-cap': 'round', 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff',
+ 'line-opacity': {
+ stops: [
+ [16, 0],
+ [17, 0.4]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [16, 0],
+ [17, 2.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-secondary-tertiary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [8, 0.5],
+ [20, 13]
+ ]
+ },
+ 'line-opacity': {
+ stops: [
+ [11, 0],
+ [13, 0.3]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-primary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'primary']
+ ]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [8.5, 0],
+ [9, 0.5],
+ [20, 18]
+ ]
+ },
+ 'line-opacity': {
+ stops: [
+ [8, 0],
+ [9, 0.3]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-trunk',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['!in', 'brunnel', 'bridge', 'tunnel'], ['in', 'class', 'trunk']]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ },
+ 'line-opacity': {
+ stops: [
+ [16, 0],
+ [17, 0.3]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-motorway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 5,
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'motorway']
+ ]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fc8',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ },
+ 'line-opacity': {
+ stops: [
+ [8, 0],
+ [9, 0.2]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-transit',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'class', 'transit'], ['!in', 'brunnel', 'tunnel']]
+ ],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsla(0, 0%, 73%, 0.77)',
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [20, 1]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-transit-hatching',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'class', 'transit'], ['!in', 'brunnel', 'tunnel']]
+ ],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsla(0, 0%, 73%, 0.68)',
+ 'line-dasharray': [0.2, 8],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14.5, 0],
+ [15, 2],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-service',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'class', 'rail'], ['has', 'service']]
+ ],
+ paint: {
+ 'line-color': 'hsla(0, 0%, 73%, 0.77)',
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [20, 1]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-service-hatching',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'class', 'rail'], ['has', 'service']]
+ ],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsla(0, 0%, 73%, 0.68)',
+ 'line-dasharray': [0.2, 8],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14.5, 0],
+ [15, 2],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!has', 'service'],
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'rail']
+ ]
+ ],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': '#bbb',
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [15, 0.75],
+ [20, 2]
+ ]
+ },
+ 'line-opacity': {
+ stops: [
+ [11, 0],
+ [13, 1]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-hatching',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!has', 'service'],
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'rail']
+ ]
+ ],
+ paint: {
+ 'line-color': '#bbb',
+ 'line-dasharray': [0.2, 8],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14.5, 0],
+ [15, 3],
+ [20, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-motorway-link-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['==', 'class', 'motorway_link']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 1],
+ [13, 3],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-link-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ [
+ 'in',
+ 'class',
+ 'primary_link',
+ 'secondary_link',
+ 'tertiary_link',
+ 'trunk_link'
+ ]
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 1],
+ [13, 3],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-secondary-tertiary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 0.3,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [8, 1.5],
+ [20, 28]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-trunk-primary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['in', 'class', 'primary', 'trunk']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': 'hsl(28, 76%, 67%)',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 26]
+ ]
+ },
+ 'line-opacity': 0.3
+ }
+ },
+ {
+ id: 'bridge-motorway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'motorway']],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ },
+ 'line-opacity': {
+ stops: [
+ [16, 0],
+ [17, 0.3]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-path-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'path']]
+ ],
+ paint: {
+ 'line-color': '#f8f4f0',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1.2],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-path',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'path']]
+ ],
+ paint: {
+ 'line-color': '#cba',
+ 'line-dasharray': [1.5, 0.75],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1.2],
+ [20, 4]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-motorway-link',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['==', 'class', 'motorway_link']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fc8',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12.5, 0],
+ [13, 1.5],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-link',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ [
+ 'in',
+ 'class',
+ 'primary_link',
+ 'secondary_link',
+ 'tertiary_link',
+ 'trunk_link'
+ ]
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12.5, 0],
+ [13, 1.5],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-secondary-tertiary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 20]
+ ]
+ },
+ 'line-opacity': {
+ stops: [
+ [16, 0],
+ [17, 0.3]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-trunk-primary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['in', 'class', 'primary', 'trunk']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ },
+ 'line-opacity': 0.3
+ }
+ },
+ {
+ id: 'bridge-motorway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'motorway']],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fc8',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ },
+ 'line-opacity': 0.3
+ }
+ },
+ {
+ id: 'bridge-railway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'rail']],
+ paint: {
+ 'line-color': '#bbb',
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [15, 0.75],
+ [20, 2]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-railway-hatching',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'rail']],
+ paint: {
+ 'line-color': '#bbb',
+ 'line-dasharray': [0.2, 8],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14.5, 0],
+ [15, 3],
+ [20, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'cablecar',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 13,
+ filter: ['==', 'class', 'cable_car'],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsl(0, 0%, 70%)',
+ 'line-width': {
+ base: 1,
+ stops: [
+ [11, 1],
+ [19, 2.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'cablecar-dash',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 13,
+ filter: ['==', 'class', 'cable_car'],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsl(0, 0%, 70%)',
+ 'line-dasharray': [2, 3],
+ 'line-width': {
+ base: 1,
+ stops: [
+ [11, 3],
+ [19, 5.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'boundary-land-level-4',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'boundary',
+ filter: [
+ 'all',
+ ['>=', 'admin_level', 4],
+ ['<=', 'admin_level', 8],
+ ['!=', 'maritime', 1]
+ ],
+ layout: { 'line-join': 'round', visibility: 'none' },
+ paint: {
+ 'line-color': '#9e9cab',
+ 'line-dasharray': [3, 1, 1, 1],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [4, 0.4],
+ [5, 1],
+ [12, 3]
+ ]
+ }
+ }
+ },
+ {
+ id: 'boundary-land-level-2',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'boundary',
+ filter: [
+ 'all',
+ ['==', 'admin_level', 2],
+ ['!=', 'maritime', 1],
+ ['!=', 'disputed', 1]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'none'
+ },
+ paint: {
+ 'line-color': 'hsl(248, 7%, 66%)',
+ 'line-width': {
+ base: 1,
+ stops: [
+ [0, 0.6],
+ [4, 1.4],
+ [5, 2],
+ [12, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'boundary-land-disputed',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'boundary',
+ filter: ['all', ['!=', 'maritime', 1], ['==', 'disputed', 1]],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'none'
+ },
+ paint: {
+ 'line-color': 'hsl(248, 7%, 70%)',
+ 'line-dasharray': [1, 3],
+ 'line-width': {
+ base: 1,
+ stops: [
+ [0, 0.6],
+ [4, 1.4],
+ [5, 2],
+ [12, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'boundary-water',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'boundary',
+ filter: ['all', ['in', 'admin_level', 2, 4], ['==', 'maritime', 1]],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(154, 189, 214, 1)',
+ 'line-opacity': {
+ stops: [
+ [6, 0.6],
+ [10, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1,
+ stops: [
+ [0, 0.6],
+ [4, 1.4],
+ [5, 2],
+ [12, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'water-name-lakeline',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'water_name',
+ filter: ['==', '$type', 'LineString'],
+ layout: {
+ 'symbol-placement': 'line',
+ 'symbol-spacing': 350,
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-letter-spacing': 0.2,
+ 'text-max-width': 5,
+ 'text-rotation-alignment': 'map',
+ 'text-size': 14
+ },
+ paint: {
+ 'text-color': '#74aee9',
+ 'text-halo-color': 'rgba(255,255,255,0.7)',
+ 'text-halo-width': 1.5
+ }
+ },
+ {
+ id: 'water-name-ocean',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'water_name',
+ filter: ['all', ['==', '$type', 'Point'], ['==', 'class', 'ocean']],
+ layout: {
+ 'symbol-placement': 'point',
+ 'symbol-spacing': 350,
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-letter-spacing': 0.2,
+ 'text-max-width': 5,
+ 'text-rotation-alignment': 'map',
+ 'text-size': 14
+ },
+ paint: {
+ 'text-color': '#74aee9',
+ 'text-halo-color': 'rgba(255,255,255,0.7)',
+ 'text-halo-width': 1.5
+ }
+ },
+ {
+ id: 'water-name-other',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'water_name',
+ filter: ['all', ['==', '$type', 'Point'], ['!in', 'class', 'ocean']],
+ layout: {
+ 'symbol-placement': 'point',
+ 'symbol-spacing': 350,
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-letter-spacing': 0.2,
+ 'text-max-width': 5,
+ 'text-rotation-alignment': 'map',
+ 'text-size': {
+ stops: [
+ [0, 10],
+ [6, 14]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': 'rgba(0, 51, 178, 1)',
+ 'text-halo-color': 'rgba(255, 255, 255, 1)',
+ 'text-halo-width': 1.5
+ }
+ },
+ {
+ id: 'road_oneway',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 15,
+ filter: [
+ 'all',
+ ['==', 'oneway', 1],
+ [
+ 'in',
+ 'class',
+ 'motorway',
+ 'trunk',
+ 'primary',
+ 'secondary',
+ 'tertiary',
+ 'minor',
+ 'service'
+ ]
+ ],
+ layout: {
+ 'icon-image': 'oneway',
+ 'icon-padding': 2,
+ 'icon-rotate': 90,
+ 'icon-rotation-alignment': 'map',
+ 'icon-size': {
+ stops: [
+ [15, 0.5],
+ [19, 1]
+ ]
+ },
+ 'symbol-placement': 'line',
+ 'symbol-spacing': 75,
+ visibility: 'visible'
+ },
+ paint: { 'icon-opacity': 0.5 }
+ },
+ {
+ id: 'road_oneway_opposite',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 15,
+ filter: [
+ 'all',
+ ['==', 'oneway', -1],
+ [
+ 'in',
+ 'class',
+ 'motorway',
+ 'trunk',
+ 'primary',
+ 'secondary',
+ 'tertiary',
+ 'minor',
+ 'service'
+ ]
+ ],
+ layout: {
+ 'icon-image': 'oneway',
+ 'icon-padding': 2,
+ 'icon-rotate': -90,
+ 'icon-rotation-alignment': 'map',
+ 'icon-size': {
+ stops: [
+ [15, 0.5],
+ [19, 1]
+ ]
+ },
+ 'symbol-placement': 'line',
+ 'symbol-spacing': 75,
+ visibility: 'visible'
+ },
+ paint: { 'icon-opacity': 0.5 }
+ },
+ {
+ id: 'highway-name-path',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 15.5,
+ filter: ['==', 'class', 'path'],
+ layout: {
+ 'symbol-placement': 'line',
+ 'text-field': '{name:latin} {name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'map',
+ 'text-size': {
+ base: 1,
+ stops: [
+ [13, 12],
+ [14, 13]
+ ]
+ }
+ },
+ paint: {
+ 'text-color': 'rgba(171, 86, 0, 1)',
+ 'text-halo-color': '#f8f4f0',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'highway-name-minor',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 15,
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['in', 'class', 'minor', 'service', 'track']
+ ],
+ layout: {
+ 'symbol-placement': 'line',
+ 'text-field': '{name:latin} {name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'map',
+ 'text-size': {
+ base: 1,
+ stops: [
+ [13, 12],
+ [14, 13]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': 'rgba(143, 69, 0, 1)',
+ 'text-halo-blur': 0.5,
+ 'text-halo-width': 2,
+ 'text-halo-color': 'rgba(255, 255, 255, 1)'
+ }
+ },
+ {
+ id: 'highway-name-major',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 12.2,
+ filter: ['in', 'class', 'primary', 'secondary', 'tertiary', 'trunk'],
+ layout: {
+ 'symbol-placement': 'line',
+ 'text-field': '{name:latin} {name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'map',
+ 'text-size': {
+ base: 1,
+ stops: [
+ [13, 12],
+ [14, 13]
+ ]
+ },
+ visibility: 'visible',
+ 'symbol-z-order': 'source'
+ },
+ paint: {
+ 'text-color': 'rgba(0, 0, 0, 1)',
+ 'text-halo-blur': 0.5,
+ 'text-halo-width': 1,
+ 'text-halo-color': 'rgba(255, 255, 255, 1)'
+ }
+ },
+ {
+ id: 'highway-shield-us-interstate',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 7,
+ filter: [
+ 'all',
+ ['<=', 'ref_length', 6],
+ ['==', '$type', 'LineString'],
+ ['in', 'network', 'us-interstate']
+ ],
+ layout: {
+ 'icon-image': '{network}_{ref_length}',
+ 'icon-rotation-alignment': 'viewport',
+ 'icon-size': 1,
+ 'symbol-placement': {
+ base: 1,
+ stops: [
+ [7, 'point'],
+ [7, 'line'],
+ [8, 'line']
+ ]
+ },
+ 'symbol-spacing': 200,
+ 'text-field': '{ref}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'viewport',
+ 'text-size': 10
+ },
+ paint: { 'text-color': 'rgba(0, 0, 0, 1)' }
+ },
+ {
+ id: 'highway-shield-us-other',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 9,
+ filter: [
+ 'all',
+ ['<=', 'ref_length', 6],
+ ['==', '$type', 'LineString'],
+ ['in', 'network', 'us-highway', 'us-state']
+ ],
+ layout: {
+ 'icon-image': '{network}_{ref_length}',
+ 'icon-rotation-alignment': 'viewport',
+ 'icon-size': 1,
+ 'symbol-placement': {
+ base: 1,
+ stops: [
+ [10, 'point'],
+ [11, 'line']
+ ]
+ },
+ 'symbol-spacing': 200,
+ 'text-field': '{ref}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'viewport',
+ 'text-size': 10
+ },
+ paint: { 'text-color': 'rgba(0, 0, 0, 1)' }
+ },
+ {
+ id: 'highway-shield',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 8,
+ filter: [
+ 'all',
+ ['<=', 'ref_length', 6],
+ ['==', '$type', 'LineString'],
+ ['!in', 'network', 'us-interstate', 'us-highway', 'us-state']
+ ],
+ layout: {
+ 'icon-image': 'road_{ref_length}',
+ 'icon-rotation-alignment': 'viewport',
+ 'icon-size': 1,
+ 'symbol-placement': {
+ base: 1,
+ stops: [
+ [10, 'point'],
+ [11, 'line']
+ ]
+ },
+ 'symbol-spacing': 200,
+ 'text-field': '{ref}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'viewport',
+ 'text-size': 10,
+ visibility: 'visible'
+ },
+ paint: {
+ 'icon-opacity': {
+ stops: [
+ [8, 0],
+ [9, 1]
+ ]
+ },
+ 'text-opacity': {
+ stops: [
+ [8, 0],
+ [9, 1]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-name',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ minzoom: 13,
+ filter: ['all', ['==', '$type', 'LineString'], ['has', 'name']],
+ layout: {
+ 'symbol-placement': 'line',
+ 'symbol-spacing': 350,
+ 'text-field': '{name:latin} {name:nonlatin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-letter-spacing': 0.2,
+ 'text-max-width': 5,
+ 'text-rotation-alignment': 'map',
+ 'text-size': 14,
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': 'rgba(2, 72, 255, 1)',
+ 'text-halo-color': 'rgba(255,255,255,1)',
+ 'text-halo-width': 1.5,
+ 'text-halo-blur': 0
+ }
+ },
+ {
+ id: 'airport-label-major',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'aerodrome_label',
+ minzoom: 10,
+ filter: ['all', ['has', 'iata']],
+ layout: {
+ 'icon-image': 'airport_11',
+ 'icon-size': 1,
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-optional': true,
+ 'text-padding': 2,
+ 'text-size': 12,
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#666',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': '#ffffff',
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'poi-level-3',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'poi',
+ minzoom: 16,
+ filter: [
+ 'all',
+ ['==', '$type', 'Point'],
+ ['>=', 'rank', 25],
+ ['any', ['!has', 'level'], ['==', 'level', 0]]
+ ],
+ layout: {
+ 'icon-image': '{class}_11',
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-padding': 20,
+ 'text-size': 12,
+ visibility: 'visible',
+ 'symbol-spacing': 250,
+ 'symbol-avoid-edges': false,
+ 'text-letter-spacing': 0,
+ 'icon-padding': 2,
+ 'symbol-placement': 'point',
+ 'symbol-z-order': 'auto',
+ 'text-line-height': 1.2,
+ 'text-allow-overlap': false,
+ 'text-ignore-placement': false,
+ 'icon-allow-overlap': false,
+ 'icon-ignore-placement': false,
+ 'icon-optional': false
+ },
+ paint: {
+ 'text-color': 'rgba(2, 2, 3, 1)',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': 'rgba(232, 227, 227, 1)',
+ 'text-halo-width': 2,
+ 'text-translate-anchor': 'map',
+ 'text-opacity': 1
+ }
+ },
+ {
+ id: 'poi-level-2',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'poi',
+ minzoom: 15,
+ filter: [
+ 'all',
+ ['==', '$type', 'Point'],
+ ['<=', 'rank', 24],
+ ['>=', 'rank', 15],
+ ['any', ['!has', 'level'], ['==', 'level', 0]]
+ ],
+ layout: {
+ 'icon-image': '{class}_11',
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-padding': 2,
+ 'text-size': 12,
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': 'rgba(2, 2, 3, 1)',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': 'rgba(232, 227, 227, 1)',
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'poi-level-1',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'poi',
+ minzoom: 14,
+ filter: [
+ 'all',
+ ['==', '$type', 'Point'],
+ ['<=', 'rank', 14],
+ ['has', 'name'],
+ ['any', ['!has', 'level'], ['==', 'level', 0]]
+ ],
+ layout: {
+ 'icon-image': '{class}_11',
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-padding': 2,
+ 'text-size': 12,
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': 'rgba(2, 2, 3, 1)',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': 'rgba(232, 227, 227, 1)',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'poi-railway',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'poi',
+ minzoom: 13,
+ filter: [
+ 'all',
+ ['==', '$type', 'Point'],
+ ['has', 'name'],
+ ['==', 'class', 'railway'],
+ ['==', 'subclass', 'station']
+ ],
+ layout: {
+ 'icon-allow-overlap': false,
+ 'icon-ignore-placement': false,
+ 'icon-image': '{class}_11',
+ 'icon-optional': false,
+ 'text-allow-overlap': false,
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-ignore-placement': false,
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-optional': true,
+ 'text-padding': 2,
+ 'text-size': 12
+ },
+ paint: {
+ 'text-color': 'rgba(0, 0, 0, 1)',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'place-village',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: ['==', 'class', 'village'],
+ layout: {
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 8,
+ 'text-size': {
+ base: 1.2,
+ stops: [
+ [10, 12],
+ [15, 22]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': 'rgba(0, 0, 0, 1)',
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1.2
+ }
+ },
+ {
+ id: 'place-town',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: ['==', 'class', 'town'],
+ layout: {
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 8,
+ 'text-size': {
+ base: 1.2,
+ stops: [
+ [10, 14],
+ [15, 24]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': 'rgba(0, 0, 0, 1)',
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1.2
+ }
+ },
+ {
+ id: 'place-city',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: ['all', ['!=', 'capital', 2], ['==', 'class', 'city']],
+ layout: {
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 8,
+ 'text-size': {
+ base: 1.2,
+ stops: [
+ [7, 14],
+ [11, 24]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': 'rgba(0, 0, 0, 1)',
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1.2
+ }
+ },
+ {
+ id: 'place-city-capital',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: ['all', ['==', 'capital', 2], ['==', 'class', 'city']],
+ layout: {
+ 'icon-image': 'star_11',
+ 'icon-size': 0.8,
+ 'text-anchor': 'left',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 8,
+ 'text-offset': [0.4, 0],
+ 'text-size': {
+ base: 1.2,
+ stops: [
+ [7, 14],
+ [11, 24]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#333',
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1.2
+ }
+ },
+ {
+ id: 'place-country-other',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: [
+ 'all',
+ ['==', 'class', 'country'],
+ ['>=', 'rank', 3],
+ ['!has', 'iso_a2']
+ ],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-max-width': 6.25,
+ 'text-size': {
+ stops: [
+ [3, 11],
+ [7, 17]
+ ]
+ },
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'place-country-3',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: [
+ 'all',
+ ['==', 'class', 'country'],
+ ['>=', 'rank', 3],
+ ['has', 'iso_a2']
+ ],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Bold'],
+ 'text-max-width': 6.25,
+ 'text-size': {
+ stops: [
+ [3, 11],
+ [7, 17]
+ ]
+ },
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'place-country-2',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: [
+ 'all',
+ ['==', 'class', 'country'],
+ ['==', 'rank', 2],
+ ['has', 'iso_a2']
+ ],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Bold'],
+ 'text-max-width': 6.25,
+ 'text-size': {
+ stops: [
+ [2, 11],
+ [5, 17]
+ ]
+ },
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'place-country-1',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: [
+ 'all',
+ ['==', 'class', 'country'],
+ ['==', 'rank', 1],
+ ['has', 'iso_a2']
+ ],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Bold'],
+ 'text-max-width': 6.25,
+ 'text-size': {
+ stops: [
+ [1, 11],
+ [4, 17]
+ ]
+ },
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'place-continent',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ maxzoom: 1,
+ filter: ['==', 'class', 'continent'],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Bold'],
+ 'text-max-width': 6.25,
+ 'text-size': 14,
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ }
+];
diff --git a/app/javascript/components/MapStyles/ortho.json b/app/javascript/components/MapStyles/ortho.json
deleted file mode 100644
index d665c147e..000000000
--- a/app/javascript/components/MapStyles/ortho.json
+++ /dev/null
@@ -1,2133 +0,0 @@
-{
- "version": 8,
- "name": "Photographies aériennes",
- "metadat": {
- "mapbox:autocomposite": false,
- "mapbox:groups": {
- "1444849242106.713": {"collapsed": false, "name": "Places"},
- "1444849334699.1902": {"collapsed": true, "name": "Bridges"},
- "1444849345966.4436": {"collapsed": false, "name": "Roads"},
- "1444849354174.1904": {"collapsed": true, "name": "Tunnels"},
- "1444849364238.8171": {"collapsed": false, "name": "Buildings"},
- "1444849382550.77": {"collapsed": false, "name": "Water"},
- "1444849388993.3071": {"collapsed": false, "name": "Land"}
- },
- "mapbox:type": "template",
- "openmaptiles:mapbox:owner": "openmaptiles",
- "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t",
- "openmaptiles:version": "3.x",
- "maputnik:renderer": "mbgljs"
- },
- "center": [0, 0],
- "zoom": 1,
- "bearing": 0,
- "pitch": 0,
- "sources": {
- "decoupage-administratif": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/decoupage-administratif.json"
- },
- "openmaptiles": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/france-vector.json"
- },
- "photographies-aeriennes": {
- "type": "raster",
- "tiles": [
- "https://tiles.geo.api.gouv.fr/photographies-aeriennes/tiles/{z}/{x}/{y}"
- ],
- "tileSize": 256,
- "attribution": "Images aériennes © IGN",
- "minzoom": 0,
- "maxzoom": 19
- }
- },
- "sprite": "https://openmaptiles.github.io/osm-bright-gl-style/sprite",
- "glyphs": "https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf",
- "layers": [
- {
- "id": "photographies-aeriennes",
- "type": "raster",
- "source": "photographies-aeriennes",
- "paint": {"raster-resampling": "linear"}
- },
-
- {
- "id": "communes",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "communes",
- "minzoom": 10,
- "maxzoom": 24,
- "filter": ["all"],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "rgba(0, 0, 0, 1)",
- "line-width": 1.5,
- "line-opacity": 1,
- "line-blur": 0
- }
- },
- {
- "id": "departements",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "departements",
- "minzoom": 0,
- "maxzoom": 24,
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "rgba(0, 0, 0, 1)",
- "line-width": 1,
- "line-opacity": 1
- }
- },
- {
- "id": "regions",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "regions",
- "minzoom": 0,
- "maxzoom": 24,
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "rgba(0, 0, 0, 1)",
- "line-width": 1,
- "line-opacity": 1
- }
- },
- {
- "id": "waterway_tunnel",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "waterway",
- "minzoom": 14,
- "filter": [
- "all",
- ["in", "class", "river", "stream", "canal"],
- ["==", "brunnel", "tunnel"]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-dasharray": [2, 4],
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
- }
- },
- {
- "id": "waterway-other",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["!in", "class", "canal", "river", "stream"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]}
- }
- },
- {
- "id": "waterway-other-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["!in", "class", "canal", "river", "stream"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]},
- "line-dasharray": [4, 3]
- }
- },
- {
- "id": "waterway-stream-canal",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["in", "class", "canal", "stream"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
- }
- },
- {
- "id": "waterway-stream-canal-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["in", "class", "canal", "stream"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]},
- "line-dasharray": [4, 3]
- }
- },
- {
- "id": "waterway-river",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["==", "class", "river"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]}
- }
- },
- {
- "id": "waterway-river-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["==", "class", "river"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]},
- "line-dasharray": [3, 2.5]
- }
- },
- {
- "id": "tunnel-service-track-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "service", "track"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#cfcdca",
- "line-dasharray": [0.5, 0.25],
- "line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]}
- }
- },
- {
- "id": "tunnel-minor-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "minor"]],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#cfcdca",
- "line-opacity": {"stops": [[12, 0], [12.5, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "tunnel-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
- }
- },
- {
- "id": "tunnel-trunk-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "tunnel-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#e9ac77",
- "line-dasharray": [0.5, 0.25],
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "tunnel-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "tunnel"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "tunnel-service-track",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "service", "track"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]}
- }
- },
- {
- "id": "tunnel-minor",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "minor_road"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
- }
- },
- {
- "id": "tunnel-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff4c6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 10]]}
- }
- },
- {
- "id": "tunnel-trunk-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff4c6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "tunnel-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#ffdaa6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "tunnel-railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [2, 2],
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "ferry",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["in", "class", "ferry"]],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "rgba(108, 159, 182, 1)",
- "line-dasharray": [2, 2],
- "line-width": 1.1
- }
- },
- {
- "id": "aeroway-taxiway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 12,
- "filter": ["all", ["in", "class", "taxiway"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(153, 153, 153, 1)",
- "line-opacity": 1,
- "line-width": {"base": 1.5, "stops": [[11, 2], [17, 12]]}
- }
- },
- {
- "id": "aeroway-runway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 12,
- "filter": ["all", ["in", "class", "runway"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(153, 153, 153, 1)",
- "line-opacity": 0.2,
- "line-width": {"base": 1.5, "stops": [[11, 5], [17, 55]]}
- }
- },
- {
- "id": "aeroway-taxiway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["in", "class", "taxiway"],
- ["==", "$type", "LineString"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(255, 255, 255, 1)",
- "line-opacity": {"base": 1, "stops": [[11, 0], [12, 1]]},
- "line-width": {"base": 1.5, "stops": [[11, 1], [17, 10]]}
- }
- },
- {
- "id": "aeroway-runway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["in", "class", "runway"],
- ["==", "$type", "LineString"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(255, 255, 255, 1)",
- "line-opacity": {"base": 1, "stops": [[11, 0], [12, 0.2]]},
- "line-width": {"base": 1.5, "stops": [[11, 4], [17, 50]]}
- }
- },
- {
- "id": "road_area_pier",
- "type": "fill",
- "metadata": {},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "Polygon"], ["==", "class", "pier"]],
- "layout": {"visibility": "visible"},
- "paint": {"fill-antialias": true, "fill-color": "#f8f4f0"}
- },
- {
- "id": "road_pier",
- "type": "line",
- "metadata": {},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "LineString"], ["in", "class", "pier"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#f8f4f0",
- "line-width": {"base": 1.2, "stops": [[15, 1], [17, 4]]}
- }
- },
- {
- "id": "highway-area",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "Polygon"], ["!in", "class", "pier"]],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-antialias": false,
- "fill-color": "hsla(0, 0%, 89%, 0.56)",
- "fill-opacity": {"stops": [[15, 0], [16, 0.9]]},
- "fill-outline-color": "#cfcdca"
- }
- },
- {
- "id": "highway-motorway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 12,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-minor-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!=", "brunnel", "tunnel"],
- ["in", "class", "minor", "service", "track"]
- ]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#cfcdca",
- "line-opacity": {"stops": [[14, 0], [15, 0.5]]},
- "line-width": {"base": 1.2, "stops": [[15, 0.5], [16, 5]]}
- }
- },
- {
- "id": "highway-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[15, 0], [16, 0.3]]},
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
- }
- },
- {
- "id": "highway-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "primary"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]},
- "line-width": {
- "base": 1.2,
- "stops": [[7, 0], [8, 0.6], [9, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-trunk-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "trunk"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]},
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 4,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[8, 0], [9, 0.2]]},
- "line-width": {
- "base": 1.2,
- "stops": [[4, 0], [5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "path"]]
- ],
- "layout": {"visibility": "none"},
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "highway-motorway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 12,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "highway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "highway-minor",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!=", "brunnel", "tunnel"],
- ["in", "class", "minor", "service", "track"]
- ]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-opacity": {"stops": [[16, 0], [17, 0.4]]},
- "line-width": {"base": 1.2, "stops": [[16, 0], [17, 2.5]]}
- }
- },
- {
- "id": "highway-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [8, 0.5], [20, 13]]},
- "line-opacity": {"stops": [[11, 0], [13, 0.3]]}
- }
- },
- {
- "id": "highway-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "primary"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[8.5, 0], [9, 0.5], [20, 18]]},
- "line-opacity": {"stops": [[8, 0], [9, 0.3]]}
- }
- },
- {
- "id": "highway-trunk",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "trunk"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]},
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]}
- }
- },
- {
- "id": "highway-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fc8",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]},
- "line-opacity": {"stops": [[8, 0], [9, 0.2]]}
- }
- },
- {
- "id": "railway-transit",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "transit"], ["!in", "brunnel", "tunnel"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.77)",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
- }
- },
- {
- "id": "railway-transit-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "transit"], ["!in", "brunnel", "tunnel"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.68)",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
- }
- },
- {
- "id": "railway-service",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "rail"], ["has", "service"]]
- ],
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.77)",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
- }
- },
- {
- "id": "railway-service-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "rail"], ["has", "service"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.68)",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
- }
- },
- {
- "id": "railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!has", "service"],
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "rail"]
- ]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "#bbb",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]},
- "line-opacity": {"stops": [[11, 0], [13, 1]]}
- }
- },
- {
- "id": "railway-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!has", "service"],
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "rail"]
- ]
- ],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
- }
- },
- {
- "id": "bridge-motorway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "bridge-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "bridge-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 0.3,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 28]]}
- }
- },
- {
- "id": "bridge-trunk-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "hsl(28, 76%, 67%)",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 26]]
- },
- "line-opacity": 0.3
- }
- },
- {
- "id": "bridge-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- },
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]}
- }
- },
- {
- "id": "bridge-path-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "bridge"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#f8f4f0",
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 18]]}
- }
- },
- {
- "id": "bridge-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "bridge"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "bridge-motorway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "bridge-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "bridge-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 20]]},
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]}
- }
- },
- {
- "id": "bridge-trunk-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]},
- "line-opacity": 0.3
- }
- },
- {
- "id": "bridge-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]},
- "line-opacity": 0.3
- }
- },
- {
- "id": "bridge-railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "bridge-railway-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
- }
- },
- {
- "id": "cablecar",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": ["==", "class", "cable_car"],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "hsl(0, 0%, 70%)",
- "line-width": {"base": 1, "stops": [[11, 1], [19, 2.5]]}
- }
- },
- {
- "id": "cablecar-dash",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": ["==", "class", "cable_car"],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "hsl(0, 0%, 70%)",
- "line-dasharray": [2, 3],
- "line-width": {"base": 1, "stops": [[11, 3], [19, 5.5]]}
- }
- },
- {
- "id": "boundary-land-level-4",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": [
- "all",
- [">=", "admin_level", 4],
- ["<=", "admin_level", 8],
- ["!=", "maritime", 1]
- ],
- "layout": {"line-join": "round", "visibility": "none"},
- "paint": {
- "line-color": "#9e9cab",
- "line-dasharray": [3, 1, 1, 1],
- "line-width": {"base": 1.4, "stops": [[4, 0.4], [5, 1], [12, 3]]}
- }
- },
- {
- "id": "boundary-land-level-2",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": [
- "all",
- ["==", "admin_level", 2],
- ["!=", "maritime", 1],
- ["!=", "disputed", 1]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "none"
- },
- "paint": {
- "line-color": "hsl(248, 7%, 66%)",
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "boundary-land-disputed",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": ["all", ["!=", "maritime", 1], ["==", "disputed", 1]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "none"
- },
- "paint": {
- "line-color": "hsl(248, 7%, 70%)",
- "line-dasharray": [1, 3],
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "boundary-water",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": ["all", ["in", "admin_level", 2, 4], ["==", "maritime", 1]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(154, 189, 214, 1)",
- "line-opacity": {"stops": [[6, 0.6], [10, 1]]},
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "water-name-lakeline",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["==", "$type", "LineString"],
- "layout": {
- "symbol-placement": "line",
- "symbol-spacing": 350,
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "water-name-ocean",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["all", ["==", "$type", "Point"], ["==", "class", "ocean"]],
- "layout": {
- "symbol-placement": "point",
- "symbol-spacing": 350,
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "water-name-other",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["all", ["==", "$type", "Point"], ["!in", "class", "ocean"]],
- "layout": {
- "symbol-placement": "point",
- "symbol-spacing": 350,
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": {"stops": [[0, 10], [6, 14]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(0, 51, 178, 1)",
- "text-halo-color": "rgba(255, 255, 255, 1)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "road_oneway",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "oneway", 1],
- [
- "in",
- "class",
- "motorway",
- "trunk",
- "primary",
- "secondary",
- "tertiary",
- "minor",
- "service"
- ]
- ],
- "layout": {
- "icon-image": "oneway",
- "icon-padding": 2,
- "icon-rotate": 90,
- "icon-rotation-alignment": "map",
- "icon-size": {"stops": [[15, 0.5], [19, 1]]},
- "symbol-placement": "line",
- "symbol-spacing": 75,
- "visibility": "visible"
- },
- "paint": {"icon-opacity": 0.5}
- },
- {
- "id": "road_oneway_opposite",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "oneway", -1],
- [
- "in",
- "class",
- "motorway",
- "trunk",
- "primary",
- "secondary",
- "tertiary",
- "minor",
- "service"
- ]
- ],
- "layout": {
- "icon-image": "oneway",
- "icon-padding": 2,
- "icon-rotate": -90,
- "icon-rotation-alignment": "map",
- "icon-size": {"stops": [[15, 0.5], [19, 1]]},
- "symbol-placement": "line",
- "symbol-spacing": 75,
- "visibility": "visible"
- },
- "paint": {"icon-opacity": 0.5}
- },
- {
- "id": "highway-name-path",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 15.5,
- "filter": ["==", "class", "path"],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
- },
- "paint": {
- "text-color": "rgba(171, 86, 0, 1)",
- "text-halo-color": "#f8f4f0",
- "text-halo-width": 2
- }
- },
- {
- "id": "highway-name-minor",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["in", "class", "minor", "service", "track"]
- ],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(143, 69, 0, 1)",
- "text-halo-blur": 0.5,
- "text-halo-width": 2,
- "text-halo-color": "rgba(255, 255, 255, 1)"
- }
- },
- {
- "id": "highway-name-major",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 12.2,
- "filter": ["in", "class", "primary", "secondary", "tertiary", "trunk"],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]},
- "visibility": "visible",
- "symbol-z-order": "source"
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-blur": 0.5,
- "text-halo-width": 1,
- "text-halo-color": "rgba(255, 255, 255, 1)"
- }
- },
- {
- "id": "highway-shield-us-interstate",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 7,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["in", "network", "us-interstate"]
- ],
- "layout": {
- "icon-image": "{network}_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {
- "base": 1,
- "stops": [[7, "point"], [7, "line"], [8, "line"]]
- },
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {"text-color": "rgba(0, 0, 0, 1)"}
- },
- {
- "id": "highway-shield-us-other",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 9,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["in", "network", "us-highway", "us-state"]
- ],
- "layout": {
- "icon-image": "{network}_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {"text-color": "rgba(0, 0, 0, 1)"}
- },
- {
- "id": "highway-shield",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 8,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["!in", "network", "us-interstate", "us-highway", "us-state"]
- ],
- "layout": {
- "icon-image": "road_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10,
- "visibility": "visible"
- },
- "paint": {
- "icon-opacity": {"stops": [[8, 0], [9, 1]]},
- "text-opacity": {"stops": [[8, 0], [9, 1]]}
- }
- },
- {
- "id": "waterway-name",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "waterway",
- "minzoom": 13,
- "filter": ["all", ["==", "$type", "LineString"], ["has", "name"]],
- "layout": {
- "symbol-placement": "line",
- "symbol-spacing": 350,
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(2, 72, 255, 1)",
- "text-halo-color": "rgba(255,255,255,1)",
- "text-halo-width": 1.5,
- "text-halo-blur": 0
- }
- },
- {
- "id": "airport-label-major",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "aerodrome_label",
- "minzoom": 10,
- "filter": ["all", ["has", "iata"]],
- "layout": {
- "icon-image": "airport_11",
- "icon-size": 1,
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-optional": true,
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-3",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 16,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- [">=", "rank", 25],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 20,
- "text-size": 12,
- "visibility": "visible",
- "symbol-spacing": 250,
- "symbol-avoid-edges": false,
- "text-letter-spacing": 0,
- "icon-padding": 2,
- "symbol-placement": "point",
- "symbol-z-order": "auto",
- "text-line-height": 1.2,
- "text-allow-overlap": false,
- "text-ignore-placement": false,
- "icon-allow-overlap": false,
- "icon-ignore-placement": false,
- "icon-optional": false
- },
- "paint": {
- "text-color": "rgba(2, 2, 3, 1)",
- "text-halo-blur": 0.5,
- "text-halo-color": "rgba(232, 227, 227, 1)",
- "text-halo-width": 2,
- "text-translate-anchor": "map",
- "text-opacity": 1
- }
- },
- {
- "id": "poi-level-2",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["<=", "rank", 24],
- [">=", "rank", 15],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(2, 2, 3, 1)",
- "text-halo-blur": 0.5,
- "text-halo-color": "rgba(232, 227, 227, 1)",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-1",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 14,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["<=", "rank", 14],
- ["has", "name"],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(2, 2, 3, 1)",
- "text-halo-blur": 0.5,
- "text-halo-color": "rgba(232, 227, 227, 1)",
- "text-halo-width": 2
- }
- },
- {
- "id": "poi-railway",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 13,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["has", "name"],
- ["==", "class", "railway"],
- ["==", "subclass", "station"]
- ],
- "layout": {
- "icon-allow-overlap": false,
- "icon-ignore-placement": false,
- "icon-image": "{class}_11",
- "icon-optional": false,
- "text-allow-overlap": false,
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-ignore-placement": false,
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-optional": true,
- "text-padding": 2,
- "text-size": 12
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-blur": 0.5,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1
- }
- },
- {
- "id": "place-village",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["==", "class", "village"],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[10, 12], [15, 22]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-town",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["==", "class", "town"],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[10, 14], [15, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-city",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["all", ["!=", "capital", 2], ["==", "class", "city"]],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-city-capital",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["all", ["==", "capital", 2], ["==", "class", "city"]],
- "layout": {
- "icon-image": "star_11",
- "icon-size": 0.8,
- "text-anchor": "left",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-offset": [0.4, 0],
- "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-country-other",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- [">=", "rank", 3],
- ["!has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Italic"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[3, 11], [7, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-3",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- [">=", "rank", 3],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[3, 11], [7, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-2",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- ["==", "rank", 2],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[2, 11], [5, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-1",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- ["==", "rank", 1],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[1, 11], [4, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-continent",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "maxzoom": 1,
- "filter": ["==", "class", "continent"],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": 14,
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- }
-
- ],
- "id": "etalab-aerial"
-}
diff --git a/app/javascript/components/MapStyles/orthoCadastre.json b/app/javascript/components/MapStyles/orthoCadastre.json
deleted file mode 100644
index 296c3c8dc..000000000
--- a/app/javascript/components/MapStyles/orthoCadastre.json
+++ /dev/null
@@ -1,2292 +0,0 @@
-{
- "version": 8,
- "name": "Cadastre sur photographies aériennes",
- "metadata": {
- "mapbox:autocomposite": false,
- "mapbox:groups": {
- "1444849242106.713": {"collapsed": false, "name": "Places"},
- "1444849334699.1902": {"collapsed": true, "name": "Bridges"},
- "1444849345966.4436": {"collapsed": false, "name": "Roads"},
- "1444849354174.1904": {"collapsed": true, "name": "Tunnels"},
- "1444849364238.8171": {"collapsed": false, "name": "Buildings"},
- "1444849382550.77": {"collapsed": false, "name": "Water"},
- "1444849388993.3071": {"collapsed": false, "name": "Land"}
- },
- "mapbox:type": "template",
- "openmaptiles:mapbox:owner": "openmaptiles",
- "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t",
- "openmaptiles:version": "3.x",
- "maputnik:renderer": "mbgljs"
- },
- "center": [0, 0],
- "zoom": 1,
- "bearing": 0,
- "pitch": 0,
- "sources": {
- "cadastre": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/cadastre.json"
- },
- "decoupage-administratif": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/decoupage-administratif.json"
- },
- "openmaptiles": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/france-vector.json"
- },
- "photographies-aeriennes": {
- "type": "raster",
- "tiles": [
- "https://tiles.geo.api.gouv.fr/photographies-aeriennes/tiles/{z}/{x}/{y}"
- ],
- "tileSize": 256,
- "attribution": "Images aériennes © IGN",
- "minzoom": 0,
- "maxzoom": 19
- }
- },
- "sprite": "https://openmaptiles.github.io/osm-bright-gl-style/sprite",
- "glyphs": "https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf",
- "layers": [
- {
- "id": "photographies-aeriennes",
- "type": "raster",
- "source": "photographies-aeriennes",
- "paint": {"raster-resampling": "linear"}
- },
- {
- "id": "batiments-line",
- "type": "line",
- "source": "cadastre",
- "source-layer": "batiments",
- "minzoom": 16,
- "maxzoom": 22,
- "layout": {"visibility": "visible"},
- "paint": {
- "line-opacity": 1,
- "line-color": "rgba(0, 0, 0, 1)",
- "line-width": 1
- }
- },
- {
- "id": "batiments-fill",
- "type": "fill",
- "source": "cadastre",
- "source-layer": "batiments",
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "rgba(150, 150, 150, 1)",
- "fill-opacity": {"stops": [[16, 0], [17, 0.6]]},
- "fill-antialias": true
- }
- },
- {
- "id": "parcelles",
- "type": "line",
- "source": "cadastre",
- "source-layer": "parcelles",
- "minzoom": 15.5,
- "maxzoom": 24,
- "layout": {
- "visibility": "visible",
- "line-cap": "butt",
- "line-join": "miter",
- "line-miter-limit": 2
- },
- "paint": {
- "line-color": "rgba(255, 255, 255, 1)",
- "line-opacity": 0.8,
- "line-width": {"stops": [[16, 1.5], [17, 2]]},
- "line-offset": 0,
- "line-blur": 0,
- "line-translate": [0, 1],
- "line-dasharray": [1],
- "line-gap-width": 0
- }
- },
- {
- "id": "parcelles-fill",
- "type": "fill",
- "source": "cadastre",
- "source-layer": "parcelles",
- "layout": {
- "visibility": "visible"
- },
- "paint": {
- "fill-color": "rgba(129, 123, 0, 1)",
- "fill-opacity": [
- "case",
- [
- "boolean",
- [
- "feature-state",
- "hover"
- ],
- false
- ],
- 0.7,
- 0.1
- ]
- }
- },
- {
- "id": "parcelle-highlighted",
- "type": "fill",
- "source": "cadastre",
- "source-layer": "parcelles",
- "filter": ["==", "id", ""],
- "paint": {
- "fill-color": "rgba(1, 129, 0, 1)",
- "fill-opacity": 0.7
- }
- },
- {
- "id": "sections",
- "type": "line",
- "source": "cadastre",
- "source-layer": "sections",
- "minzoom": 12,
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "rgba(0, 0, 0, 1)",
- "line-opacity": 0.7,
- "line-width": 2,
- "line-dasharray": [3, 3],
- "line-translate": [0, 0]
- }
- },
- {
- "id": "communes",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "communes",
- "minzoom": 10,
- "maxzoom": 24,
- "filter": ["all"],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "rgba(0, 0, 0, 1)",
- "line-width": 1.5,
- "line-opacity": 1,
- "line-blur": 0
- }
- },
- {
- "id": "departements",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "departements",
- "minzoom": 0,
- "maxzoom": 24,
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "rgba(0, 0, 0, 1)",
- "line-width": 1,
- "line-opacity": 1
- }
- },
- {
- "id": "regions",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "regions",
- "minzoom": 0,
- "maxzoom": 24,
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "rgba(0, 0, 0, 1)",
- "line-width": 1,
- "line-opacity": 1
- }
- },
- {
- "id": "waterway_tunnel",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "waterway",
- "minzoom": 14,
- "filter": [
- "all",
- ["in", "class", "river", "stream", "canal"],
- ["==", "brunnel", "tunnel"]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-dasharray": [2, 4],
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
- }
- },
- {
- "id": "waterway-other",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["!in", "class", "canal", "river", "stream"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]}
- }
- },
- {
- "id": "waterway-other-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["!in", "class", "canal", "river", "stream"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]},
- "line-dasharray": [4, 3]
- }
- },
- {
- "id": "waterway-stream-canal",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["in", "class", "canal", "stream"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
- }
- },
- {
- "id": "waterway-stream-canal-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["in", "class", "canal", "stream"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]},
- "line-dasharray": [4, 3]
- }
- },
- {
- "id": "waterway-river",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["==", "class", "river"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]}
- }
- },
- {
- "id": "waterway-river-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["==", "class", "river"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "none"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]},
- "line-dasharray": [3, 2.5]
- }
- },
- {
- "id": "tunnel-service-track-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "service", "track"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#cfcdca",
- "line-dasharray": [0.5, 0.25],
- "line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]}
- }
- },
- {
- "id": "tunnel-minor-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "minor"]],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#cfcdca",
- "line-opacity": {"stops": [[12, 0], [12.5, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "tunnel-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
- }
- },
- {
- "id": "tunnel-trunk-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "tunnel-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#e9ac77",
- "line-dasharray": [0.5, 0.25],
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "tunnel-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "tunnel"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "tunnel-service-track",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "service", "track"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]}
- }
- },
- {
- "id": "tunnel-minor",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "minor_road"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
- }
- },
- {
- "id": "tunnel-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff4c6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 10]]}
- }
- },
- {
- "id": "tunnel-trunk-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff4c6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "tunnel-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#ffdaa6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "tunnel-railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [2, 2],
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "ferry",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["in", "class", "ferry"]],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "rgba(108, 159, 182, 1)",
- "line-dasharray": [2, 2],
- "line-width": 1.1
- }
- },
- {
- "id": "aeroway-taxiway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 12,
- "filter": ["all", ["in", "class", "taxiway"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(153, 153, 153, 1)",
- "line-opacity": 1,
- "line-width": {"base": 1.5, "stops": [[11, 2], [17, 12]]}
- }
- },
- {
- "id": "aeroway-runway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 12,
- "filter": ["all", ["in", "class", "runway"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(153, 153, 153, 1)",
- "line-opacity": 0.2,
- "line-width": {"base": 1.5, "stops": [[11, 5], [17, 55]]}
- }
- },
- {
- "id": "aeroway-taxiway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["in", "class", "taxiway"],
- ["==", "$type", "LineString"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(255, 255, 255, 1)",
- "line-opacity": {"base": 1, "stops": [[11, 0], [12, 1]]},
- "line-width": {"base": 1.5, "stops": [[11, 1], [17, 10]]}
- }
- },
- {
- "id": "aeroway-runway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["in", "class", "runway"],
- ["==", "$type", "LineString"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(255, 255, 255, 1)",
- "line-opacity": {"base": 1, "stops": [[11, 0], [12, 0.2]]},
- "line-width": {"base": 1.5, "stops": [[11, 4], [17, 50]]}
- }
- },
- {
- "id": "road_area_pier",
- "type": "fill",
- "metadata": {},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "Polygon"], ["==", "class", "pier"]],
- "layout": {"visibility": "visible"},
- "paint": {"fill-antialias": true, "fill-color": "#f8f4f0"}
- },
- {
- "id": "road_pier",
- "type": "line",
- "metadata": {},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "LineString"], ["in", "class", "pier"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#f8f4f0",
- "line-width": {"base": 1.2, "stops": [[15, 1], [17, 4]]}
- }
- },
- {
- "id": "highway-area",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "Polygon"], ["!in", "class", "pier"]],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-antialias": false,
- "fill-color": "hsla(0, 0%, 89%, 0.56)",
- "fill-opacity": {"stops": [[15, 0], [16, 0.9]]},
- "fill-outline-color": "#cfcdca"
- }
- },
- {
- "id": "highway-motorway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 12,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-minor-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!=", "brunnel", "tunnel"],
- ["in", "class", "minor", "service", "track"]
- ]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#cfcdca",
- "line-opacity": {"stops": [[14, 0], [15, 0.5]]},
- "line-width": {"base": 1.2, "stops": [[15, 0.5], [16, 5]]}
- }
- },
- {
- "id": "highway-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[15, 0], [16, 0.3]]},
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
- }
- },
- {
- "id": "highway-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "primary"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]},
- "line-width": {
- "base": 1.2,
- "stops": [[7, 0], [8, 0.6], [9, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-trunk-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "trunk"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]},
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 4,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[8, 0], [9, 0.2]]},
- "line-width": {
- "base": 1.2,
- "stops": [[4, 0], [5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "path"]]
- ],
- "layout": {"visibility": "none"},
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "highway-motorway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 12,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "highway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "highway-minor",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!=", "brunnel", "tunnel"],
- ["in", "class", "minor", "service", "track"]
- ]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-opacity": {"stops": [[16, 0], [17, 0.4]]},
- "line-width": {"base": 1.2, "stops": [[16, 0], [17, 2.5]]}
- }
- },
- {
- "id": "highway-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [8, 0.5], [20, 13]]},
- "line-opacity": {"stops": [[11, 0], [13, 0.3]]}
- }
- },
- {
- "id": "highway-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "primary"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[8.5, 0], [9, 0.5], [20, 18]]},
- "line-opacity": {"stops": [[8, 0], [9, 0.3]]}
- }
- },
- {
- "id": "highway-trunk",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "trunk"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]},
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]}
- }
- },
- {
- "id": "highway-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fc8",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]},
- "line-opacity": {"stops": [[8, 0], [9, 0.2]]}
- }
- },
- {
- "id": "railway-transit",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "transit"], ["!in", "brunnel", "tunnel"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.77)",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
- }
- },
- {
- "id": "railway-transit-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "transit"], ["!in", "brunnel", "tunnel"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.68)",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
- }
- },
- {
- "id": "railway-service",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "rail"], ["has", "service"]]
- ],
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.77)",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
- }
- },
- {
- "id": "railway-service-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "rail"], ["has", "service"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.68)",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
- }
- },
- {
- "id": "railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!has", "service"],
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "rail"]
- ]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "#bbb",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]},
- "line-opacity": {"stops": [[11, 0], [13, 1]]}
- }
- },
- {
- "id": "railway-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!has", "service"],
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "rail"]
- ]
- ],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
- }
- },
- {
- "id": "bridge-motorway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "bridge-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "bridge-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 0.3,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 28]]}
- }
- },
- {
- "id": "bridge-trunk-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "hsl(28, 76%, 67%)",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 26]]
- },
- "line-opacity": 0.3
- }
- },
- {
- "id": "bridge-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- },
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]}
- }
- },
- {
- "id": "bridge-path-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "bridge"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#f8f4f0",
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 18]]}
- }
- },
- {
- "id": "bridge-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "bridge"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "bridge-motorway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "bridge-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "bridge-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 20]]},
- "line-opacity": {"stops": [[16, 0], [17, 0.3]]}
- }
- },
- {
- "id": "bridge-trunk-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]},
- "line-opacity": 0.3
- }
- },
- {
- "id": "bridge-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]},
- "line-opacity": 0.3
- }
- },
- {
- "id": "bridge-railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "bridge-railway-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
- }
- },
- {
- "id": "cablecar",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": ["==", "class", "cable_car"],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "hsl(0, 0%, 70%)",
- "line-width": {"base": 1, "stops": [[11, 1], [19, 2.5]]}
- }
- },
- {
- "id": "cablecar-dash",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": ["==", "class", "cable_car"],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "hsl(0, 0%, 70%)",
- "line-dasharray": [2, 3],
- "line-width": {"base": 1, "stops": [[11, 3], [19, 5.5]]}
- }
- },
- {
- "id": "boundary-land-level-4",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": [
- "all",
- [">=", "admin_level", 4],
- ["<=", "admin_level", 8],
- ["!=", "maritime", 1]
- ],
- "layout": {"line-join": "round", "visibility": "none"},
- "paint": {
- "line-color": "#9e9cab",
- "line-dasharray": [3, 1, 1, 1],
- "line-width": {"base": 1.4, "stops": [[4, 0.4], [5, 1], [12, 3]]}
- }
- },
- {
- "id": "boundary-land-level-2",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": [
- "all",
- ["==", "admin_level", 2],
- ["!=", "maritime", 1],
- ["!=", "disputed", 1]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "none"
- },
- "paint": {
- "line-color": "hsl(248, 7%, 66%)",
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "boundary-land-disputed",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": ["all", ["!=", "maritime", 1], ["==", "disputed", 1]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "none"
- },
- "paint": {
- "line-color": "hsl(248, 7%, 70%)",
- "line-dasharray": [1, 3],
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "boundary-water",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": ["all", ["in", "admin_level", 2, 4], ["==", "maritime", 1]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(154, 189, 214, 1)",
- "line-opacity": {"stops": [[6, 0.6], [10, 1]]},
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "water-name-lakeline",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["==", "$type", "LineString"],
- "layout": {
- "symbol-placement": "line",
- "symbol-spacing": 350,
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "water-name-ocean",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["all", ["==", "$type", "Point"], ["==", "class", "ocean"]],
- "layout": {
- "symbol-placement": "point",
- "symbol-spacing": 350,
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "water-name-other",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["all", ["==", "$type", "Point"], ["!in", "class", "ocean"]],
- "layout": {
- "symbol-placement": "point",
- "symbol-spacing": 350,
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": {"stops": [[0, 10], [6, 14]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(0, 51, 178, 1)",
- "text-halo-color": "rgba(255, 255, 255, 1)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "road_oneway",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "oneway", 1],
- [
- "in",
- "class",
- "motorway",
- "trunk",
- "primary",
- "secondary",
- "tertiary",
- "minor",
- "service"
- ]
- ],
- "layout": {
- "icon-image": "oneway",
- "icon-padding": 2,
- "icon-rotate": 90,
- "icon-rotation-alignment": "map",
- "icon-size": {"stops": [[15, 0.5], [19, 1]]},
- "symbol-placement": "line",
- "symbol-spacing": 75,
- "visibility": "visible"
- },
- "paint": {"icon-opacity": 0.5}
- },
- {
- "id": "road_oneway_opposite",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "oneway", -1],
- [
- "in",
- "class",
- "motorway",
- "trunk",
- "primary",
- "secondary",
- "tertiary",
- "minor",
- "service"
- ]
- ],
- "layout": {
- "icon-image": "oneway",
- "icon-padding": 2,
- "icon-rotate": -90,
- "icon-rotation-alignment": "map",
- "icon-size": {"stops": [[15, 0.5], [19, 1]]},
- "symbol-placement": "line",
- "symbol-spacing": 75,
- "visibility": "visible"
- },
- "paint": {"icon-opacity": 0.5}
- },
- {
- "id": "highway-name-path",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 15.5,
- "filter": ["==", "class", "path"],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
- },
- "paint": {
- "text-color": "rgba(171, 86, 0, 1)",
- "text-halo-color": "#f8f4f0",
- "text-halo-width": 2
- }
- },
- {
- "id": "highway-name-minor",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["in", "class", "minor", "service", "track"]
- ],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(143, 69, 0, 1)",
- "text-halo-blur": 0.5,
- "text-halo-width": 2,
- "text-halo-color": "rgba(255, 255, 255, 1)"
- }
- },
- {
- "id": "highway-name-major",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 12.2,
- "filter": ["in", "class", "primary", "secondary", "tertiary", "trunk"],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]},
- "visibility": "visible",
- "symbol-z-order": "source"
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-blur": 0.5,
- "text-halo-width": 1,
- "text-halo-color": "rgba(255, 255, 255, 1)"
- }
- },
- {
- "id": "highway-shield-us-interstate",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 7,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["in", "network", "us-interstate"]
- ],
- "layout": {
- "icon-image": "{network}_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {
- "base": 1,
- "stops": [[7, "point"], [7, "line"], [8, "line"]]
- },
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {"text-color": "rgba(0, 0, 0, 1)"}
- },
- {
- "id": "highway-shield-us-other",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 9,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["in", "network", "us-highway", "us-state"]
- ],
- "layout": {
- "icon-image": "{network}_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {"text-color": "rgba(0, 0, 0, 1)"}
- },
- {
- "id": "highway-shield",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 8,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["!in", "network", "us-interstate", "us-highway", "us-state"]
- ],
- "layout": {
- "icon-image": "road_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10,
- "visibility": "visible"
- },
- "paint": {
- "icon-opacity": {"stops": [[8, 0], [9, 1]]},
- "text-opacity": {"stops": [[8, 0], [9, 1]]}
- }
- },
- {
- "id": "waterway-name",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "waterway",
- "minzoom": 13,
- "filter": ["all", ["==", "$type", "LineString"], ["has", "name"]],
- "layout": {
- "symbol-placement": "line",
- "symbol-spacing": 350,
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(2, 72, 255, 1)",
- "text-halo-color": "rgba(255,255,255,1)",
- "text-halo-width": 1.5,
- "text-halo-blur": 0
- }
- },
- {
- "id": "airport-label-major",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "aerodrome_label",
- "minzoom": 10,
- "filter": ["all", ["has", "iata"]],
- "layout": {
- "icon-image": "airport_11",
- "icon-size": 1,
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-optional": true,
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-3",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 16,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- [">=", "rank", 25],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 20,
- "text-size": 12,
- "visibility": "visible",
- "symbol-spacing": 250,
- "symbol-avoid-edges": false,
- "text-letter-spacing": 0,
- "icon-padding": 2,
- "symbol-placement": "point",
- "symbol-z-order": "auto",
- "text-line-height": 1.2,
- "text-allow-overlap": false,
- "text-ignore-placement": false,
- "icon-allow-overlap": false,
- "icon-ignore-placement": false,
- "icon-optional": false
- },
- "paint": {
- "text-color": "rgba(2, 2, 3, 1)",
- "text-halo-blur": 0.5,
- "text-halo-color": "rgba(232, 227, 227, 1)",
- "text-halo-width": 2,
- "text-translate-anchor": "map",
- "text-opacity": 1
- }
- },
- {
- "id": "poi-level-2",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["<=", "rank", 24],
- [">=", "rank", 15],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(2, 2, 3, 1)",
- "text-halo-blur": 0.5,
- "text-halo-color": "rgba(232, 227, 227, 1)",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-1",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 14,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["<=", "rank", 14],
- ["has", "name"],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(2, 2, 3, 1)",
- "text-halo-blur": 0.5,
- "text-halo-color": "rgba(232, 227, 227, 1)",
- "text-halo-width": 2
- }
- },
- {
- "id": "poi-railway",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 13,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["has", "name"],
- ["==", "class", "railway"],
- ["==", "subclass", "station"]
- ],
- "layout": {
- "icon-allow-overlap": false,
- "icon-ignore-placement": false,
- "icon-image": "{class}_11",
- "icon-optional": false,
- "text-allow-overlap": false,
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-ignore-placement": false,
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-optional": true,
- "text-padding": 2,
- "text-size": 12
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-blur": 0.5,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1
- }
- },
- {
- "id": "place-village",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["==", "class", "village"],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[10, 12], [15, 22]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-town",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["==", "class", "town"],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[10, 14], [15, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-city",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["all", ["!=", "capital", 2], ["==", "class", "city"]],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-city-capital",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["all", ["==", "capital", 2], ["==", "class", "city"]],
- "layout": {
- "icon-image": "star_11",
- "icon-size": 0.8,
- "text-anchor": "left",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-offset": [0.4, 0],
- "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-country-other",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- [">=", "rank", 3],
- ["!has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Italic"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[3, 11], [7, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-3",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- [">=", "rank", 3],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[3, 11], [7, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-2",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- ["==", "rank", 2],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[2, 11], [5, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-1",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- ["==", "rank", 1],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[1, 11], [4, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-continent",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "maxzoom": 1,
- "filter": ["==", "class", "continent"],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": 14,
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "sections-symbol",
- "type": "symbol",
- "source": "cadastre",
- "source-layer": "sections",
- "minzoom": 13,
- "maxzoom": 16,
- "layout": {
- "visibility": "visible",
- "text-field": "{code}",
- "text-font": ["Lato Bold"],
- "text-optional": false,
- "text-size": 14
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-color": "rgba(200, 214, 248, 1)",
- "text-halo-width": 1,
- "text-halo-blur": 0,
- "text-translate-anchor": "map",
- "icon-halo-color": "rgba(255, 255, 255, 1)",
- "icon-halo-width": 5,
- "text-opacity": 1
- }
- },
- {
- "id": "parcelles-labels",
- "type": "symbol",
- "source": "cadastre",
- "source-layer": "parcelles",
- "minzoom": 16,
- "layout": {
- "visibility": "visible",
- "text-field": "{numero}",
- "text-font": ["Lato Bold"],
- "text-size": 12,
- "text-optional": false,
- "text-allow-overlap": false,
- "text-ignore-placement": false,
- "text-keep-upright": true,
- "symbol-z-order": "auto",
- "symbol-avoid-edges": false,
- "icon-allow-overlap": false
- },
- "paint": {
- "text-color": "rgba(0, 0, 0, 1)",
- "text-halo-color": "#fff6f1",
- "text-halo-width": 1,
- "text-halo-blur": 0,
- "icon-opacity": 1,
- "text-opacity": 1,
- "icon-halo-color": "rgba(255, 255, 255, 1)",
- "icon-color": "rgba(0, 0, 0, 1)",
- "icon-halo-width": 0
- }
- }
- ],
- "id": "etalab-cadastre-aerial"
-}
diff --git a/app/javascript/components/MapStyles/vector-style.js b/app/javascript/components/MapStyles/vector-style.js
new file mode 100644
index 000000000..d69b812a2
--- /dev/null
+++ b/app/javascript/components/MapStyles/vector-style.js
@@ -0,0 +1,2839 @@
+export default [
+ {
+ id: 'background',
+ type: 'background',
+ minzoom: 0,
+ maxzoom: 24,
+ layout: { visibility: 'visible' },
+ paint: { 'background-color': 'rgba(255, 246, 241, 1)' }
+ },
+ {
+ id: 'landcover-glacier',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landcover',
+ filter: ['==', 'subclass', 'glacier'],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'fill-color': '#fff',
+ 'fill-opacity': {
+ base: 1,
+ stops: [
+ [0, 0.9],
+ [10, 0.3]
+ ]
+ }
+ }
+ },
+ {
+ id: 'landuse-residential',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landuse',
+ filter: ['all', ['in', 'class', 'residential', 'suburb', 'neighbourhood']],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'fill-color': {
+ base: 1,
+ stops: [
+ [12, 'hsla(30, 19%, 90%, 0.4)'],
+ [16, 'hsla(30, 19%, 90%, 0.2)']
+ ]
+ }
+ }
+ },
+ {
+ id: 'landuse-commercial',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landuse',
+ filter: ['all', ['==', '$type', 'Polygon'], ['==', 'class', 'commercial']],
+ layout: { visibility: 'visible' },
+ paint: { 'fill-color': 'hsla(0, 60%, 87%, 0.23)' }
+ },
+ {
+ id: 'landuse-industrial',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landuse',
+ filter: ['all', ['==', '$type', 'Polygon'], ['==', 'class', 'industrial']],
+ paint: { 'fill-color': 'hsla(49, 100%, 88%, 0.34)' }
+ },
+ {
+ id: 'landuse-cemetery',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landuse',
+ filter: ['==', 'class', 'cemetery'],
+ paint: { 'fill-color': '#e0e4dd' }
+ },
+ {
+ id: 'landuse-hospital',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landuse',
+ filter: ['==', 'class', 'hospital'],
+ paint: { 'fill-color': '#fde' }
+ },
+ {
+ id: 'landuse-school',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landuse',
+ filter: ['==', 'class', 'school'],
+ paint: { 'fill-color': '#f0e8f8' }
+ },
+ {
+ id: 'landuse-railway',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landuse',
+ filter: ['==', 'class', 'railway'],
+ paint: { 'fill-color': 'hsla(30, 19%, 90%, 0.4)' }
+ },
+ {
+ id: 'landcover-wood',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landcover',
+ filter: ['==', 'class', 'wood'],
+ paint: {
+ 'fill-antialias': {
+ base: 1,
+ stops: [
+ [0, false],
+ [9, true]
+ ]
+ },
+ 'fill-color': '#6a4',
+ 'fill-opacity': 0.1,
+ 'fill-outline-color': 'hsla(0, 0%, 0%, 0.03)'
+ }
+ },
+ {
+ id: 'landcover-grass',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'landcover',
+ filter: ['==', 'class', 'grass'],
+ paint: { 'fill-color': '#d8e8c8', 'fill-opacity': 1 }
+ },
+ {
+ id: 'landcover-grass-park',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849388993.3071' },
+ source: 'openmaptiles',
+ 'source-layer': 'park',
+ filter: ['==', 'class', 'public_park'],
+ paint: { 'fill-color': '#d8e8c8', 'fill-opacity': 0.8 }
+ },
+ {
+ id: 'waterway_tunnel',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ minzoom: 14,
+ filter: [
+ 'all',
+ ['in', 'class', 'river', 'stream', 'canal'],
+ ['==', 'brunnel', 'tunnel']
+ ],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-dasharray': [2, 4],
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-other',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['!in', 'class', 'canal', 'river', 'stream'],
+ ['==', 'intermittent', 0]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 2]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-other-intermittent',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['!in', 'class', 'canal', 'river', 'stream'],
+ ['==', 'intermittent', 1]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 2]
+ ]
+ },
+ 'line-dasharray': [4, 3]
+ }
+ },
+ {
+ id: 'waterway-stream-canal',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['in', 'class', 'canal', 'stream'],
+ ['!=', 'brunnel', 'tunnel'],
+ ['==', 'intermittent', 0]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-stream-canal-intermittent',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['in', 'class', 'canal', 'stream'],
+ ['!=', 'brunnel', 'tunnel'],
+ ['==', 'intermittent', 1]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.3,
+ stops: [
+ [13, 0.5],
+ [20, 6]
+ ]
+ },
+ 'line-dasharray': [4, 3]
+ }
+ },
+ {
+ id: 'waterway-river',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['==', 'class', 'river'],
+ ['!=', 'brunnel', 'tunnel'],
+ ['==', 'intermittent', 0]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [10, 0.8],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-river-intermittent',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ filter: [
+ 'all',
+ ['==', 'class', 'river'],
+ ['!=', 'brunnel', 'tunnel'],
+ ['==', 'intermittent', 1]
+ ],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#a0c8f0',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [10, 0.8],
+ [20, 6]
+ ]
+ },
+ 'line-dasharray': [3, 2.5]
+ }
+ },
+ {
+ id: 'water-offset',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'water',
+ maxzoom: 8,
+ filter: ['==', '$type', 'Polygon'],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'fill-color': '#a0c8f0',
+ 'fill-opacity': 1,
+ 'fill-translate': {
+ base: 1,
+ stops: [
+ [6, [2, 0]],
+ [8, [0, 0]]
+ ]
+ }
+ }
+ },
+ {
+ id: 'water',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'water',
+ filter: ['all', ['!=', 'intermittent', 1]],
+ layout: { visibility: 'visible' },
+ paint: { 'fill-color': 'hsl(210, 67%, 85%)' }
+ },
+ {
+ id: 'water-intermittent',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'water',
+ filter: ['all', ['==', 'intermittent', 1]],
+ layout: { visibility: 'visible' },
+ paint: { 'fill-color': 'hsl(210, 67%, 85%)', 'fill-opacity': 0.7 }
+ },
+ {
+ id: 'water-pattern',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'water',
+ filter: ['all'],
+ layout: { visibility: 'visible' },
+ paint: { 'fill-pattern': 'wave', 'fill-translate': [0, 2.5] }
+ },
+ {
+ id: 'landcover-ice-shelf',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'landcover',
+ filter: ['==', 'subclass', 'ice_shelf'],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'fill-color': '#fff',
+ 'fill-opacity': {
+ base: 1,
+ stops: [
+ [0, 0.9],
+ [10, 0.3]
+ ]
+ }
+ }
+ },
+ {
+ id: 'landcover-sand',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849382550.77' },
+ source: 'openmaptiles',
+ 'source-layer': 'landcover',
+ filter: ['all', ['==', 'class', 'sand']],
+ layout: { visibility: 'visible' },
+ paint: { 'fill-color': 'rgba(245, 238, 188, 1)', 'fill-opacity': 1 }
+ },
+ {
+ id: 'building',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849364238.8171' },
+ source: 'openmaptiles',
+ 'source-layer': 'building',
+ layout: { visibility: 'none' },
+ paint: {
+ 'fill-antialias': true,
+ 'fill-color': {
+ base: 1,
+ stops: [
+ [15.5, '#f2eae2'],
+ [16, '#dfdbd7']
+ ]
+ }
+ }
+ },
+ {
+ id: 'building-top',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849364238.8171' },
+ source: 'openmaptiles',
+ 'source-layer': 'building',
+ layout: { visibility: 'none' },
+ paint: {
+ 'fill-color': '#f2eae2',
+ 'fill-opacity': {
+ base: 1,
+ stops: [
+ [13, 0],
+ [16, 1]
+ ]
+ },
+ 'fill-outline-color': '#dfdbd7',
+ 'fill-translate': {
+ base: 1,
+ stops: [
+ [14, [0, 0]],
+ [16, [-2, -2]]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-service-track-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'service', 'track']
+ ],
+ layout: { 'line-join': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#cfcdca',
+ 'line-dasharray': [0.5, 0.25],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1],
+ [16, 4],
+ [20, 11]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-minor-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'minor']],
+ layout: { 'line-join': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#cfcdca',
+ 'line-opacity': {
+ stops: [
+ [12, 0],
+ [12.5, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 0.5],
+ [13, 1],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-secondary-tertiary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [8, 1.5],
+ [20, 17]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-trunk-primary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'primary', 'trunk']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-motorway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'motorway']],
+ layout: { 'line-join': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-dasharray': [0.5, 0.25],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-path',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'path']]
+ ],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': '#cba',
+ 'line-dasharray': [1.5, 0.75],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1.2],
+ [20, 4]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-service-track',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'service', 'track']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15.5, 0],
+ [16, 2],
+ [20, 7.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-minor',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'minor_road']],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [13.5, 0],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-secondary-tertiary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff4c6',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 10]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-trunk-primary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'tunnel'],
+ ['in', 'class', 'primary', 'trunk']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff4c6',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-motorway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'motorway']],
+ layout: { 'line-join': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#ffdaa6',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'tunnel-railway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849354174.1904' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'tunnel'], ['==', 'class', 'rail']],
+ paint: {
+ 'line-color': '#bbb',
+ 'line-dasharray': [2, 2],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [15, 0.75],
+ [20, 2]
+ ]
+ }
+ }
+ },
+ {
+ id: 'ferry',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['in', 'class', 'ferry']],
+ layout: { 'line-join': 'round', visibility: 'none' },
+ paint: {
+ 'line-color': 'rgba(108, 159, 182, 1)',
+ 'line-dasharray': [2, 2],
+ 'line-width': 1.1
+ }
+ },
+ {
+ id: 'aeroway-taxiway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'aeroway',
+ minzoom: 12,
+ filter: ['all', ['in', 'class', 'taxiway']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(153, 153, 153, 1)',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.5,
+ stops: [
+ [11, 2],
+ [17, 12]
+ ]
+ }
+ }
+ },
+ {
+ id: 'aeroway-runway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'aeroway',
+ minzoom: 12,
+ filter: ['all', ['in', 'class', 'runway']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(153, 153, 153, 1)',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.5,
+ stops: [
+ [11, 5],
+ [17, 55]
+ ]
+ }
+ }
+ },
+ {
+ id: 'aeroway-area',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'aeroway',
+ minzoom: 4,
+ filter: [
+ 'all',
+ ['==', '$type', 'Polygon'],
+ ['in', 'class', 'runway', 'taxiway']
+ ],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'fill-color': 'rgba(255, 255, 255, 1)',
+ 'fill-opacity': {
+ base: 1,
+ stops: [
+ [13, 0],
+ [14, 1]
+ ]
+ }
+ }
+ },
+ {
+ id: 'aeroway-taxiway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'aeroway',
+ minzoom: 4,
+ filter: ['all', ['in', 'class', 'taxiway'], ['==', '$type', 'LineString']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(255, 255, 255, 1)',
+ 'line-opacity': {
+ base: 1,
+ stops: [
+ [11, 0],
+ [12, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1.5,
+ stops: [
+ [11, 1],
+ [17, 10]
+ ]
+ }
+ }
+ },
+ {
+ id: 'aeroway-runway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'aeroway',
+ minzoom: 4,
+ filter: ['all', ['in', 'class', 'runway'], ['==', '$type', 'LineString']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(255, 255, 255, 1)',
+ 'line-opacity': {
+ base: 1,
+ stops: [
+ [11, 0],
+ [12, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1.5,
+ stops: [
+ [11, 4],
+ [17, 50]
+ ]
+ }
+ }
+ },
+ {
+ id: 'road_area_pier',
+ type: 'fill',
+ metadata: {},
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', '$type', 'Polygon'], ['==', 'class', 'pier']],
+ layout: { visibility: 'none' },
+ paint: { 'fill-antialias': true, 'fill-color': '#f8f4f0' }
+ },
+ {
+ id: 'road_pier',
+ type: 'line',
+ metadata: {},
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 0,
+ filter: ['all', ['==', '$type', 'LineString'], ['in', 'class', 'pier']],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'none'
+ },
+ paint: {
+ 'line-color': '#f8f4f0',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1],
+ [17, 4]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-area',
+ type: 'fill',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', '$type', 'Polygon'], ['!in', 'class', 'pier']],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'fill-antialias': false,
+ 'fill-color': 'hsla(0, 0%, 89%, 0.56)',
+ 'fill-opacity': 0.9,
+ 'fill-outline-color': '#cfcdca'
+ }
+ },
+ {
+ id: 'highway-motorway-link-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 12,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'motorway_link']
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 1],
+ [13, 3],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-link-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 13,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ [
+ 'in',
+ 'class',
+ 'primary_link',
+ 'secondary_link',
+ 'tertiary_link',
+ 'trunk_link'
+ ]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 1],
+ [13, 3],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-minor-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!=', 'brunnel', 'tunnel'],
+ ['in', 'class', 'minor', 'service', 'track']
+ ]
+ ],
+ layout: { 'line-cap': 'round', 'line-join': 'round' },
+ paint: {
+ 'line-color': '#cfcdca',
+ 'line-opacity': {
+ stops: [
+ [12, 0],
+ [12.5, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 0.5],
+ [13, 1],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-secondary-tertiary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: {
+ 'line-cap': 'butt',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [8, 1.5],
+ [20, 17]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-primary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 5,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'primary']
+ ],
+ layout: {
+ 'line-cap': 'butt',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': {
+ stops: [
+ [7, 0],
+ [8, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [7, 0],
+ [8, 0.6],
+ [9, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-trunk-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 5,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'trunk']
+ ],
+ layout: {
+ 'line-cap': 'butt',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': {
+ stops: [
+ [5, 0],
+ [6, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-motorway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 4,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'motorway']
+ ],
+ layout: {
+ 'line-cap': 'butt',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': {
+ stops: [
+ [4, 0],
+ [5, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [4, 0],
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-path',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['!in', 'brunnel', 'bridge', 'tunnel'], ['==', 'class', 'path']]
+ ],
+ paint: {
+ 'line-color': '#cba',
+ 'line-dasharray': [1.5, 0.75],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1.2],
+ [20, 4]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-motorway-link',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 12,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'motorway_link']
+ ],
+ layout: { 'line-cap': 'round', 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fc8',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12.5, 0],
+ [13, 1.5],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-link',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 13,
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ [
+ 'in',
+ 'class',
+ 'primary_link',
+ 'secondary_link',
+ 'tertiary_link',
+ 'trunk_link'
+ ]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12.5, 0],
+ [13, 1.5],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-minor',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!=', 'brunnel', 'tunnel'],
+ ['in', 'class', 'minor', 'service', 'track']
+ ]
+ ],
+ layout: { 'line-cap': 'round', 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fff',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [13.5, 0],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-secondary-tertiary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [8, 0.5],
+ [20, 13]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-primary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['in', 'class', 'primary']
+ ]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [8.5, 0],
+ [9, 0.5],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-trunk',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['!in', 'brunnel', 'bridge', 'tunnel'], ['in', 'class', 'trunk']]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'highway-motorway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 5,
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'motorway']
+ ]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': '#fc8',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-transit',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'class', 'transit'], ['!in', 'brunnel', 'tunnel']]
+ ],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsla(0, 0%, 73%, 0.77)',
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [20, 1]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-transit-hatching',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'class', 'transit'], ['!in', 'brunnel', 'tunnel']]
+ ],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsla(0, 0%, 73%, 0.68)',
+ 'line-dasharray': [0.2, 8],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14.5, 0],
+ [15, 2],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-service',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'class', 'rail'], ['has', 'service']]
+ ],
+ paint: {
+ 'line-color': 'hsla(0, 0%, 73%, 0.77)',
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [20, 1]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-service-hatching',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'class', 'rail'], ['has', 'service']]
+ ],
+ layout: { visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsla(0, 0%, 73%, 0.68)',
+ 'line-dasharray': [0.2, 8],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14.5, 0],
+ [15, 2],
+ [20, 6]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!has', 'service'],
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'rail']
+ ]
+ ],
+ paint: {
+ 'line-color': '#bbb',
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [15, 0.75],
+ [20, 2]
+ ]
+ }
+ }
+ },
+ {
+ id: 'railway-hatching',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849345966.4436' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ [
+ 'all',
+ ['!has', 'service'],
+ ['!in', 'brunnel', 'bridge', 'tunnel'],
+ ['==', 'class', 'rail']
+ ]
+ ],
+ paint: {
+ 'line-color': '#bbb',
+ 'line-dasharray': [0.2, 8],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14.5, 0],
+ [15, 3],
+ [20, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-motorway-link-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['==', 'class', 'motorway_link']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 1],
+ [13, 3],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-link-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ [
+ 'in',
+ 'class',
+ 'primary_link',
+ 'secondary_link',
+ 'tertiary_link',
+ 'trunk_link'
+ ]
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12, 1],
+ [13, 3],
+ [14, 4],
+ [20, 15]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-secondary-tertiary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-opacity': 1,
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [8, 1.5],
+ [20, 28]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-trunk-primary-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['in', 'class', 'primary', 'trunk']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': 'hsl(28, 76%, 67%)',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 26]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-motorway-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'motorway']],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#e9ac77',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [5, 0.4],
+ [6, 0.6],
+ [7, 1.5],
+ [20, 22]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-path-casing',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'path']]
+ ],
+ paint: {
+ 'line-color': '#f8f4f0',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1.2],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-path',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'path']]
+ ],
+ paint: {
+ 'line-color': '#cba',
+ 'line-dasharray': [1.5, 0.75],
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [15, 1.2],
+ [20, 4]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-motorway-link',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['==', 'class', 'motorway_link']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fc8',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12.5, 0],
+ [13, 1.5],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-link',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ [
+ 'in',
+ 'class',
+ 'primary_link',
+ 'secondary_link',
+ 'tertiary_link',
+ 'trunk_link'
+ ]
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [12.5, 0],
+ [13, 1.5],
+ [14, 2.5],
+ [20, 11.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-secondary-tertiary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['in', 'class', 'secondary', 'tertiary']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 20]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-trunk-primary',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: [
+ 'all',
+ ['==', 'brunnel', 'bridge'],
+ ['in', 'class', 'primary', 'trunk']
+ ],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fea',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-motorway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'motorway']],
+ layout: { 'line-join': 'round' },
+ paint: {
+ 'line-color': '#fc8',
+ 'line-width': {
+ base: 1.2,
+ stops: [
+ [6.5, 0],
+ [7, 0.5],
+ [20, 18]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-railway',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'rail']],
+ paint: {
+ 'line-color': '#bbb',
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14, 0.4],
+ [15, 0.75],
+ [20, 2]
+ ]
+ }
+ }
+ },
+ {
+ id: 'bridge-railway-hatching',
+ type: 'line',
+ metadata: { 'mapbox:group': '1444849334699.1902' },
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ filter: ['all', ['==', 'brunnel', 'bridge'], ['==', 'class', 'rail']],
+ paint: {
+ 'line-color': '#bbb',
+ 'line-dasharray': [0.2, 8],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [14.5, 0],
+ [15, 3],
+ [20, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'cablecar',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 13,
+ filter: ['==', 'class', 'cable_car'],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsl(0, 0%, 70%)',
+ 'line-width': {
+ base: 1,
+ stops: [
+ [11, 1],
+ [19, 2.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'cablecar-dash',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 13,
+ filter: ['==', 'class', 'cable_car'],
+ layout: { 'line-cap': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': 'hsl(0, 0%, 70%)',
+ 'line-dasharray': [2, 3],
+ 'line-width': {
+ base: 1,
+ stops: [
+ [11, 3],
+ [19, 5.5]
+ ]
+ }
+ }
+ },
+ {
+ id: 'boundary-land-level-4',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'boundary',
+ filter: [
+ 'all',
+ ['>=', 'admin_level', 4],
+ ['<=', 'admin_level', 8],
+ ['!=', 'maritime', 1]
+ ],
+ layout: { 'line-join': 'round', visibility: 'visible' },
+ paint: {
+ 'line-color': '#9e9cab',
+ 'line-dasharray': [3, 1, 1, 1],
+ 'line-width': {
+ base: 1.4,
+ stops: [
+ [4, 0.4],
+ [5, 1],
+ [12, 3]
+ ]
+ }
+ }
+ },
+ {
+ id: 'boundary-land-level-2',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'boundary',
+ filter: [
+ 'all',
+ ['==', 'admin_level', 2],
+ ['!=', 'maritime', 1],
+ ['!=', 'disputed', 1]
+ ],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'hsl(248, 7%, 66%)',
+ 'line-width': {
+ base: 1,
+ stops: [
+ [0, 0.6],
+ [4, 1.4],
+ [5, 2],
+ [12, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'boundary-land-disputed',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'boundary',
+ filter: ['all', ['!=', 'maritime', 1], ['==', 'disputed', 1]],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'hsl(248, 7%, 70%)',
+ 'line-dasharray': [1, 3],
+ 'line-width': {
+ base: 1,
+ stops: [
+ [0, 0.6],
+ [4, 1.4],
+ [5, 2],
+ [12, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'boundary-water',
+ type: 'line',
+ source: 'openmaptiles',
+ 'source-layer': 'boundary',
+ filter: ['all', ['in', 'admin_level', 2, 4], ['==', 'maritime', 1]],
+ layout: {
+ 'line-cap': 'round',
+ 'line-join': 'round',
+ visibility: 'visible'
+ },
+ paint: {
+ 'line-color': 'rgba(154, 189, 214, 1)',
+ 'line-opacity': {
+ stops: [
+ [6, 0.6],
+ [10, 1]
+ ]
+ },
+ 'line-width': {
+ base: 1,
+ stops: [
+ [0, 0.6],
+ [4, 1.4],
+ [5, 2],
+ [12, 8]
+ ]
+ }
+ }
+ },
+ {
+ id: 'waterway-name',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'waterway',
+ minzoom: 13,
+ filter: ['all', ['==', '$type', 'LineString'], ['has', 'name']],
+ layout: {
+ 'symbol-placement': 'line',
+ 'symbol-spacing': 350,
+ 'text-field': '{name:latin} {name:nonlatin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-letter-spacing': 0.2,
+ 'text-max-width': 5,
+ 'text-rotation-alignment': 'map',
+ 'text-size': 14,
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#74aee9',
+ 'text-halo-color': 'rgba(255,255,255,0.7)',
+ 'text-halo-width': 1.5
+ }
+ },
+ {
+ id: 'communes',
+ type: 'line',
+ source: 'decoupage-administratif',
+ 'source-layer': 'communes',
+ minzoom: 10,
+ maxzoom: 24,
+ layout: { visibility: 'visible' }
+ },
+ {
+ id: 'departements',
+ type: 'line',
+ source: 'decoupage-administratif',
+ 'source-layer': 'departements',
+ layout: { visibility: 'visible' }
+ },
+ {
+ id: 'regions',
+ type: 'line',
+ source: 'decoupage-administratif',
+ 'source-layer': 'regions',
+ layout: { visibility: 'visible' }
+ },
+ {
+ id: 'water-name-lakeline',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'water_name',
+ filter: ['==', '$type', 'LineString'],
+ layout: {
+ 'symbol-placement': 'line',
+ 'symbol-spacing': 350,
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-letter-spacing': 0.2,
+ 'text-max-width': 5,
+ 'text-rotation-alignment': 'map',
+ 'text-size': 14
+ },
+ paint: {
+ 'text-color': '#74aee9',
+ 'text-halo-color': 'rgba(255,255,255,0.7)',
+ 'text-halo-width': 1.5
+ }
+ },
+ {
+ id: 'water-name-ocean',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'water_name',
+ filter: ['all', ['==', '$type', 'Point'], ['==', 'class', 'ocean']],
+ layout: {
+ 'symbol-placement': 'point',
+ 'symbol-spacing': 350,
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-letter-spacing': 0.2,
+ 'text-max-width': 5,
+ 'text-rotation-alignment': 'map',
+ 'text-size': 14
+ },
+ paint: {
+ 'text-color': '#74aee9',
+ 'text-halo-color': 'rgba(255,255,255,0.7)',
+ 'text-halo-width': 1.5
+ }
+ },
+ {
+ id: 'water-name-other',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'water_name',
+ filter: ['all', ['==', '$type', 'Point'], ['!in', 'class', 'ocean']],
+ layout: {
+ 'symbol-placement': 'point',
+ 'symbol-spacing': 350,
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-letter-spacing': 0.2,
+ 'text-max-width': 5,
+ 'text-rotation-alignment': 'map',
+ 'text-size': {
+ stops: [
+ [0, 10],
+ [6, 14]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#74aee9',
+ 'text-halo-color': 'rgba(255,255,255,0.7)',
+ 'text-halo-width': 1.5
+ }
+ },
+ {
+ id: 'road_oneway',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 15,
+ filter: [
+ 'all',
+ ['==', 'oneway', 1],
+ [
+ 'in',
+ 'class',
+ 'motorway',
+ 'trunk',
+ 'primary',
+ 'secondary',
+ 'tertiary',
+ 'minor',
+ 'service'
+ ]
+ ],
+ layout: {
+ 'icon-image': 'oneway',
+ 'icon-padding': 2,
+ 'icon-rotate': 90,
+ 'icon-rotation-alignment': 'map',
+ 'icon-size': {
+ stops: [
+ [15, 0.5],
+ [19, 1]
+ ]
+ },
+ 'symbol-placement': 'line',
+ 'symbol-spacing': 75,
+ visibility: 'visible'
+ },
+ paint: { 'icon-opacity': 0.5 }
+ },
+ {
+ id: 'road_oneway_opposite',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation',
+ minzoom: 15,
+ filter: [
+ 'all',
+ ['==', 'oneway', -1],
+ [
+ 'in',
+ 'class',
+ 'motorway',
+ 'trunk',
+ 'primary',
+ 'secondary',
+ 'tertiary',
+ 'minor',
+ 'service'
+ ]
+ ],
+ layout: {
+ 'icon-image': 'oneway',
+ 'icon-padding': 2,
+ 'icon-rotate': -90,
+ 'icon-rotation-alignment': 'map',
+ 'icon-size': {
+ stops: [
+ [15, 0.5],
+ [19, 1]
+ ]
+ },
+ 'symbol-placement': 'line',
+ 'symbol-spacing': 75,
+ visibility: 'visible'
+ },
+ paint: { 'icon-opacity': 0.5 }
+ },
+ {
+ id: 'highway-name-path',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 15.5,
+ filter: ['==', 'class', 'path'],
+ layout: {
+ 'symbol-placement': 'line',
+ 'text-field': '{name:latin} {name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'map',
+ 'text-size': {
+ base: 1,
+ stops: [
+ [13, 12],
+ [14, 13]
+ ]
+ }
+ },
+ paint: {
+ 'text-color': 'hsl(30, 23%, 62%)',
+ 'text-halo-color': '#f8f4f0',
+ 'text-halo-width': 0.5
+ }
+ },
+ {
+ id: 'highway-name-minor',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 15,
+ filter: [
+ 'all',
+ ['==', '$type', 'LineString'],
+ ['in', 'class', 'minor', 'service', 'track']
+ ],
+ layout: {
+ 'symbol-placement': 'line',
+ 'text-field': '{name:latin} {name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'map',
+ 'text-size': {
+ base: 1,
+ stops: [
+ [13, 12],
+ [14, 13]
+ ]
+ }
+ },
+ paint: {
+ 'text-color': '#765',
+ 'text-halo-blur': 0.5,
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'highway-name-major',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 12.2,
+ filter: ['in', 'class', 'primary', 'secondary', 'tertiary', 'trunk'],
+ layout: {
+ 'symbol-placement': 'line',
+ 'text-field': '{name:latin} {name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'map',
+ 'text-size': {
+ base: 1,
+ stops: [
+ [13, 12],
+ [14, 13]
+ ]
+ }
+ },
+ paint: {
+ 'text-color': '#765',
+ 'text-halo-blur': 0.5,
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'highway-shield',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 8,
+ filter: [
+ 'all',
+ ['<=', 'ref_length', 6],
+ ['==', '$type', 'LineString'],
+ ['!in', 'network', 'us-interstate', 'us-highway', 'us-state']
+ ],
+ layout: {
+ 'icon-image': 'road_{ref_length}',
+ 'icon-rotation-alignment': 'viewport',
+ 'icon-size': 1,
+ 'symbol-placement': {
+ base: 1,
+ stops: [
+ [10, 'point'],
+ [11, 'line']
+ ]
+ },
+ 'symbol-spacing': 200,
+ 'text-field': '{ref}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'viewport',
+ 'text-size': 10
+ },
+ paint: {}
+ },
+ {
+ id: 'highway-shield-us-interstate',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 7,
+ filter: [
+ 'all',
+ ['<=', 'ref_length', 6],
+ ['==', '$type', 'LineString'],
+ ['in', 'network', 'us-interstate']
+ ],
+ layout: {
+ 'icon-image': '{network}_{ref_length}',
+ 'icon-rotation-alignment': 'viewport',
+ 'icon-size': 1,
+ 'symbol-placement': {
+ base: 1,
+ stops: [
+ [7, 'point'],
+ [7, 'line'],
+ [8, 'line']
+ ]
+ },
+ 'symbol-spacing': 200,
+ 'text-field': '{ref}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'viewport',
+ 'text-size': 10
+ },
+ paint: { 'text-color': 'rgba(0, 0, 0, 1)' }
+ },
+ {
+ id: 'highway-shield-us-other',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'transportation_name',
+ minzoom: 9,
+ filter: [
+ 'all',
+ ['<=', 'ref_length', 6],
+ ['==', '$type', 'LineString'],
+ ['in', 'network', 'us-highway', 'us-state']
+ ],
+ layout: {
+ 'icon-image': '{network}_{ref_length}',
+ 'icon-rotation-alignment': 'viewport',
+ 'icon-size': 1,
+ 'symbol-placement': {
+ base: 1,
+ stops: [
+ [10, 'point'],
+ [11, 'line']
+ ]
+ },
+ 'symbol-spacing': 200,
+ 'text-field': '{ref}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-rotation-alignment': 'viewport',
+ 'text-size': 10
+ },
+ paint: { 'text-color': 'rgba(0, 0, 0, 1)' }
+ },
+ {
+ id: 'airport-label-major',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'aerodrome_label',
+ minzoom: 10,
+ filter: ['all', ['has', 'iata']],
+ layout: {
+ 'icon-image': 'airport_11',
+ 'icon-size': 1,
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-optional': true,
+ 'text-padding': 2,
+ 'text-size': 12,
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#666',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': '#ffffff',
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'poi-level-3',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'poi',
+ minzoom: 16,
+ filter: [
+ 'all',
+ ['==', '$type', 'Point'],
+ ['>=', 'rank', 25],
+ ['any', ['!has', 'level'], ['==', 'level', 0]]
+ ],
+ layout: {
+ 'icon-image': '{class}_11',
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-padding': 2,
+ 'text-size': 12,
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#666',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': '#ffffff',
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'poi-level-2',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'poi',
+ minzoom: 15,
+ filter: [
+ 'all',
+ ['==', '$type', 'Point'],
+ ['<=', 'rank', 24],
+ ['>=', 'rank', 15],
+ ['any', ['!has', 'level'], ['==', 'level', 0]]
+ ],
+ layout: {
+ 'icon-image': '{class}_11',
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-padding': 2,
+ 'text-size': 12,
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#666',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': '#ffffff',
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'poi-level-1',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'poi',
+ minzoom: 14,
+ filter: [
+ 'all',
+ ['==', '$type', 'Point'],
+ ['<=', 'rank', 14],
+ ['has', 'name'],
+ ['any', ['!has', 'level'], ['==', 'level', 0]]
+ ],
+ layout: {
+ 'icon-image': '{class}_11',
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-padding': 2,
+ 'text-size': 12,
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#666',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': '#ffffff',
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'poi-railway',
+ type: 'symbol',
+ source: 'openmaptiles',
+ 'source-layer': 'poi',
+ minzoom: 13,
+ filter: [
+ 'all',
+ ['==', '$type', 'Point'],
+ ['has', 'name'],
+ ['==', 'class', 'railway'],
+ ['==', 'subclass', 'station']
+ ],
+ layout: {
+ 'icon-allow-overlap': false,
+ 'icon-ignore-placement': false,
+ 'icon-image': '{class}_11',
+ 'icon-optional': false,
+ 'text-allow-overlap': false,
+ 'text-anchor': 'top',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-ignore-placement': false,
+ 'text-max-width': 9,
+ 'text-offset': [0, 0.6],
+ 'text-optional': true,
+ 'text-padding': 2,
+ 'text-size': 12
+ },
+ paint: {
+ 'text-color': '#666',
+ 'text-halo-blur': 0.5,
+ 'text-halo-color': '#ffffff',
+ 'text-halo-width': 1
+ }
+ },
+ {
+ id: 'place-other',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: ['!in', 'class', 'city', 'town', 'village', 'country', 'continent'],
+ layout: {
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Bold'],
+ 'text-letter-spacing': 0.1,
+ 'text-max-width': 9,
+ 'text-size': {
+ base: 1.2,
+ stops: [
+ [12, 10],
+ [15, 14]
+ ]
+ },
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#633',
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1.2
+ }
+ },
+ {
+ id: 'place-village',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: ['==', 'class', 'village'],
+ layout: {
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 8,
+ 'text-size': {
+ base: 1.2,
+ stops: [
+ [10, 12],
+ [15, 22]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#333',
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1.2
+ }
+ },
+ {
+ id: 'place-town',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: ['==', 'class', 'town'],
+ layout: {
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 8,
+ 'text-size': {
+ base: 1.2,
+ stops: [
+ [10, 14],
+ [15, 24]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#333',
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1.2
+ }
+ },
+ {
+ id: 'place-city',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: ['all', ['!=', 'capital', 2], ['==', 'class', 'city']],
+ layout: {
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 8,
+ 'text-size': {
+ base: 1.2,
+ stops: [
+ [7, 14],
+ [11, 24]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#333',
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1.2
+ }
+ },
+ {
+ id: 'place-city-capital',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: ['all', ['==', 'capital', 2], ['==', 'class', 'city']],
+ layout: {
+ 'icon-image': 'star_11',
+ 'icon-size': 0.8,
+ 'text-anchor': 'left',
+ 'text-field': '{name:latin}\n{name:nonlatin}',
+ 'text-font': ['Noto Sans Regular'],
+ 'text-max-width': 8,
+ 'text-offset': [0.4, 0],
+ 'text-size': {
+ base: 1.2,
+ stops: [
+ [7, 14],
+ [11, 24]
+ ]
+ },
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#333',
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 1.2
+ }
+ },
+ {
+ id: 'place-country-other',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: [
+ 'all',
+ ['==', 'class', 'country'],
+ ['>=', 'rank', 3],
+ ['!has', 'iso_a2']
+ ],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Italic'],
+ 'text-max-width': 6.25,
+ 'text-size': {
+ stops: [
+ [3, 11],
+ [7, 17]
+ ]
+ },
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'place-country-3',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: [
+ 'all',
+ ['==', 'class', 'country'],
+ ['>=', 'rank', 3],
+ ['has', 'iso_a2']
+ ],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Bold'],
+ 'text-max-width': 6.25,
+ 'text-size': {
+ stops: [
+ [3, 11],
+ [7, 17]
+ ]
+ },
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'place-country-2',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: [
+ 'all',
+ ['==', 'class', 'country'],
+ ['==', 'rank', 2],
+ ['has', 'iso_a2']
+ ],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Bold'],
+ 'text-max-width': 6.25,
+ 'text-size': {
+ stops: [
+ [2, 11],
+ [5, 17]
+ ]
+ },
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'place-country-1',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ filter: [
+ 'all',
+ ['==', 'class', 'country'],
+ ['==', 'rank', 1],
+ ['has', 'iso_a2']
+ ],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Bold'],
+ 'text-max-width': 6.25,
+ 'text-size': {
+ stops: [
+ [1, 11],
+ [4, 17]
+ ]
+ },
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ },
+ {
+ id: 'place-continent',
+ type: 'symbol',
+ metadata: { 'mapbox:group': '1444849242106.713' },
+ source: 'openmaptiles',
+ 'source-layer': 'place',
+ maxzoom: 1,
+ filter: ['==', 'class', 'continent'],
+ layout: {
+ 'text-field': '{name:latin}',
+ 'text-font': ['Noto Sans Bold'],
+ 'text-max-width': 6.25,
+ 'text-size': 14,
+ 'text-transform': 'uppercase',
+ visibility: 'visible'
+ },
+ paint: {
+ 'text-color': '#334',
+ 'text-halo-blur': 1,
+ 'text-halo-color': 'rgba(255,255,255,0.8)',
+ 'text-halo-width': 2
+ }
+ }
+];
diff --git a/app/javascript/components/MapStyles/vector.json b/app/javascript/components/MapStyles/vector.json
deleted file mode 100644
index 59a3f592e..000000000
--- a/app/javascript/components/MapStyles/vector.json
+++ /dev/null
@@ -1,2346 +0,0 @@
-{
- "version": 8,
- "name": "Bright",
- "metadata": {
- "mapbox:autocomposite": false,
- "mapbox:groups": {
- "1444849242106.713": {"collapsed": false, "name": "Places"},
- "1444849334699.1902": {"collapsed": true, "name": "Bridges"},
- "1444849345966.4436": {"collapsed": false, "name": "Roads"},
- "1444849354174.1904": {"collapsed": true, "name": "Tunnels"},
- "1444849364238.8171": {"collapsed": false, "name": "Buildings"},
- "1444849382550.77": {"collapsed": false, "name": "Water"},
- "1444849388993.3071": {"collapsed": false, "name": "Land"}
- },
- "mapbox:type": "template",
- "openmaptiles:mapbox:owner": "openmaptiles",
- "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t",
- "openmaptiles:version": "3.x",
- "maputnik:renderer": "mbgljs"
- },
- "center": [0, 0],
- "zoom": 1,
- "bearing": 0,
- "pitch": 0,
- "sources": {
- "openmaptiles": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/france-vector.json"
- },
- "decoupage-administratif": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/decoupage-administratif.json"
- }
- },
- "sprite": "https://openmaptiles.github.io/osm-bright-gl-style/sprite",
- "glyphs": "https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf",
- "layers": [
- {
- "id": "background",
- "type": "background",
- "minzoom": 0,
- "maxzoom": 24,
- "layout": {"visibility": "visible"},
- "paint": {"background-color": "rgba(255, 246, 241, 1)"}
- },
- {
- "id": "landcover-glacier",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["==", "subclass", "glacier"],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "#fff",
- "fill-opacity": {"base": 1, "stops": [[0, 0.9], [10, 0.3]]}
- }
- },
- {
- "id": "landuse-residential",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": [
- "all",
- ["in", "class", "residential", "suburb", "neighbourhood"]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": {
- "base": 1,
- "stops": [
- [12, "hsla(30, 19%, 90%, 0.4)"],
- [16, "hsla(30, 19%, 90%, 0.2)"]
- ]
- }
- }
- },
- {
- "id": "landuse-commercial",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": [
- "all",
- ["==", "$type", "Polygon"],
- ["==", "class", "commercial"]
- ],
- "layout": {"visibility": "visible"},
- "paint": {"fill-color": "hsla(0, 60%, 87%, 0.23)"}
- },
- {
- "id": "landuse-industrial",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": [
- "all",
- ["==", "$type", "Polygon"],
- ["==", "class", "industrial"]
- ],
- "paint": {"fill-color": "hsla(49, 100%, 88%, 0.34)"}
- },
- {
- "id": "landuse-cemetery",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": ["==", "class", "cemetery"],
- "paint": {"fill-color": "#e0e4dd"}
- },
- {
- "id": "landuse-hospital",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": ["==", "class", "hospital"],
- "paint": {"fill-color": "#fde"}
- },
- {
- "id": "landuse-school",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": ["==", "class", "school"],
- "paint": {"fill-color": "#f0e8f8"}
- },
- {
- "id": "landuse-railway",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": ["==", "class", "railway"],
- "paint": {"fill-color": "hsla(30, 19%, 90%, 0.4)"}
- },
- {
- "id": "landcover-wood",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["==", "class", "wood"],
- "paint": {
- "fill-antialias": {"base": 1, "stops": [[0, false], [9, true]]},
- "fill-color": "#6a4",
- "fill-opacity": 0.1,
- "fill-outline-color": "hsla(0, 0%, 0%, 0.03)"
- }
- },
- {
- "id": "landcover-grass",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["==", "class", "grass"],
- "paint": {"fill-color": "#d8e8c8", "fill-opacity": 1}
- },
- {
- "id": "landcover-grass-park",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "park",
- "filter": ["==", "class", "public_park"],
- "paint": {"fill-color": "#d8e8c8", "fill-opacity": 0.8}
- },
- {
- "id": "waterway_tunnel",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "waterway",
- "minzoom": 14,
- "filter": [
- "all",
- ["in", "class", "river", "stream", "canal"],
- ["==", "brunnel", "tunnel"]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-dasharray": [2, 4],
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
- }
- },
- {
- "id": "waterway-other",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["!in", "class", "canal", "river", "stream"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]}
- }
- },
- {
- "id": "waterway-other-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["!in", "class", "canal", "river", "stream"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]},
- "line-dasharray": [4, 3]
- }
- },
- {
- "id": "waterway-stream-canal",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["in", "class", "canal", "stream"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
- }
- },
- {
- "id": "waterway-stream-canal-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["in", "class", "canal", "stream"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]},
- "line-dasharray": [4, 3]
- }
- },
- {
- "id": "waterway-river",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["==", "class", "river"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]}
- }
- },
- {
- "id": "waterway-river-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["==", "class", "river"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]},
- "line-dasharray": [3, 2.5]
- }
- },
- {
- "id": "water-offset",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "water",
- "maxzoom": 8,
- "filter": ["==", "$type", "Polygon"],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "#a0c8f0",
- "fill-opacity": 1,
- "fill-translate": {"base": 1, "stops": [[6, [2, 0]], [8, [0, 0]]]}
- }
- },
- {
- "id": "water",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "water",
- "filter": ["all", ["!=", "intermittent", 1]],
- "layout": {"visibility": "visible"},
- "paint": {"fill-color": "hsl(210, 67%, 85%)"}
- },
- {
- "id": "water-intermittent",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "water",
- "filter": ["all", ["==", "intermittent", 1]],
- "layout": {"visibility": "visible"},
- "paint": {"fill-color": "hsl(210, 67%, 85%)", "fill-opacity": 0.7}
- },
- {
- "id": "water-pattern",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "water",
- "filter": ["all"],
- "layout": {"visibility": "visible"},
- "paint": {"fill-pattern": "wave", "fill-translate": [0, 2.5]}
- },
- {
- "id": "landcover-ice-shelf",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["==", "subclass", "ice_shelf"],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "#fff",
- "fill-opacity": {"base": 1, "stops": [[0, 0.9], [10, 0.3]]}
- }
- },
- {
- "id": "landcover-sand",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["all", ["==", "class", "sand"]],
- "layout": {"visibility": "visible"},
- "paint": {"fill-color": "rgba(245, 238, 188, 1)", "fill-opacity": 1}
- },
- {
- "id": "building",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849364238.8171"},
- "source": "openmaptiles",
- "source-layer": "building",
- "layout": {"visibility": "none"},
- "paint": {
- "fill-antialias": true,
- "fill-color": {"base": 1, "stops": [[15.5, "#f2eae2"], [16, "#dfdbd7"]]}
- }
- },
- {
- "id": "building-top",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849364238.8171"},
- "source": "openmaptiles",
- "source-layer": "building",
- "layout": {"visibility": "none"},
- "paint": {
- "fill-color": "#f2eae2",
- "fill-opacity": {"base": 1, "stops": [[13, 0], [16, 1]]},
- "fill-outline-color": "#dfdbd7",
- "fill-translate": {"base": 1, "stops": [[14, [0, 0]], [16, [-2, -2]]]}
- }
- },
- {
- "id": "tunnel-service-track-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "service", "track"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#cfcdca",
- "line-dasharray": [0.5, 0.25],
- "line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]}
- }
- },
- {
- "id": "tunnel-minor-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "minor"]],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#cfcdca",
- "line-opacity": {"stops": [[12, 0], [12.5, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "tunnel-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
- }
- },
- {
- "id": "tunnel-trunk-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "tunnel-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#e9ac77",
- "line-dasharray": [0.5, 0.25],
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "tunnel-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "tunnel"], ["==", "class", "path"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "tunnel-service-track",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "service", "track"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]}
- }
- },
- {
- "id": "tunnel-minor",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "minor_road"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
- }
- },
- {
- "id": "tunnel-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff4c6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 10]]}
- }
- },
- {
- "id": "tunnel-trunk-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff4c6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "tunnel-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#ffdaa6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "tunnel-railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [2, 2],
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "ferry",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["in", "class", "ferry"]],
- "layout": {"line-join": "round", "visibility": "none"},
- "paint": {
- "line-color": "rgba(108, 159, 182, 1)",
- "line-dasharray": [2, 2],
- "line-width": 1.1
- }
- },
- {
- "id": "aeroway-taxiway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 12,
- "filter": ["all", ["in", "class", "taxiway"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(153, 153, 153, 1)",
- "line-opacity": 1,
- "line-width": {"base": 1.5, "stops": [[11, 2], [17, 12]]}
- }
- },
- {
- "id": "aeroway-runway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 12,
- "filter": ["all", ["in", "class", "runway"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(153, 153, 153, 1)",
- "line-opacity": 1,
- "line-width": {"base": 1.5, "stops": [[11, 5], [17, 55]]}
- }
- },
- {
- "id": "aeroway-area",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["==", "$type", "Polygon"],
- ["in", "class", "runway", "taxiway"]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "rgba(255, 255, 255, 1)",
- "fill-opacity": {"base": 1, "stops": [[13, 0], [14, 1]]}
- }
- },
- {
- "id": "aeroway-taxiway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["in", "class", "taxiway"],
- ["==", "$type", "LineString"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(255, 255, 255, 1)",
- "line-opacity": {"base": 1, "stops": [[11, 0], [12, 1]]},
- "line-width": {"base": 1.5, "stops": [[11, 1], [17, 10]]}
- }
- },
- {
- "id": "aeroway-runway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["in", "class", "runway"],
- ["==", "$type", "LineString"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(255, 255, 255, 1)",
- "line-opacity": {"base": 1, "stops": [[11, 0], [12, 1]]},
- "line-width": {"base": 1.5, "stops": [[11, 4], [17, 50]]}
- }
- },
- {
- "id": "road_area_pier",
- "type": "fill",
- "metadata": {},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "Polygon"], ["==", "class", "pier"]],
- "layout": {"visibility": "none"},
- "paint": {"fill-antialias": true, "fill-color": "#f8f4f0"}
- },
- {
- "id": "road_pier",
- "type": "line",
- "metadata": {},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 0,
- "filter": ["all", ["==", "$type", "LineString"], ["in", "class", "pier"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "none"
- },
- "paint": {
- "line-color": "#f8f4f0",
- "line-width": {"base": 1.2, "stops": [[15, 1], [17, 4]]}
- }
- },
- {
- "id": "highway-area",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "Polygon"], ["!in", "class", "pier"]],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-antialias": false,
- "fill-color": "hsla(0, 0%, 89%, 0.56)",
- "fill-opacity": 0.9,
- "fill-outline-color": "#cfcdca"
- }
- },
- {
- "id": "highway-motorway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 12,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-minor-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!=", "brunnel", "tunnel"],
- ["in", "class", "minor", "service", "track"]
- ]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#cfcdca",
- "line-opacity": {"stops": [[12, 0], [12.5, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
- }
- },
- {
- "id": "highway-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "primary"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[7, 0], [8, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[7, 0], [8, 0.6], [9, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-trunk-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "trunk"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[5, 0], [6, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 4,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[4, 0], [5, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[4, 0], [5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "highway-motorway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 12,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "highway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "highway-minor",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!=", "brunnel", "tunnel"],
- ["in", "class", "minor", "service", "track"]
- ]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
- }
- },
- {
- "id": "highway-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [8, 0.5], [20, 13]]}
- }
- },
- {
- "id": "highway-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "primary"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[8.5, 0], [9, 0.5], [20, 18]]}
- }
- },
- {
- "id": "highway-trunk",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "trunk"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "highway-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fc8",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "railway-transit",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "transit"], ["!in", "brunnel", "tunnel"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.77)",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
- }
- },
- {
- "id": "railway-transit-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "transit"], ["!in", "brunnel", "tunnel"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.68)",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
- }
- },
- {
- "id": "railway-service",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "rail"], ["has", "service"]]
- ],
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.77)",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
- }
- },
- {
- "id": "railway-service-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "rail"], ["has", "service"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.68)",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
- }
- },
- {
- "id": "railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!has", "service"],
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "rail"]
- ]
- ],
- "paint": {
- "line-color": "#bbb",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "railway-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!has", "service"],
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "rail"]
- ]
- ],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
- }
- },
- {
- "id": "bridge-motorway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "bridge-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "bridge-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 28]]}
- }
- },
- {
- "id": "bridge-trunk-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "hsl(28, 76%, 67%)",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 26]]
- }
- }
- },
- {
- "id": "bridge-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "bridge-path-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "bridge"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#f8f4f0",
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 18]]}
- }
- },
- {
- "id": "bridge-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "bridge"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "bridge-motorway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "bridge-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "bridge-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 20]]}
- }
- },
- {
- "id": "bridge-trunk-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "bridge-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "bridge-railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "bridge-railway-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
- }
- },
- {
- "id": "cablecar",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": ["==", "class", "cable_car"],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "hsl(0, 0%, 70%)",
- "line-width": {"base": 1, "stops": [[11, 1], [19, 2.5]]}
- }
- },
- {
- "id": "cablecar-dash",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": ["==", "class", "cable_car"],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "hsl(0, 0%, 70%)",
- "line-dasharray": [2, 3],
- "line-width": {"base": 1, "stops": [[11, 3], [19, 5.5]]}
- }
- },
- {
- "id": "boundary-land-level-4",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": [
- "all",
- [">=", "admin_level", 4],
- ["<=", "admin_level", 8],
- ["!=", "maritime", 1]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#9e9cab",
- "line-dasharray": [3, 1, 1, 1],
- "line-width": {"base": 1.4, "stops": [[4, 0.4], [5, 1], [12, 3]]}
- }
- },
- {
- "id": "boundary-land-level-2",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": [
- "all",
- ["==", "admin_level", 2],
- ["!=", "maritime", 1],
- ["!=", "disputed", 1]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "hsl(248, 7%, 66%)",
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "boundary-land-disputed",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": ["all", ["!=", "maritime", 1], ["==", "disputed", 1]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "hsl(248, 7%, 70%)",
- "line-dasharray": [1, 3],
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "boundary-water",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": ["all", ["in", "admin_level", 2, 4], ["==", "maritime", 1]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(154, 189, 214, 1)",
- "line-opacity": {"stops": [[6, 0.6], [10, 1]]},
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "waterway-name",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "waterway",
- "minzoom": 13,
- "filter": ["all", ["==", "$type", "LineString"], ["has", "name"]],
- "layout": {
- "symbol-placement": "line",
- "symbol-spacing": 350,
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "communes",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "communes",
- "minzoom": 10,
- "maxzoom": 24,
- "layout": {"visibility": "visible"}
- },
- {
- "id": "departements",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "departements",
- "layout": {"visibility": "visible"}
- },
- {
- "id": "regions",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "regions",
- "layout": {"visibility": "visible"}
- },
- {
- "id": "water-name-lakeline",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["==", "$type", "LineString"],
- "layout": {
- "symbol-placement": "line",
- "symbol-spacing": 350,
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "water-name-ocean",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["all", ["==", "$type", "Point"], ["==", "class", "ocean"]],
- "layout": {
- "symbol-placement": "point",
- "symbol-spacing": 350,
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "water-name-other",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["all", ["==", "$type", "Point"], ["!in", "class", "ocean"]],
- "layout": {
- "symbol-placement": "point",
- "symbol-spacing": 350,
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": {"stops": [[0, 10], [6, 14]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "road_oneway",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "oneway", 1],
- [
- "in",
- "class",
- "motorway",
- "trunk",
- "primary",
- "secondary",
- "tertiary",
- "minor",
- "service"
- ]
- ],
- "layout": {
- "icon-image": "oneway",
- "icon-padding": 2,
- "icon-rotate": 90,
- "icon-rotation-alignment": "map",
- "icon-size": {"stops": [[15, 0.5], [19, 1]]},
- "symbol-placement": "line",
- "symbol-spacing": 75,
- "visibility": "visible"
- },
- "paint": {"icon-opacity": 0.5}
- },
- {
- "id": "road_oneway_opposite",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "oneway", -1],
- [
- "in",
- "class",
- "motorway",
- "trunk",
- "primary",
- "secondary",
- "tertiary",
- "minor",
- "service"
- ]
- ],
- "layout": {
- "icon-image": "oneway",
- "icon-padding": 2,
- "icon-rotate": -90,
- "icon-rotation-alignment": "map",
- "icon-size": {"stops": [[15, 0.5], [19, 1]]},
- "symbol-placement": "line",
- "symbol-spacing": 75,
- "visibility": "visible"
- },
- "paint": {"icon-opacity": 0.5}
- },
- {
- "id": "highway-name-path",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 15.5,
- "filter": ["==", "class", "path"],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
- },
- "paint": {
- "text-color": "hsl(30, 23%, 62%)",
- "text-halo-color": "#f8f4f0",
- "text-halo-width": 0.5
- }
- },
- {
- "id": "highway-name-minor",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["in", "class", "minor", "service", "track"]
- ],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
- },
- "paint": {
- "text-color": "#765",
- "text-halo-blur": 0.5,
- "text-halo-width": 1
- }
- },
- {
- "id": "highway-name-major",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 12.2,
- "filter": ["in", "class", "primary", "secondary", "tertiary", "trunk"],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
- },
- "paint": {
- "text-color": "#765",
- "text-halo-blur": 0.5,
- "text-halo-width": 1
- }
- },
- {
- "id": "highway-shield",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 8,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["!in", "network", "us-interstate", "us-highway", "us-state"]
- ],
- "layout": {
- "icon-image": "road_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {}
- },
- {
- "id": "highway-shield-us-interstate",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 7,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["in", "network", "us-interstate"]
- ],
- "layout": {
- "icon-image": "{network}_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {
- "base": 1,
- "stops": [[7, "point"], [7, "line"], [8, "line"]]
- },
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {"text-color": "rgba(0, 0, 0, 1)"}
- },
- {
- "id": "highway-shield-us-other",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 9,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["in", "network", "us-highway", "us-state"]
- ],
- "layout": {
- "icon-image": "{network}_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {"text-color": "rgba(0, 0, 0, 1)"}
- },
- {
- "id": "airport-label-major",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "aerodrome_label",
- "minzoom": 10,
- "filter": ["all", ["has", "iata"]],
- "layout": {
- "icon-image": "airport_11",
- "icon-size": 1,
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-optional": true,
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-3",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 16,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- [">=", "rank", 25],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-2",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["<=", "rank", 24],
- [">=", "rank", 15],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-1",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 14,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["<=", "rank", 14],
- ["has", "name"],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-railway",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 13,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["has", "name"],
- ["==", "class", "railway"],
- ["==", "subclass", "station"]
- ],
- "layout": {
- "icon-allow-overlap": false,
- "icon-ignore-placement": false,
- "icon-image": "{class}_11",
- "icon-optional": false,
- "text-allow-overlap": false,
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-ignore-placement": false,
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-optional": true,
- "text-padding": 2,
- "text-size": 12
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "place-other",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "!in",
- "class",
- "city",
- "town",
- "village",
- "country",
- "continent"
- ],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Bold"],
- "text-letter-spacing": 0.1,
- "text-max-width": 9,
- "text-size": {"base": 1.2, "stops": [[12, 10], [15, 14]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#633",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-village",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["==", "class", "village"],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[10, 12], [15, 22]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-town",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["==", "class", "town"],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[10, 14], [15, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-city",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["all", ["!=", "capital", 2], ["==", "class", "city"]],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-city-capital",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["all", ["==", "capital", 2], ["==", "class", "city"]],
- "layout": {
- "icon-image": "star_11",
- "icon-size": 0.8,
- "text-anchor": "left",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-offset": [0.4, 0],
- "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-country-other",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- [">=", "rank", 3],
- ["!has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Italic"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[3, 11], [7, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-3",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- [">=", "rank", 3],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[3, 11], [7, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-2",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- ["==", "rank", 2],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[2, 11], [5, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-1",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- ["==", "rank", 1],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[1, 11], [4, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-continent",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "maxzoom": 1,
- "filter": ["==", "class", "continent"],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": 14,
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- }
- ],
- "id": "bright"
-}
diff --git a/app/javascript/components/MapStyles/vectorCadastre.json b/app/javascript/components/MapStyles/vectorCadastre.json
deleted file mode 100644
index 05bab6a1d..000000000
--- a/app/javascript/components/MapStyles/vectorCadastre.json
+++ /dev/null
@@ -1,2460 +0,0 @@
-{
- "version": 8,
- "name": "Bright",
- "metadata": {
- "mapbox:autocomposite": false,
- "mapbox:groups": {
- "1444849242106.713": {"collapsed": false, "name": "Places"},
- "1444849334699.1902": {"collapsed": true, "name": "Bridges"},
- "1444849345966.4436": {"collapsed": false, "name": "Roads"},
- "1444849354174.1904": {"collapsed": true, "name": "Tunnels"},
- "1444849364238.8171": {"collapsed": false, "name": "Buildings"},
- "1444849382550.77": {"collapsed": false, "name": "Water"},
- "1444849388993.3071": {"collapsed": false, "name": "Land"}
- },
- "mapbox:type": "template",
- "openmaptiles:mapbox:owner": "openmaptiles",
- "openmaptiles:mapbox:source:url": "mapbox://openmaptiles.4qljc88t",
- "openmaptiles:version": "3.x",
- "maputnik:renderer": "mbgljs"
- },
- "center": [0, 0],
- "zoom": 1,
- "bearing": 0,
- "pitch": 0,
- "sources": {
- "openmaptiles": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/france-vector.json"
- },
- "cadastre": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/cadastre.json"
- },
- "decoupage-administratif": {
- "type": "vector",
- "url": "https://openmaptiles.geo.data.gouv.fr/data/decoupage-administratif.json"
- }
- },
- "sprite": "https://openmaptiles.github.io/osm-bright-gl-style/sprite",
- "glyphs": "https://openmaptiles.geo.data.gouv.fr/fonts/{fontstack}/{range}.pbf",
- "layers": [
- {
- "id": "background",
- "type": "background",
- "minzoom": 0,
- "maxzoom": 24,
- "layout": {"visibility": "visible"},
- "paint": {"background-color": "rgba(255, 246, 241, 1)"}
- },
- {
- "id": "landcover-glacier",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["==", "subclass", "glacier"],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "#fff",
- "fill-opacity": {"base": 1, "stops": [[0, 0.9], [10, 0.3]]}
- }
- },
- {
- "id": "batiments-fill",
- "type": "fill",
- "source": "cadastre",
- "source-layer": "batiments",
- "minzoom": 16,
- "paint": {"fill-opacity": 0.3}
- },
- {
- "id": "batiments-line",
- "type": "line",
- "source": "cadastre",
- "source-layer": "batiments",
- "minzoom": 16,
- "maxzoom": 22,
- "layout": {"visibility": "visible"},
- "paint": {"line-opacity": 1, "line-color": "rgba(0, 0, 0, 1)"}
- },
- {
- "id": "landuse-residential",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": [
- "all",
- ["in", "class", "residential", "suburb", "neighbourhood"]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": {
- "base": 1,
- "stops": [
- [12, "hsla(30, 19%, 90%, 0.4)"],
- [16, "hsla(30, 19%, 90%, 0.2)"]
- ]
- }
- }
- },
- {
- "id": "landuse-commercial",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": [
- "all",
- ["==", "$type", "Polygon"],
- ["==", "class", "commercial"]
- ],
- "layout": {"visibility": "visible"},
- "paint": {"fill-color": "hsla(0, 60%, 87%, 0.23)"}
- },
- {
- "id": "landuse-industrial",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": [
- "all",
- ["==", "$type", "Polygon"],
- ["==", "class", "industrial"]
- ],
- "paint": {"fill-color": "hsla(49, 100%, 88%, 0.34)"}
- },
- {
- "id": "landuse-cemetery",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": ["==", "class", "cemetery"],
- "paint": {"fill-color": "#e0e4dd"}
- },
- {
- "id": "landuse-hospital",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": ["==", "class", "hospital"],
- "paint": {"fill-color": "#fde"}
- },
- {
- "id": "landuse-school",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": ["==", "class", "school"],
- "paint": {"fill-color": "#f0e8f8"}
- },
- {
- "id": "landuse-railway",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landuse",
- "filter": ["==", "class", "railway"],
- "paint": {"fill-color": "hsla(30, 19%, 90%, 0.4)"}
- },
- {
- "id": "landcover-wood",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["==", "class", "wood"],
- "paint": {
- "fill-antialias": {"base": 1, "stops": [[0, false], [9, true]]},
- "fill-color": "#6a4",
- "fill-opacity": 0.1,
- "fill-outline-color": "hsla(0, 0%, 0%, 0.03)"
- }
- },
- {
- "id": "landcover-grass",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["==", "class", "grass"],
- "paint": {"fill-color": "#d8e8c8", "fill-opacity": 1}
- },
- {
- "id": "landcover-grass-park",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849388993.3071"},
- "source": "openmaptiles",
- "source-layer": "park",
- "filter": ["==", "class", "public_park"],
- "paint": {"fill-color": "#d8e8c8", "fill-opacity": 0.8}
- },
- {
- "id": "waterway_tunnel",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "waterway",
- "minzoom": 14,
- "filter": [
- "all",
- ["in", "class", "river", "stream", "canal"],
- ["==", "brunnel", "tunnel"]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-dasharray": [2, 4],
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
- }
- },
- {
- "id": "waterway-other",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["!in", "class", "canal", "river", "stream"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]}
- }
- },
- {
- "id": "waterway-other-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["!in", "class", "canal", "river", "stream"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 2]]},
- "line-dasharray": [4, 3]
- }
- },
- {
- "id": "waterway-stream-canal",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["in", "class", "canal", "stream"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]}
- }
- },
- {
- "id": "waterway-stream-canal-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["in", "class", "canal", "stream"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.3, "stops": [[13, 0.5], [20, 6]]},
- "line-dasharray": [4, 3]
- }
- },
- {
- "id": "waterway-river",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["==", "class", "river"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 0]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]}
- }
- },
- {
- "id": "waterway-river-intermittent",
- "type": "line",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "waterway",
- "filter": [
- "all",
- ["==", "class", "river"],
- ["!=", "brunnel", "tunnel"],
- ["==", "intermittent", 1]
- ],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#a0c8f0",
- "line-width": {"base": 1.2, "stops": [[10, 0.8], [20, 6]]},
- "line-dasharray": [3, 2.5]
- }
- },
- {
- "id": "water-offset",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "water",
- "maxzoom": 8,
- "filter": ["==", "$type", "Polygon"],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "#a0c8f0",
- "fill-opacity": 1,
- "fill-translate": {"base": 1, "stops": [[6, [2, 0]], [8, [0, 0]]]}
- }
- },
- {
- "id": "water",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "water",
- "filter": ["all", ["!=", "intermittent", 1]],
- "layout": {"visibility": "visible"},
- "paint": {"fill-color": "hsl(210, 67%, 85%)"}
- },
- {
- "id": "water-intermittent",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "water",
- "filter": ["all", ["==", "intermittent", 1]],
- "layout": {"visibility": "visible"},
- "paint": {"fill-color": "hsl(210, 67%, 85%)", "fill-opacity": 0.7}
- },
- {
- "id": "water-pattern",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "water",
- "filter": ["all"],
- "layout": {"visibility": "visible"},
- "paint": {"fill-pattern": "wave", "fill-translate": [0, 2.5]}
- },
- {
- "id": "landcover-ice-shelf",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["==", "subclass", "ice_shelf"],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "#fff",
- "fill-opacity": {"base": 1, "stops": [[0, 0.9], [10, 0.3]]}
- }
- },
- {
- "id": "landcover-sand",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849382550.77"},
- "source": "openmaptiles",
- "source-layer": "landcover",
- "filter": ["all", ["==", "class", "sand"]],
- "layout": {"visibility": "visible"},
- "paint": {"fill-color": "rgba(245, 238, 188, 1)", "fill-opacity": 1}
- },
- {
- "id": "building",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849364238.8171"},
- "source": "openmaptiles",
- "source-layer": "building",
- "layout": {"visibility": "none"},
- "paint": {
- "fill-antialias": true,
- "fill-color": {"base": 1, "stops": [[15.5, "#f2eae2"], [16, "#dfdbd7"]]}
- }
- },
- {
- "id": "building-top",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849364238.8171"},
- "source": "openmaptiles",
- "source-layer": "building",
- "layout": {"visibility": "none"},
- "paint": {
- "fill-color": "#f2eae2",
- "fill-opacity": {"base": 1, "stops": [[13, 0], [16, 1]]},
- "fill-outline-color": "#dfdbd7",
- "fill-translate": {"base": 1, "stops": [[14, [0, 0]], [16, [-2, -2]]]}
- }
- },
- {
- "id": "tunnel-service-track-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "service", "track"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#cfcdca",
- "line-dasharray": [0.5, 0.25],
- "line-width": {"base": 1.2, "stops": [[15, 1], [16, 4], [20, 11]]}
- }
- },
- {
- "id": "tunnel-minor-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "minor"]],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#cfcdca",
- "line-opacity": {"stops": [[12, 0], [12.5, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "tunnel-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
- }
- },
- {
- "id": "tunnel-trunk-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "tunnel-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#e9ac77",
- "line-dasharray": [0.5, 0.25],
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "tunnel-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "tunnel"], ["==", "class", "path"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "tunnel-service-track",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "service", "track"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-width": {"base": 1.2, "stops": [[15.5, 0], [16, 2], [20, 7.5]]}
- }
- },
- {
- "id": "tunnel-minor",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "minor_road"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
- }
- },
- {
- "id": "tunnel-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff4c6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 10]]}
- }
- },
- {
- "id": "tunnel-trunk-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fff4c6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "tunnel-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#ffdaa6",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "tunnel-railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849354174.1904"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "tunnel"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [2, 2],
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "ferry",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["in", "class", "ferry"]],
- "layout": {"line-join": "round", "visibility": "none"},
- "paint": {
- "line-color": "rgba(108, 159, 182, 1)",
- "line-dasharray": [2, 2],
- "line-width": 1.1
- }
- },
- {
- "id": "aeroway-taxiway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 12,
- "filter": ["all", ["in", "class", "taxiway"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(153, 153, 153, 1)",
- "line-opacity": 1,
- "line-width": {"base": 1.5, "stops": [[11, 2], [17, 12]]}
- }
- },
- {
- "id": "aeroway-runway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 12,
- "filter": ["all", ["in", "class", "runway"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(153, 153, 153, 1)",
- "line-opacity": 1,
- "line-width": {"base": 1.5, "stops": [[11, 5], [17, 55]]}
- }
- },
- {
- "id": "aeroway-area",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["==", "$type", "Polygon"],
- ["in", "class", "runway", "taxiway"]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "rgba(255, 255, 255, 1)",
- "fill-opacity": {"base": 1, "stops": [[13, 0], [14, 1]]}
- }
- },
- {
- "id": "aeroway-taxiway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["in", "class", "taxiway"],
- ["==", "$type", "LineString"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(255, 255, 255, 1)",
- "line-opacity": {"base": 1, "stops": [[11, 0], [12, 1]]},
- "line-width": {"base": 1.5, "stops": [[11, 1], [17, 10]]}
- }
- },
- {
- "id": "aeroway-runway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "aeroway",
- "minzoom": 4,
- "filter": [
- "all",
- ["in", "class", "runway"],
- ["==", "$type", "LineString"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(255, 255, 255, 1)",
- "line-opacity": {"base": 1, "stops": [[11, 0], [12, 1]]},
- "line-width": {"base": 1.5, "stops": [[11, 4], [17, 50]]}
- }
- },
- {
- "id": "road_area_pier",
- "type": "fill",
- "metadata": {},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "Polygon"], ["==", "class", "pier"]],
- "layout": {"visibility": "none"},
- "paint": {"fill-antialias": true, "fill-color": "#f8f4f0"}
- },
- {
- "id": "road_pier",
- "type": "line",
- "metadata": {},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 0,
- "filter": ["all", ["==", "$type", "LineString"], ["in", "class", "pier"]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "none"
- },
- "paint": {
- "line-color": "#f8f4f0",
- "line-width": {"base": 1.2, "stops": [[15, 1], [17, 4]]}
- }
- },
- {
- "id": "highway-area",
- "type": "fill",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "$type", "Polygon"], ["!in", "class", "pier"]],
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-antialias": false,
- "fill-color": "hsla(0, 0%, 89%, 0.56)",
- "fill-opacity": 0.9,
- "fill-outline-color": "#cfcdca"
- }
- },
- {
- "id": "highway-motorway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 12,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-minor-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!=", "brunnel", "tunnel"],
- ["in", "class", "minor", "service", "track"]
- ]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#cfcdca",
- "line-opacity": {"stops": [[12, 0], [12.5, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[12, 0.5], [13, 1], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "highway-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 17]]}
- }
- },
- {
- "id": "highway-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "primary"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[7, 0], [8, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[7, 0], [8, 0.6], [9, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-trunk-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "trunk"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[5, 0], [6, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 4,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway"]
- ],
- "layout": {
- "line-cap": "butt",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": {"stops": [[4, 0], [5, 1]]},
- "line-width": {
- "base": 1.2,
- "stops": [[4, 0], [5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "highway-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "highway-motorway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 12,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "highway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "highway-minor",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!=", "brunnel", "tunnel"],
- ["in", "class", "minor", "service", "track"]
- ]
- ],
- "layout": {"line-cap": "round", "line-join": "round"},
- "paint": {
- "line-color": "#fff",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[13.5, 0], [14, 2.5], [20, 11.5]]}
- }
- },
- {
- "id": "highway-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [8, 0.5], [20, 13]]}
- }
- },
- {
- "id": "highway-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "primary"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[8.5, 0], [9, 0.5], [20, 18]]}
- }
- },
- {
- "id": "highway-trunk",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["in", "class", "trunk"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "highway-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 5,
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "motorway"]
- ]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "#fc8",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "railway-transit",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "transit"], ["!in", "brunnel", "tunnel"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.77)",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
- }
- },
- {
- "id": "railway-transit-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "transit"], ["!in", "brunnel", "tunnel"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.68)",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
- }
- },
- {
- "id": "railway-service",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "rail"], ["has", "service"]]
- ],
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.77)",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [20, 1]]}
- }
- },
- {
- "id": "railway-service-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "class", "rail"], ["has", "service"]]
- ],
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "hsla(0, 0%, 73%, 0.68)",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 2], [20, 6]]}
- }
- },
- {
- "id": "railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!has", "service"],
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "rail"]
- ]
- ],
- "paint": {
- "line-color": "#bbb",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "railway-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849345966.4436"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- [
- "all",
- ["!has", "service"],
- ["!in", "brunnel", "bridge", "tunnel"],
- ["==", "class", "rail"]
- ]
- ],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
- }
- },
- {
- "id": "bridge-motorway-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "bridge-link-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {
- "base": 1.2,
- "stops": [[12, 1], [13, 3], [14, 4], [20, 15]]
- }
- }
- },
- {
- "id": "bridge-secondary-tertiary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-opacity": 1,
- "line-width": {"base": 1.2, "stops": [[8, 1.5], [20, 28]]}
- }
- },
- {
- "id": "bridge-trunk-primary-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "hsl(28, 76%, 67%)",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 26]]
- }
- }
- },
- {
- "id": "bridge-motorway-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#e9ac77",
- "line-width": {
- "base": 1.2,
- "stops": [[5, 0.4], [6, 0.6], [7, 1.5], [20, 22]]
- }
- }
- },
- {
- "id": "bridge-path-casing",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "bridge"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#f8f4f0",
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 18]]}
- }
- },
- {
- "id": "bridge-path",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["all", ["==", "brunnel", "bridge"], ["==", "class", "path"]]
- ],
- "paint": {
- "line-color": "#cba",
- "line-dasharray": [1.5, 0.75],
- "line-width": {"base": 1.2, "stops": [[15, 1.2], [20, 4]]}
- }
- },
- {
- "id": "bridge-motorway-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway_link"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "bridge-link",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- [
- "in",
- "class",
- "primary_link",
- "secondary_link",
- "tertiary_link",
- "trunk_link"
- ]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {
- "base": 1.2,
- "stops": [[12.5, 0], [13, 1.5], [14, 2.5], [20, 11.5]]
- }
- }
- },
- {
- "id": "bridge-secondary-tertiary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "secondary", "tertiary"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 20]]}
- }
- },
- {
- "id": "bridge-trunk-primary",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["in", "class", "primary", "trunk"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fea",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "bridge-motorway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": [
- "all",
- ["==", "brunnel", "bridge"],
- ["==", "class", "motorway"]
- ],
- "layout": {"line-join": "round"},
- "paint": {
- "line-color": "#fc8",
- "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}
- }
- },
- {
- "id": "bridge-railway",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-width": {"base": 1.4, "stops": [[14, 0.4], [15, 0.75], [20, 2]]}
- }
- },
- {
- "id": "bridge-railway-hatching",
- "type": "line",
- "metadata": {"mapbox:group": "1444849334699.1902"},
- "source": "openmaptiles",
- "source-layer": "transportation",
- "filter": ["all", ["==", "brunnel", "bridge"], ["==", "class", "rail"]],
- "paint": {
- "line-color": "#bbb",
- "line-dasharray": [0.2, 8],
- "line-width": {"base": 1.4, "stops": [[14.5, 0], [15, 3], [20, 8]]}
- }
- },
- {
- "id": "cablecar",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": ["==", "class", "cable_car"],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "hsl(0, 0%, 70%)",
- "line-width": {"base": 1, "stops": [[11, 1], [19, 2.5]]}
- }
- },
- {
- "id": "cablecar-dash",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 13,
- "filter": ["==", "class", "cable_car"],
- "layout": {"line-cap": "round", "visibility": "visible"},
- "paint": {
- "line-color": "hsl(0, 0%, 70%)",
- "line-dasharray": [2, 3],
- "line-width": {"base": 1, "stops": [[11, 3], [19, 5.5]]}
- }
- },
- {
- "id": "boundary-land-level-4",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": [
- "all",
- [">=", "admin_level", 4],
- ["<=", "admin_level", 8],
- ["!=", "maritime", 1]
- ],
- "layout": {"line-join": "round", "visibility": "visible"},
- "paint": {
- "line-color": "#9e9cab",
- "line-dasharray": [3, 1, 1, 1],
- "line-width": {"base": 1.4, "stops": [[4, 0.4], [5, 1], [12, 3]]}
- }
- },
- {
- "id": "boundary-land-level-2",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": [
- "all",
- ["==", "admin_level", 2],
- ["!=", "maritime", 1],
- ["!=", "disputed", 1]
- ],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "hsl(248, 7%, 66%)",
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "boundary-land-disputed",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": ["all", ["!=", "maritime", 1], ["==", "disputed", 1]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "hsl(248, 7%, 70%)",
- "line-dasharray": [1, 3],
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "boundary-water",
- "type": "line",
- "source": "openmaptiles",
- "source-layer": "boundary",
- "filter": ["all", ["in", "admin_level", 2, 4], ["==", "maritime", 1]],
- "layout": {
- "line-cap": "round",
- "line-join": "round",
- "visibility": "visible"
- },
- "paint": {
- "line-color": "rgba(154, 189, 214, 1)",
- "line-opacity": {"stops": [[6, 0.6], [10, 1]]},
- "line-width": {
- "base": 1,
- "stops": [[0, 0.6], [4, 1.4], [5, 2], [12, 8]]
- }
- }
- },
- {
- "id": "waterway-name",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "waterway",
- "minzoom": 13,
- "filter": ["all", ["==", "$type", "LineString"], ["has", "name"]],
- "layout": {
- "symbol-placement": "line",
- "symbol-spacing": 350,
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "parcelles",
- "type": "line",
- "source": "cadastre",
- "source-layer": "parcelles",
- "minzoom": 16,
- "maxzoom": 24,
- "layout": {"visibility": "visible", "line-cap": "butt"},
- "paint": {
- "line-color": "#0053b3",
- "line-opacity": 0.9,
- "line-width": {"stops": [[16, 1], [17, 2]]}
- }
- },
- {
- "id": "parcelles-fill",
- "type": "fill",
- "source": "cadastre",
- "source-layer": "parcelles",
- "layout": {"visibility": "visible"},
- "paint": {
- "fill-color": "rgba(129, 123, 0, 1)",
- "fill-opacity": [
- "case",
- ["boolean", ["feature-state", "hover"], false],
- 0.7,
- 0.1
- ]
- }
- },
- {
- "id": "parcelle-highlighted",
- "type": "fill",
- "source": "cadastre",
- "source-layer": "parcelles",
- "filter": ["==", "id", ""],
- "paint": {
- "fill-color": "rgba(1, 129, 0, 1)",
- "fill-opacity": 0.7
- }
- },
- {
- "id": "sections",
- "type": "line",
- "source": "cadastre",
- "source-layer": "sections",
- "minzoom": 12,
- "maxzoom": 24,
- "layout": {"visibility": "visible"},
- "paint": {
- "line-color": "rgba(116, 134, 241, 1)",
- "line-opacity": 0.9,
- "line-width": 2
- }
- },
- {
- "id": "communes",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "communes",
- "minzoom": 10,
- "maxzoom": 24,
- "layout": {"visibility": "visible"}
- },
- {
- "id": "departements",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "departements",
- "layout": {"visibility": "visible"}
- },
- {
- "id": "regions",
- "type": "line",
- "source": "decoupage-administratif",
- "source-layer": "regions",
- "layout": {"visibility": "visible"}
- },
- {
- "id": "water-name-lakeline",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["==", "$type", "LineString"],
- "layout": {
- "symbol-placement": "line",
- "symbol-spacing": 350,
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "water-name-ocean",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["all", ["==", "$type", "Point"], ["==", "class", "ocean"]],
- "layout": {
- "symbol-placement": "point",
- "symbol-spacing": 350,
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": 14
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "water-name-other",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "water_name",
- "filter": ["all", ["==", "$type", "Point"], ["!in", "class", "ocean"]],
- "layout": {
- "symbol-placement": "point",
- "symbol-spacing": 350,
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Italic"],
- "text-letter-spacing": 0.2,
- "text-max-width": 5,
- "text-rotation-alignment": "map",
- "text-size": {"stops": [[0, 10], [6, 14]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#74aee9",
- "text-halo-color": "rgba(255,255,255,0.7)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "road_oneway",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "oneway", 1],
- [
- "in",
- "class",
- "motorway",
- "trunk",
- "primary",
- "secondary",
- "tertiary",
- "minor",
- "service"
- ]
- ],
- "layout": {
- "icon-image": "oneway",
- "icon-padding": 2,
- "icon-rotate": 90,
- "icon-rotation-alignment": "map",
- "icon-size": {"stops": [[15, 0.5], [19, 1]]},
- "symbol-placement": "line",
- "symbol-spacing": 75,
- "visibility": "visible"
- },
- "paint": {"icon-opacity": 0.5}
- },
- {
- "id": "road_oneway_opposite",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "oneway", -1],
- [
- "in",
- "class",
- "motorway",
- "trunk",
- "primary",
- "secondary",
- "tertiary",
- "minor",
- "service"
- ]
- ],
- "layout": {
- "icon-image": "oneway",
- "icon-padding": 2,
- "icon-rotate": -90,
- "icon-rotation-alignment": "map",
- "icon-size": {"stops": [[15, 0.5], [19, 1]]},
- "symbol-placement": "line",
- "symbol-spacing": 75,
- "visibility": "visible"
- },
- "paint": {"icon-opacity": 0.5}
- },
- {
- "id": "highway-name-path",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 15.5,
- "filter": ["==", "class", "path"],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
- },
- "paint": {
- "text-color": "hsl(30, 23%, 62%)",
- "text-halo-color": "#f8f4f0",
- "text-halo-width": 0.5
- }
- },
- {
- "id": "highway-name-minor",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "$type", "LineString"],
- ["in", "class", "minor", "service", "track"]
- ],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
- },
- "paint": {
- "text-color": "#765",
- "text-halo-blur": 0.5,
- "text-halo-width": 1
- }
- },
- {
- "id": "highway-name-major",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 12.2,
- "filter": ["in", "class", "primary", "secondary", "tertiary", "trunk"],
- "layout": {
- "symbol-placement": "line",
- "text-field": "{name:latin} {name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "map",
- "text-size": {"base": 1, "stops": [[13, 12], [14, 13]]}
- },
- "paint": {
- "text-color": "#765",
- "text-halo-blur": 0.5,
- "text-halo-width": 1
- }
- },
- {
- "id": "highway-shield",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 8,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["!in", "network", "us-interstate", "us-highway", "us-state"]
- ],
- "layout": {
- "icon-image": "road_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {}
- },
- {
- "id": "highway-shield-us-interstate",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 7,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["in", "network", "us-interstate"]
- ],
- "layout": {
- "icon-image": "{network}_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {
- "base": 1,
- "stops": [[7, "point"], [7, "line"], [8, "line"]]
- },
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {"text-color": "rgba(0, 0, 0, 1)"}
- },
- {
- "id": "highway-shield-us-other",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "transportation_name",
- "minzoom": 9,
- "filter": [
- "all",
- ["<=", "ref_length", 6],
- ["==", "$type", "LineString"],
- ["in", "network", "us-highway", "us-state"]
- ],
- "layout": {
- "icon-image": "{network}_{ref_length}",
- "icon-rotation-alignment": "viewport",
- "icon-size": 1,
- "symbol-placement": {"base": 1, "stops": [[10, "point"], [11, "line"]]},
- "symbol-spacing": 200,
- "text-field": "{ref}",
- "text-font": ["Noto Sans Regular"],
- "text-rotation-alignment": "viewport",
- "text-size": 10
- },
- "paint": {"text-color": "rgba(0, 0, 0, 1)"}
- },
- {
- "id": "airport-label-major",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "aerodrome_label",
- "minzoom": 10,
- "filter": ["all", ["has", "iata"]],
- "layout": {
- "icon-image": "airport_11",
- "icon-size": 1,
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-optional": true,
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-3",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 16,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- [">=", "rank", 25],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-2",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 15,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["<=", "rank", 24],
- [">=", "rank", 15],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-level-1",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 14,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["<=", "rank", 14],
- ["has", "name"],
- ["any", ["!has", "level"], ["==", "level", 0]]
- ],
- "layout": {
- "icon-image": "{class}_11",
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-padding": 2,
- "text-size": 12,
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "poi-railway",
- "type": "symbol",
- "source": "openmaptiles",
- "source-layer": "poi",
- "minzoom": 13,
- "filter": [
- "all",
- ["==", "$type", "Point"],
- ["has", "name"],
- ["==", "class", "railway"],
- ["==", "subclass", "station"]
- ],
- "layout": {
- "icon-allow-overlap": false,
- "icon-ignore-placement": false,
- "icon-image": "{class}_11",
- "icon-optional": false,
- "text-allow-overlap": false,
- "text-anchor": "top",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-ignore-placement": false,
- "text-max-width": 9,
- "text-offset": [0, 0.6],
- "text-optional": true,
- "text-padding": 2,
- "text-size": 12
- },
- "paint": {
- "text-color": "#666",
- "text-halo-blur": 0.5,
- "text-halo-color": "#ffffff",
- "text-halo-width": 1
- }
- },
- {
- "id": "place-other",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "!in",
- "class",
- "city",
- "town",
- "village",
- "country",
- "continent"
- ],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Bold"],
- "text-letter-spacing": 0.1,
- "text-max-width": 9,
- "text-size": {"base": 1.2, "stops": [[12, 10], [15, 14]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#633",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-village",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["==", "class", "village"],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[10, 12], [15, 22]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-town",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["==", "class", "town"],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[10, 14], [15, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-city",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["all", ["!=", "capital", 2], ["==", "class", "city"]],
- "layout": {
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-city-capital",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": ["all", ["==", "capital", 2], ["==", "class", "city"]],
- "layout": {
- "icon-image": "star_11",
- "icon-size": 0.8,
- "text-anchor": "left",
- "text-field": "{name:latin}\n{name:nonlatin}",
- "text-font": ["Noto Sans Regular"],
- "text-max-width": 8,
- "text-offset": [0.4, 0],
- "text-size": {"base": 1.2, "stops": [[7, 14], [11, 24]]},
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#333",
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 1.2
- }
- },
- {
- "id": "place-country-other",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- [">=", "rank", 3],
- ["!has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Italic"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[3, 11], [7, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-3",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- [">=", "rank", 3],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[3, 11], [7, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-2",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- ["==", "rank", 2],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[2, 11], [5, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-country-1",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "filter": [
- "all",
- ["==", "class", "country"],
- ["==", "rank", 1],
- ["has", "iso_a2"]
- ],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": {"stops": [[1, 11], [4, 17]]},
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "place-continent",
- "type": "symbol",
- "metadata": {"mapbox:group": "1444849242106.713"},
- "source": "openmaptiles",
- "source-layer": "place",
- "maxzoom": 1,
- "filter": ["==", "class", "continent"],
- "layout": {
- "text-field": "{name:latin}",
- "text-font": ["Noto Sans Bold"],
- "text-max-width": 6.25,
- "text-size": 14,
- "text-transform": "uppercase",
- "visibility": "visible"
- },
- "paint": {
- "text-color": "#334",
- "text-halo-blur": 1,
- "text-halo-color": "rgba(255,255,255,0.8)",
- "text-halo-width": 2
- }
- },
- {
- "id": "code-section",
- "type": "symbol",
- "source": "cadastre",
- "source-layer": "sections",
- "minzoom": 12.5,
- "maxzoom": 16,
- "layout": {
- "text-field": "{code}",
- "text-font": ["Lato Bold"],
- "visibility": "visible"
- },
- "paint": {
- "text-halo-color": "rgba(255, 246, 241, 1)",
- "text-halo-width": 1.5
- }
- },
- {
- "id": "code-parcelles",
- "type": "symbol",
- "source": "cadastre",
- "source-layer": "parcelles",
- "minzoom": 16,
- "filter": ["all"],
- "layout": {
- "text-field": "{numero}",
- "text-font": ["Lato Bold"],
- "text-allow-overlap": false,
- "visibility": "visible",
- "text-size": 16
- },
- "paint": {
- "text-halo-color": "#fff6f1",
- "text-halo-width": 1.5,
- "text-translate-anchor": "map"
- }
- }
- ],
- "id": "bright"
-}
diff --git a/app/views/shared/champs/carte/_show.html.haml b/app/views/shared/champs/carte/_show.html.haml
index 122b94f64..b3f2a50d0 100644
--- a/app/views/shared/champs/carte/_show.html.haml
+++ b/app/views/shared/champs/carte/_show.html.haml
@@ -1,4 +1,4 @@
- if champ.geometry?
- = react_component("MapReader", { featureCollection: champ.to_feature_collection } )
+ = react_component("MapReader", { featureCollection: champ.to_feature_collection, ign: feature_enabled_for?(:carte_ign, champ.procedure) } )
.geo-areas
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, editing: false }
diff --git a/app/views/shared/dossiers/editable_champs/_carte.html.haml b/app/views/shared/dossiers/editable_champs/_carte.html.haml
index 21328444b..720ecde88 100644
--- a/app/views/shared/dossiers/editable_champs/_carte.html.haml
+++ b/app/views/shared/dossiers/editable_champs/_carte.html.haml
@@ -1,5 +1,5 @@
- preview = !champ.persisted?
-= react_component("MapEditor", { featureCollection: champ.to_feature_collection, url: champs_carte_features_path(preview ? 'preview' : champ), preview: preview, hasCadastres: !!champ.cadastres? }, class: "carte-#{champ.id}")
+= react_component("MapEditor", { featureCollection: champ.to_feature_collection, url: champs_carte_features_path(preview ? 'preview' : champ), preview: preview, hasCadastres: !!champ.cadastres?, ign: feature_enabled_for?(:carte_ign, champ.procedure) }, class: "carte-#{champ.id}")
.geo-areas
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, editing: true }
diff --git a/config/environments/development.rb b/config/environments/development.rb
index db82148ad..d944bea27 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -88,4 +88,8 @@ Rails.application.configure do
config.active_job.queue_adapter = ENV.fetch('RAILS_QUEUE_ADAPTER', 'async').to_sym
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
+
+ if ENV['IGN_CARTE_REFERER']
+ config.hosts << ENV['IGN_CARTE_REFERER']
+ end
end
diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb
index ccc7374f4..72339cd2c 100644
--- a/config/initializers/content_security_policy.rb
+++ b/config/initializers/content_security_policy.rb
@@ -9,7 +9,7 @@ Rails.application.config.content_security_policy do |policy|
# c'est trop compliqué pour être rectifié immédiatement (et sans valeur ajoutée:
# c'est hardcodé dans les vues, donc pas injectable).
policy.style_src :self, "*.crisp.chat", "crisp.chat", 'cdn.jsdelivr.net', :unsafe_inline
- policy.connect_src :self, "wss://*.crisp.chat", "*.crisp.chat", "*.demarches-simplifiees.fr", "in-automate.sendinblue.com", "app.franceconnect.gouv.fr", "sentry.io", "geo.api.gouv.fr", "api-adresse.data.gouv.fr", "openmaptiles.geo.data.gouv.fr", "openmaptiles.github.io", "tiles.geo.api.gouv.fr"
+ policy.connect_src :self, "wss://*.crisp.chat", "*.crisp.chat", "*.demarches-simplifiees.fr", "in-automate.sendinblue.com", "app.franceconnect.gouv.fr", "sentry.io", "geo.api.gouv.fr", "api-adresse.data.gouv.fr", "openmaptiles.geo.data.gouv.fr", "openmaptiles.github.io", "tiles.geo.api.gouv.fr", "wxs.ign.fr"
# Pour tout le reste, par défaut on accepte uniquement ce qui vient de chez nous
# et dans la notification on inclue la source de l'erreur
policy.default_src :self, :data, :blob, :report_sample, "fonts.gstatic.com", "in-automate.sendinblue.com", "player.vimeo.com", "app.franceconnect.gouv.fr", "sentry.io", "static.demarches-simplifiees.fr", "*.crisp.chat", "crisp.chat", "*.crisp.help", "*.sibautomation.com", "sibautomation.com", "data"
diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb
index d434f6a72..8685a3fc9 100644
--- a/config/initializers/flipper.rb
+++ b/config/initializers/flipper.rb
@@ -35,7 +35,8 @@ features = [
:mini_profiler,
:operation_log_serialize_subject,
:pre_maintenance_mode,
- :xray
+ :xray,
+ :carte_ign
]
def database_exists?
diff --git a/package.json b/package.json
index 78e31324f..e6ea7104c 100644
--- a/package.json
+++ b/package.json
@@ -1,10 +1,10 @@
{
"dependencies": {
- "@babel/preset-react": "^7.9.4",
+ "@babel/preset-react": "^7.10.4",
"@fortawesome/fontawesome-svg-core": "^1.2.28",
"@fortawesome/free-solid-svg-icons": "^5.13.0",
"@fortawesome/react-fontawesome": "^0.1.9",
- "@mapbox/mapbox-gl-draw": "^1.1.2",
+ "@mapbox/mapbox-gl-draw": "^1.2.0",
"@rails/actiontext": "^6.0.3",
"@rails/activestorage": "^6.0.3",
"@rails/ujs": "^6.0.3",
@@ -22,13 +22,13 @@
"highcharts": "^8.1.0",
"intersection-observer": "^0.10.0",
"jquery": "^3.5.1",
- "mapbox-gl": "^1.10.0",
+ "mapbox-gl": "^1.11.1",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-intersection-observer": "^8.26.2",
"react-loadable": "^5.5.0",
- "react-mapbox-gl": "^4.8.3",
+ "react-mapbox-gl": "^4.8.6",
"react-mapbox-gl-draw": "^2.0.4",
"react-scroll-to-component": "^1.0.2",
"react-sortable-hoc": "^1.11.0",
diff --git a/yarn.lock b/yarn.lock
index 987ce8348..b654b1b20 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -50,6 +50,13 @@
lodash "^4.17.13"
source-map "^0.5.0"
+"@babel/helper-annotate-as-pure@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.10.4.tgz#5bf0d495a3f757ac3bda48b5bf3b3ba309c72ba3"
+ integrity sha512-XQlqKQP4vXFB7BN8fEEerrmYvHp3fK/rBkRFz9jaJbzK0B1DSfej9Kc7ZzE8Z/OnId1jpJdNAZ3BFQjWG68rcA==
+ dependencies:
+ "@babel/types" "^7.10.4"
+
"@babel/helper-annotate-as-pure@^7.8.3":
version "7.8.3"
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz#60bc0bc657f63a0924ff9a4b4a0b24a13cf4deee"
@@ -65,22 +72,22 @@
"@babel/helper-explode-assignable-expression" "^7.8.3"
"@babel/types" "^7.8.3"
-"@babel/helper-builder-react-jsx-experimental@^7.9.0":
- version "7.9.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx-experimental/-/helper-builder-react-jsx-experimental-7.9.5.tgz#0b4b3e04e6123f03b404ca4dfd6528fe6bb92fe3"
- integrity sha512-HAagjAC93tk748jcXpZ7oYRZH485RCq/+yEv9SIWezHRPv9moZArTnkUNciUNzvwHUABmiWKlcxJvMcu59UwTg==
+"@babel/helper-builder-react-jsx-experimental@^7.10.4":
+ version "7.10.5"
+ resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx-experimental/-/helper-builder-react-jsx-experimental-7.10.5.tgz#f35e956a19955ff08c1258e44a515a6d6248646b"
+ integrity sha512-Buewnx6M4ttG+NLkKyt7baQn7ScC/Td+e99G914fRU8fGIUivDDgVIQeDHFa5e4CRSJQt58WpNHhsAZgtzVhsg==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.8.3"
- "@babel/helper-module-imports" "^7.8.3"
- "@babel/types" "^7.9.5"
+ "@babel/helper-annotate-as-pure" "^7.10.4"
+ "@babel/helper-module-imports" "^7.10.4"
+ "@babel/types" "^7.10.5"
-"@babel/helper-builder-react-jsx@^7.9.0":
- version "7.9.0"
- resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.9.0.tgz#16bf391990b57732700a3278d4d9a81231ea8d32"
- integrity sha512-weiIo4gaoGgnhff54GQ3P5wsUQmnSwpkvU0r6ZHq6TzoSzKy4JxHEgnxNytaKbov2a9z/CVNyzliuCOUPEX3Jw==
+"@babel/helper-builder-react-jsx@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.10.4.tgz#8095cddbff858e6fa9c326daee54a2f2732c1d5d"
+ integrity sha512-5nPcIZ7+KKDxT1427oBivl9V9YTal7qk0diccnh7RrcgrT/pGFOjgGw1dgryyx1GvHEpXVfoDF6Ak3rTiWh8Rg==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.8.3"
- "@babel/types" "^7.9.0"
+ "@babel/helper-annotate-as-pure" "^7.10.4"
+ "@babel/types" "^7.10.4"
"@babel/helper-compilation-targets@^7.9.6":
version "7.9.6"
@@ -161,6 +168,13 @@
dependencies:
"@babel/types" "^7.8.3"
+"@babel/helper-module-imports@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.10.4.tgz#4c5c54be04bd31670a7382797d75b9fa2e5b5620"
+ integrity sha512-nEQJHqYavI217oD9+s5MUBzk6x1IlvoS9WTPfgG43CbMEeStE0v+r+TucWdx8KFGowPGvyOkDT9+7DHedIDnVw==
+ dependencies:
+ "@babel/types" "^7.10.4"
+
"@babel/helper-module-imports@^7.8.3":
version "7.8.3"
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz#7fe39589b39c016331b6b8c3f441e8f0b1419498"
@@ -193,6 +207,11 @@
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz#9ea293be19babc0f52ff8ca88b34c3611b208670"
integrity sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==
+"@babel/helper-plugin-utils@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz#2f75a831269d4f677de49986dff59927533cf375"
+ integrity sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==
+
"@babel/helper-regex@^7.8.3":
version "7.8.3"
resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.8.3.tgz#139772607d51b93f23effe72105b319d2a4c6965"
@@ -236,6 +255,11 @@
dependencies:
"@babel/types" "^7.8.3"
+"@babel/helper-validator-identifier@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2"
+ integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==
+
"@babel/helper-validator-identifier@^7.9.0", "@babel/helper-validator-identifier@^7.9.5":
version "7.9.5"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz#90977a8e6fbf6b431a7dc31752eee233bf052d80"
@@ -377,12 +401,12 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-jsx@^7.8.3":
- version "7.8.3"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.8.3.tgz#521b06c83c40480f1e58b4fd33b92eceb1d6ea94"
- integrity sha512-WxdW9xyLgBdefoo0Ynn3MRSkhe5tFVxxKNVdnZSh318WrG2e2jH+E9wd/++JsqcLJZPfz87njQJ8j2Upjm0M0A==
+"@babel/plugin-syntax-jsx@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.10.4.tgz#39abaae3cbf710c4373d8429484e6ba21340166c"
+ integrity sha512-KCg9mio9jwiARCB7WAcQ7Y1q+qicILjoK8LP/VkPkEKaf5dkaZZK1EcTe91a3JJlZ3qy6L5s9X52boEYi8DM9g==
dependencies:
- "@babel/helper-plugin-utils" "^7.8.3"
+ "@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0":
version "7.8.3"
@@ -611,47 +635,55 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.3"
-"@babel/plugin-transform-react-display-name@^7.8.3":
- version "7.8.3"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.8.3.tgz#70ded987c91609f78353dd76d2fb2a0bb991e8e5"
- integrity sha512-3Jy/PCw8Fe6uBKtEgz3M82ljt+lTg+xJaM4og+eyu83qLT87ZUSckn0wy7r31jflURWLO83TW6Ylf7lyXj3m5A==
+"@babel/plugin-transform-react-display-name@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.10.4.tgz#b5795f4e3e3140419c3611b7a2a3832b9aef328d"
+ integrity sha512-Zd4X54Mu9SBfPGnEcaGcOrVAYOtjT2on8QZkLKEq1S/tHexG39d9XXGZv19VfRrDjPJzFmPfTAqOQS1pfFOujw==
dependencies:
- "@babel/helper-plugin-utils" "^7.8.3"
+ "@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-transform-react-jsx-development@^7.9.0":
- version "7.9.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.9.0.tgz#3c2a130727caf00c2a293f0aed24520825dbf754"
- integrity sha512-tK8hWKrQncVvrhvtOiPpKrQjfNX3DtkNLSX4ObuGcpS9p0QrGetKmlySIGR07y48Zft8WVgPakqd/bk46JrMSw==
+"@babel/plugin-transform-react-jsx-development@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.10.4.tgz#6ec90f244394604623880e15ebc3c34c356258ba"
+ integrity sha512-RM3ZAd1sU1iQ7rI2dhrZRZGv0aqzNQMbkIUCS1txYpi9wHQ2ZHNjo5TwX+UD6pvFW4AbWqLVYvKy5qJSAyRGjQ==
dependencies:
- "@babel/helper-builder-react-jsx-experimental" "^7.9.0"
- "@babel/helper-plugin-utils" "^7.8.3"
- "@babel/plugin-syntax-jsx" "^7.8.3"
+ "@babel/helper-builder-react-jsx-experimental" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-jsx" "^7.10.4"
-"@babel/plugin-transform-react-jsx-self@^7.9.0":
- version "7.9.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.9.0.tgz#f4f26a325820205239bb915bad8e06fcadabb49b"
- integrity sha512-K2ObbWPKT7KUTAoyjCsFilOkEgMvFG+y0FqOl6Lezd0/13kMkkjHskVsZvblRPj1PHA44PrToaZANrryppzTvQ==
+"@babel/plugin-transform-react-jsx-self@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.10.4.tgz#cd301a5fed8988c182ed0b9d55e9bd6db0bd9369"
+ integrity sha512-yOvxY2pDiVJi0axdTWHSMi5T0DILN+H+SaeJeACHKjQLezEzhLx9nEF9xgpBLPtkZsks9cnb5P9iBEi21En3gg==
dependencies:
- "@babel/helper-plugin-utils" "^7.8.3"
- "@babel/plugin-syntax-jsx" "^7.8.3"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-jsx" "^7.10.4"
-"@babel/plugin-transform-react-jsx-source@^7.9.0":
- version "7.9.0"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.9.0.tgz#89ef93025240dd5d17d3122294a093e5e0183de0"
- integrity sha512-K6m3LlSnTSfRkM6FcRk8saNEeaeyG5k7AVkBU2bZK3+1zdkSED3qNdsWrUgQBeTVD2Tp3VMmerxVO2yM5iITmw==
+"@babel/plugin-transform-react-jsx-source@^7.10.4":
+ version "7.10.5"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.10.5.tgz#34f1779117520a779c054f2cdd9680435b9222b4"
+ integrity sha512-wTeqHVkN1lfPLubRiZH3o73f4rfon42HpgxUSs86Nc+8QIcm/B9s8NNVXu/gwGcOyd7yDib9ikxoDLxJP0UiDA==
dependencies:
- "@babel/helper-plugin-utils" "^7.8.3"
- "@babel/plugin-syntax-jsx" "^7.8.3"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-jsx" "^7.10.4"
-"@babel/plugin-transform-react-jsx@^7.9.4":
- version "7.9.4"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.9.4.tgz#86f576c8540bd06d0e95e0b61ea76d55f6cbd03f"
- integrity sha512-Mjqf3pZBNLt854CK0C/kRuXAnE6H/bo7xYojP+WGtX8glDGSibcwnsWwhwoSuRg0+EBnxPC1ouVnuetUIlPSAw==
+"@babel/plugin-transform-react-jsx@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.10.4.tgz#673c9f913948764a4421683b2bef2936968fddf2"
+ integrity sha512-L+MfRhWjX0eI7Js093MM6MacKU4M6dnCRa/QPDwYMxjljzSCzzlzKzj9Pk4P3OtrPcxr2N3znR419nr3Xw+65A==
dependencies:
- "@babel/helper-builder-react-jsx" "^7.9.0"
- "@babel/helper-builder-react-jsx-experimental" "^7.9.0"
- "@babel/helper-plugin-utils" "^7.8.3"
- "@babel/plugin-syntax-jsx" "^7.8.3"
+ "@babel/helper-builder-react-jsx" "^7.10.4"
+ "@babel/helper-builder-react-jsx-experimental" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-jsx" "^7.10.4"
+
+"@babel/plugin-transform-react-pure-annotations@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.10.4.tgz#3eefbb73db94afbc075f097523e445354a1c6501"
+ integrity sha512-+njZkqcOuS8RaPakrnR9KvxjoG1ASJWpoIv/doyWngId88JoFlPlISenGXjrVacZUIALGUr6eodRs1vmPnF23A==
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.10.4"
"@babel/plugin-transform-regenerator@^7.8.7":
version "7.8.7"
@@ -799,17 +831,18 @@
"@babel/types" "^7.4.4"
esutils "^2.0.2"
-"@babel/preset-react@^7.9.4":
- version "7.9.4"
- resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.9.4.tgz#c6c97693ac65b6b9c0b4f25b948a8f665463014d"
- integrity sha512-AxylVB3FXeOTQXNXyiuAQJSvss62FEotbX2Pzx3K/7c+MKJMdSg6Ose6QYllkdCFA8EInCJVw7M/o5QbLuA4ZQ==
+"@babel/preset-react@^7.10.4":
+ version "7.10.4"
+ resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.10.4.tgz#92e8a66d816f9911d11d4cc935be67adfc82dbcf"
+ integrity sha512-BrHp4TgOIy4M19JAfO1LhycVXOPWdDbTRep7eVyatf174Hff+6Uk53sDyajqZPu8W1qXRBiYOfIamek6jA7YVw==
dependencies:
- "@babel/helper-plugin-utils" "^7.8.3"
- "@babel/plugin-transform-react-display-name" "^7.8.3"
- "@babel/plugin-transform-react-jsx" "^7.9.4"
- "@babel/plugin-transform-react-jsx-development" "^7.9.0"
- "@babel/plugin-transform-react-jsx-self" "^7.9.0"
- "@babel/plugin-transform-react-jsx-source" "^7.9.0"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-transform-react-display-name" "^7.10.4"
+ "@babel/plugin-transform-react-jsx" "^7.10.4"
+ "@babel/plugin-transform-react-jsx-development" "^7.10.4"
+ "@babel/plugin-transform-react-jsx-self" "^7.10.4"
+ "@babel/plugin-transform-react-jsx-source" "^7.10.4"
+ "@babel/plugin-transform-react-pure-annotations" "^7.10.4"
"@babel/runtime-corejs3@^7.8.3":
version "7.9.6"
@@ -850,6 +883,15 @@
globals "^11.1.0"
lodash "^4.17.13"
+"@babel/types@^7.10.4", "@babel/types@^7.10.5":
+ version "7.10.5"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.10.5.tgz#d88ae7e2fde86bfbfe851d4d81afa70a997b5d15"
+ integrity sha512-ixV66KWfCI6GKoA/2H9v6bQdbfXEwwpOdQ8cRvb4F+eyvhlaHxWFMQB4+3d9QFJXZsiiiqVrewNV0DFEQpyT4Q==
+ dependencies:
+ "@babel/helper-validator-identifier" "^7.10.4"
+ lodash "^4.17.19"
+ to-fast-properties "^2.0.0"
+
"@babel/types@^7.4.4", "@babel/types@^7.7.0", "@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.0", "@babel/types@^7.9.5", "@babel/types@^7.9.6":
version "7.9.6"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.6.tgz#2c5502b427251e9de1bd2dff95add646d95cc9f7"
@@ -938,10 +980,10 @@
resolved "https://registry.yarnpkg.com/@mapbox/geojson-types/-/geojson-types-1.0.2.tgz#9aecf642cb00eab1080a57c4f949a65b4a5846d6"
integrity sha512-e9EBqHHv3EORHrSfbR9DqecPNn+AmuAoQxV6aL8Xu30bJMJR1o8PZLZzpk1Wq7/NfCbuhmakHTPYRhoqLsXRnw==
-"@mapbox/geojsonhint@^2.0.0":
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/@mapbox/geojsonhint/-/geojsonhint-2.2.0.tgz#75ca94706e9a56e6debf4e1c78fabdc67978b883"
- integrity sha512-8qQYRB+/2z2JsN5s6D0WAnpo69+3V3nvJsSFLwMB1dsaWz1V4oZeuoje9srbYAxxL8PXCwIywfhYa3GxOkBv5Q==
+"@mapbox/geojsonhint@3.0.0":
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/@mapbox/geojsonhint/-/geojsonhint-3.0.0.tgz#42448232ce4236cb89c1b69c36b0cadeac99e02e"
+ integrity sha512-zHcyh1rDHYnEBd6NvOWoeHLuvazlDkIjvz9MJx4cKwcKTlfrqgxVnTv1QLnVJnsSU5neJnhQJcgscR/Zl4uYgw==
dependencies:
concat-stream "^1.6.1"
jsonlint-lines "1.7.1"
@@ -954,16 +996,17 @@
resolved "https://registry.yarnpkg.com/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz#ce56e539f83552b58d10d672ea4d6fc9adc7b234"
integrity sha1-zlblOfg1UrWNENZy6k1vya3HsjQ=
-"@mapbox/mapbox-gl-draw@^1.1.2":
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/@mapbox/mapbox-gl-draw/-/mapbox-gl-draw-1.1.2.tgz#247b3f0727db34c2641ab718df5eebeee69a2585"
- integrity sha512-DWtATUAnJaGZYoH/y2O+QTRybxrp5y3w3eV5FXHFNVcKsCAojKEMB8ALKUG2IsiCKqV/JCAguK9AlPWR7Bjafw==
+"@mapbox/mapbox-gl-draw@^1.2.0":
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/@mapbox/mapbox-gl-draw/-/mapbox-gl-draw-1.2.0.tgz#b6e5278afef65bd5d7d92366034997768e478ad9"
+ integrity sha512-gMrP2zn8PzDtrs72FMJTPytCumX5vUn9R7IK38qBOVy9UfqbdWr56KYuNA/2X+jKn4FIOpmWf8CWkKpOaQkv7w==
dependencies:
"@mapbox/geojson-area" "^0.2.1"
"@mapbox/geojson-extent" "^0.3.2"
"@mapbox/geojson-normalize" "0.0.1"
- "@mapbox/geojsonhint" "^2.0.0"
+ "@mapbox/geojsonhint" "3.0.0"
"@mapbox/point-geometry" "0.1.0"
+ eslint-plugin-import "^2.19.1"
hat "0.0.3"
lodash.isequal "^4.2.0"
xtend "^4.0.1"
@@ -1234,6 +1277,11 @@
"@types/minimatch" "*"
"@types/node" "*"
+"@types/json5@^0.0.29":
+ version "0.0.29"
+ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
+ integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4=
+
"@types/minimatch@*":
version "3.0.3"
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
@@ -1716,6 +1764,14 @@ array-unique@^0.3.2:
resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428"
integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=
+array.prototype.flat@^1.2.3:
+ version "1.2.3"
+ resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.3.tgz#0de82b426b0318dbfdb940089e38b043d37f6c7b"
+ integrity sha512-gBlRZV0VSmfPIeWfuuy56XZMvbVfbEUnOXUvt3F/eUUUSyzlgLxhEX4YAEpxNAogRGehPSnfXyPtYyKAhkzQhQ==
+ dependencies:
+ define-properties "^1.1.3"
+ es-abstract "^1.17.0-next.1"
+
arrify@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
@@ -2678,6 +2734,11 @@ constants-browserify@^1.0.0:
resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"
integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=
+contains-path@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a"
+ integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=
+
content-disposition@0.5.3:
version "0.5.3"
resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd"
@@ -3075,7 +3136,7 @@ debounce@^1.2.0:
resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.0.tgz#44a540abc0ea9943018dc0eaa95cce87f65cd131"
integrity sha512-mYtLl1xfZLi1m4RtQYlZgJUNQjl4ZxVnHzIR8nLLgi4q1YT8o/WM+MK/f8yfcc9s5Ir5zRaPZyZU6xs1Syoocg==
-debug@2.6.9, debug@^2.2.0, debug@^2.3.3:
+debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9:
version "2.6.9"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
@@ -3252,6 +3313,14 @@ dns-txt@^2.0.2:
dependencies:
buffer-indexof "^1.0.0"
+doctrine@1.5.0:
+ version "1.5.0"
+ resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa"
+ integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=
+ dependencies:
+ esutils "^2.0.2"
+ isarray "^1.0.0"
+
doctrine@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
@@ -3527,6 +3596,41 @@ eslint-config-prettier@^6.11.0:
dependencies:
get-stdin "^6.0.0"
+eslint-import-resolver-node@^0.3.3:
+ version "0.3.4"
+ resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz#85ffa81942c25012d8231096ddf679c03042c717"
+ integrity sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==
+ dependencies:
+ debug "^2.6.9"
+ resolve "^1.13.1"
+
+eslint-module-utils@^2.6.0:
+ version "2.6.0"
+ resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz#579ebd094f56af7797d19c9866c9c9486629bfa6"
+ integrity sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA==
+ dependencies:
+ debug "^2.6.9"
+ pkg-dir "^2.0.0"
+
+eslint-plugin-import@^2.19.1:
+ version "2.22.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.22.0.tgz#92f7736fe1fde3e2de77623c838dd992ff5ffb7e"
+ integrity sha512-66Fpf1Ln6aIS5Gr/55ts19eUuoDhAbZgnr6UxK5hbDx6l/QgQgx61AePq+BV4PP2uXQFClgMVzep5zZ94qqsxg==
+ dependencies:
+ array-includes "^3.1.1"
+ array.prototype.flat "^1.2.3"
+ contains-path "^0.1.0"
+ debug "^2.6.9"
+ doctrine "1.5.0"
+ eslint-import-resolver-node "^0.3.3"
+ eslint-module-utils "^2.6.0"
+ has "^1.0.3"
+ minimatch "^3.0.4"
+ object.values "^1.1.1"
+ read-pkg-up "^2.0.0"
+ resolve "^1.17.0"
+ tsconfig-paths "^3.9.0"
+
eslint-plugin-prettier@^3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.3.tgz#ae116a0fc0e598fdae48743a4430903de5b4e6ca"
@@ -3983,7 +4087,7 @@ find-up@^1.0.0:
path-exists "^2.0.0"
pinkie-promise "^2.0.0"
-find-up@^2.1.0:
+find-up@^2.0.0, find-up@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7"
integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c=
@@ -5496,6 +5600,16 @@ load-json-file@^1.0.0:
pinkie-promise "^2.0.0"
strip-bom "^2.0.0"
+load-json-file@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8"
+ integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=
+ dependencies:
+ graceful-fs "^4.1.2"
+ parse-json "^2.2.0"
+ pify "^2.0.0"
+ strip-bom "^3.0.0"
+
loader-runner@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357"
@@ -5596,7 +5710,7 @@ lodash.uniq@^4.5.0:
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
-lodash@^4.0.0, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.5, lodash@~4.17.12:
+lodash@^4.0.0, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.5, lodash@~4.17.12:
version "4.17.19"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
@@ -5683,10 +5797,10 @@ map-visit@^1.0.0:
dependencies:
object-visit "^1.0.0"
-mapbox-gl@^1.10.0:
- version "1.10.0"
- resolved "https://registry.yarnpkg.com/mapbox-gl/-/mapbox-gl-1.10.0.tgz#c33e74d1f328e820e245ff8ed7b5dbbbc4be204f"
- integrity sha512-SrJXcR9s5yEsPuW2kKKumA1KqYW9RrL8j7ZcIh6glRQ/x3lwNMfwz/UEJAJcVNgeX+fiwzuBoDIdeGB/vSkZLQ==
+mapbox-gl@^1.11.1:
+ version "1.11.1"
+ resolved "https://registry.yarnpkg.com/mapbox-gl/-/mapbox-gl-1.11.1.tgz#063e72b591d506b6b1f483df563e3e48cd0a971b"
+ integrity sha512-UjXpPUTUzHTLfhl5dLefwV3Jgu7DN9phpn8RnnkQVe1sOXfVYMS5Vhjn225krhzRc7xnKIBHxLyu0rHZGyeXuQ==
dependencies:
"@mapbox/geojson-rewind" "^0.5.0"
"@mapbox/geojson-types" "^1.0.2"
@@ -5708,7 +5822,7 @@ mapbox-gl@^1.10.0:
potpack "^1.0.1"
quickselect "^2.0.0"
rw "^1.3.3"
- supercluster "^7.0.0"
+ supercluster "^7.1.0"
tinyqueue "^2.0.3"
vt-pbf "^3.1.1"
@@ -6676,6 +6790,13 @@ path-type@^1.0.0:
pify "^2.0.0"
pinkie-promise "^2.0.0"
+path-type@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73"
+ integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=
+ dependencies:
+ pify "^2.0.0"
+
path-type@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
@@ -6727,6 +6848,13 @@ pinkie@^2.0.0:
resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA=
+pkg-dir@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b"
+ integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=
+ dependencies:
+ find-up "^2.1.0"
+
pkg-dir@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3"
@@ -7682,10 +7810,10 @@ react-mapbox-gl-draw@^2.0.4:
resolved "https://registry.yarnpkg.com/react-mapbox-gl-draw/-/react-mapbox-gl-draw-2.0.4.tgz#476d70a6efc07c329fa61c11022bcdab60ac4b91"
integrity sha512-oaBdIlyu+g7PhLUvwnCsl/wvu+5tGB9I3RLjcrYLt6U1sUMzQJqplKtVxXRv9TZqRdNaAU5qNOP+dRs55QKjsA==
-react-mapbox-gl@^4.8.3:
- version "4.8.3"
- resolved "https://registry.yarnpkg.com/react-mapbox-gl/-/react-mapbox-gl-4.8.3.tgz#11f5901fe26a4c704a6a22e797bd69404c320e47"
- integrity sha512-o5PrNjIyvF04G77/pWfHJI5G9yM4/IUEsNfGhyC5DTm+Ye/b61jJMAt1A6WLClpWeBXnDY5W7eVC6A2INMbgVA==
+react-mapbox-gl@^4.8.6:
+ version "4.8.6"
+ resolved "https://registry.yarnpkg.com/react-mapbox-gl/-/react-mapbox-gl-4.8.6.tgz#c3841bac882a297f60efce50cac4060e3a1c3f81"
+ integrity sha512-e6rJ4GFye2AIu10I0a0OfleIWYkigIMIysoSKCA4Wg5YHa52JRHq2F3x0c0cnhqfz1txnUhXUbkx2qqs8B6kKQ==
dependencies:
"@turf/bbox" "4.7.3"
"@turf/helpers" "4.7.3"
@@ -7740,6 +7868,14 @@ read-pkg-up@^1.0.1:
find-up "^1.0.0"
read-pkg "^1.0.0"
+read-pkg-up@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be"
+ integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=
+ dependencies:
+ find-up "^2.0.0"
+ read-pkg "^2.0.0"
+
read-pkg@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28"
@@ -7749,6 +7885,15 @@ read-pkg@^1.0.0:
normalize-package-data "^2.3.2"
path-type "^1.0.0"
+read-pkg@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8"
+ integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=
+ dependencies:
+ load-json-file "^2.0.0"
+ normalize-package-data "^2.3.2"
+ path-type "^2.0.0"
+
"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@~2.3.6:
version "2.3.7"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57"
@@ -7997,7 +8142,7 @@ resolve-url@^0.2.1:
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
-resolve@^1.1.7, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.15.1, resolve@^1.3.2, resolve@^1.8.1:
+resolve@^1.1.7, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.15.1, resolve@^1.17.0, resolve@^1.3.2, resolve@^1.8.1:
version "1.17.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444"
integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==
@@ -8780,6 +8925,11 @@ strip-bom@^2.0.0:
dependencies:
is-utf8 "^0.2.0"
+strip-bom@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
+ integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=
+
strip-eof@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
@@ -8821,6 +8971,13 @@ supercluster@^7.0.0:
dependencies:
kdbush "^3.0.0"
+supercluster@^7.1.0:
+ version "7.1.0"
+ resolved "https://registry.yarnpkg.com/supercluster/-/supercluster-7.1.0.tgz#f0a457426ec0ab95d69c5f03b51e049774b94479"
+ integrity sha512-LDasImUAFMhTqhK+cUXfy9C2KTUqJ3gucLjmNLNFmKWOnDUBxLFLH9oKuXOTCLveecmxh8fbk8kgh6Q0gsfe2w==
+ dependencies:
+ kdbush "^3.0.0"
+
supports-color@6.1.0, supports-color@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3"
@@ -9115,6 +9272,16 @@ ts-pnp@^1.1.6:
resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.2.0.tgz#a500ad084b0798f1c3071af391e65912c86bca92"
integrity sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==
+tsconfig-paths@^3.9.0:
+ version "3.9.0"
+ resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz#098547a6c4448807e8fcb8eae081064ee9a3c90b"
+ integrity sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==
+ dependencies:
+ "@types/json5" "^0.0.29"
+ json5 "^1.0.1"
+ minimist "^1.2.0"
+ strip-bom "^3.0.0"
+
tslib@^1.11.2:
version "1.13.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043"