-
-
Save filipproch/a010f95fcab7a559ab3074c3ebd0e290 to your computer and use it in GitHub Desktop.
map_theme.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<String, dynamic> realingoMapThemeData() { | |
return <String, dynamic>{ | |
'version': 8, | |
'name': 'Basic', | |
'metadata': { | |
'mapbox:autocomposite': false, | |
'mapbox:type': 'template', | |
'openmaptiles:version': '3.x', | |
'maputnik:renderer': 'mbgljs' | |
}, | |
'sources': { | |
'openmaptiles': { | |
'type': 'vector', | |
'tiles': ['https://www.realingo.cz/data/planet/v2/{z}/{x}/{y}.pbf'], | |
'attribution': '<a href=\"https://www.openmaptiles.org/\" rel=\"nofollow\" target=\"_blank\">© OpenMapTiles</a> <a href=\"https://www.openstreetmap.org/copyright\" rel=\"nofollow\" target=\"_blank\">© OpenStreetMap contributors</a>', | |
'maxzoom': 14 | |
}, | |
'pricemap': { | |
'type': 'vector', | |
'tiles': ['https://www.realingo.cz/data/pricemap/v1/{z}/{x}/{y}.pbf'], | |
'maxzoom': 14 | |
} | |
}, | |
'sprite': 'https://www.realingo.cz/static/map/sprite', | |
'glyphs': 'https://www.realingo.cz/maps/fonts/{fontstack}/{range}.pbf', | |
'layers': [ | |
{ | |
'id': 'background', | |
'type': 'background', | |
'layout': {'visibility': 'visible'}, | |
'paint': {'background-color': 'rgba(243, 242, 240, 1)'} | |
}, | |
{ | |
'id': 'landuse-residential', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'landuse', | |
'filter': [ | |
'all', | |
['==', '\$type', 'Polygon'], | |
['in', 'class', 'residential', 'suburb', 'neighbourhood'] | |
], | |
'layout': {'visibility': 'visible'}, | |
'paint': {'fill-color': 'rgba(234, 234, 230, 1)', 'fill-opacity': 0.7} | |
}, | |
{ | |
'id': 'landuse-school', | |
'type': 'fill', | |
'metadata': {'mapbox:group': '1444849388993.3071'}, | |
'source': 'openmaptiles', | |
'source-layer': 'landuse', | |
'minzoom': 15, | |
'filter': ['==', 'class', 'school'], | |
'layout': {'visibility': 'visible'}, | |
'paint': {'fill-color': 'rgba(240, 226, 188, 1)'} | |
}, | |
{ | |
'id': 'landuse-cemetery', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'landuse', | |
'minzoom': 15, | |
'filter': ['all', ['==', 'class', 'cemetery']], | |
'paint': {'fill-color': '#d8ebd2'} | |
}, | |
{ | |
'id': 'landcover_park', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'landcover', | |
'minzoom': 13, | |
'maxzoom': 24, | |
'filter': ['all', ['==', 'class', 'grass'], ['==', 'subclass', 'park']], | |
'layout': {'visibility': 'visible'}, | |
'paint': {'fill-color': '#d8ebd2', 'fill-opacity': 1} | |
}, | |
{ | |
'id': 'landcover_grass', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'landcover', | |
'minzoom': 15, | |
'maxzoom': 24, | |
'filter': ['all', ['==', 'class', 'grass'], ['!=', 'subclass', 'park']], | |
'layout': {'visibility': 'visible'}, | |
'paint': {'fill-color': '#d8ebd2', 'fill-opacity': 1} | |
}, | |
{ | |
'id': 'landcover_wood', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'landcover', | |
'minzoom': 13, | |
'filter': ['==', 'class', 'wood'], | |
'layout': {'visibility': 'visible'}, | |
'paint': { | |
'fill-color': '#d8ebd2', | |
'fill-opacity': {'base': 1, 'stops': [[8, 0.6], [22, 1]]} | |
} | |
}, | |
{ | |
'id': 'landcover_airport', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'aeroway', | |
'filter': ['all', ['==', 'class', 'aerodrome']], | |
'layout': {'visibility': 'visible'}, | |
'paint': {'fill-color': 'rgba(230, 224, 212, 1)', 'fill-opacity': 1} | |
}, | |
{ | |
'id': 'water', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'water', | |
'filter': ['all', ['==', '\$type', 'Polygon']], | |
'layout': {'visibility': 'visible'}, | |
'paint': {'fill-color': 'rgba(140, 203, 247, 1)'} | |
}, | |
{ | |
'id': 'landuse-hospital', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'landuse', | |
'minzoom': 15, | |
'filter': ['all', ['==', 'class', 'hospital']], | |
'layout': {'visibility': 'visible'}, | |
'paint': {'fill-color': 'rgba(240, 204, 204, 0.72)'} | |
}, | |
{ | |
'id': 'building', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'building', | |
'layout': {'visibility': 'visible'}, | |
'paint': { | |
'fill-antialias': true, | |
'fill-color': '#e0dbd6', | |
'fill-opacity': {'base': 1, 'stops': [[13, 0], [15, 1]]}, | |
'fill-outline-color': { | |
'stops': [ | |
[15, 'rgba(212, 177, 146, 0)'], | |
[16, 'rgba(199, 194, 194, 0.5)'] | |
] | |
} | |
} | |
}, | |
{ | |
'id': 'housenumber', | |
'type': 'symbol', | |
'source': 'openmaptiles', | |
'source-layer': 'housenumber', | |
'minzoom': 18, | |
'filter': ['==', '\$type', 'Point'], | |
'layout': { | |
'text-field': '{housenumber}', | |
'text-font': ['Roboto Regular'], | |
'text-size': 10 | |
}, | |
'paint': {'text-color': 'rgba(145, 131, 119, 1)'} | |
}, | |
{ | |
'id': 'highway-minor-casing', | |
'type': 'line', | |
'metadata': {'mapbox:group': '1444849345966.4436'}, | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'minzoom': 0, | |
'filter': [ | |
'all', | |
['==', '\$type', 'LineString'], | |
[ | |
'all', | |
['!=', 'brunnel', 'tunnel'], | |
['in', 'class', 'minor', 'service'] | |
] | |
], | |
'layout': { | |
'line-cap': 'round', | |
'line-join': 'round', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-opacity': {'stops': [[12, 0], [12.5, 1]]}, | |
'line-width': { | |
'base': 1.2, | |
'stops': [[12, 0.5], [13, 1], [14, 4], [20, 15]] | |
}, | |
'line-color': 'rgba(220, 220, 220, 1)' | |
} | |
}, | |
{ | |
'id': 'road_area_pier', | |
'type': 'fill', | |
'metadata': <String, dynamic>{}, | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'filter': ['all', ['==', '\$type', 'Polygon'], ['==', 'class', 'pier']], | |
'layout': {'visibility': 'visible'}, | |
'paint': {'fill-color': 'hsl(47, 26%, 88%)', 'fill-antialias': true} | |
}, | |
{ | |
'id': 'road_pier', | |
'type': 'line', | |
'metadata': <String, dynamic>{}, | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'filter': ['all', ['==', '\$type', 'LineString'], ['in', 'class', 'pier']], | |
'layout': { | |
'line-cap': 'round', | |
'line-join': 'round', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-color': 'hsl(47, 26%, 88%)', | |
'line-width': {'base': 1.2, 'stops': [[15, 1], [17, 4]]} | |
} | |
}, | |
{ | |
'id': 'road_bridge_area', | |
'type': 'fill', | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'filter': [ | |
'all', | |
['==', '\$type', 'Polygon'], | |
['in', 'brunnel', 'bridge'] | |
], | |
'layout': {'visibility': 'visible'}, | |
'paint': {'fill-color': 'hsl(47, 26%, 88%)', 'fill-opacity': 0.5} | |
}, | |
{ | |
'id': 'road_path', | |
'type': 'line', | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'filter': [ | |
'all', | |
['==', '\$type', 'LineString'], | |
['in', 'class', 'path', 'track'] | |
], | |
'layout': { | |
'line-cap': 'square', | |
'line-join': 'bevel', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-color': 'hsl(0, 0%, 97%)', | |
'line-dasharray': [1, 1], | |
'line-width': {'base': 1.55, 'stops': [[4, 0.25], [20, 10]]} | |
} | |
}, | |
{ | |
'id': 'road_minor', | |
'type': 'line', | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'minzoom': 13, | |
'filter': [ | |
'all', | |
['==', '\$type', 'LineString'], | |
['in', 'class', 'minor', 'service'] | |
], | |
'layout': { | |
'line-cap': 'round', | |
'line-join': 'round', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-color': 'hsl(0, 0%, 97%)', | |
'line-width': {'base': 1.55, 'stops': [[4, 0.25], [20, 30]]} | |
} | |
}, | |
{ | |
'id': 'tunnel', | |
'type': 'line', | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'filter': [ | |
'all', | |
['==', '\$type', 'LineString'], | |
['==', 'brunnel', 'tunnel'], | |
[ | |
'in', | |
'class', | |
'primary', | |
'secondary', | |
'tertiary', | |
'trunk', | |
'minor_road' | |
] | |
], | |
'layout': { | |
'line-cap': 'butt', | |
'line-join': 'miter', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-color': '#fff', | |
'line-dasharray': [0.28, 0.14], | |
'line-width': {'base': 1.4, 'stops': [[6, 0.5], [20, 30]]} | |
} | |
}, | |
{ | |
'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-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': 1, | |
'line-width': {'base': 1.5, 'stops': [[11, 4], [17, 50]]} | |
} | |
}, | |
{ | |
'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': 'rgba(219, 224, 224, 1)', | |
'line-opacity': 1, | |
'line-width': {'base': 1.2, 'stops': [[8, 3.5], [20, 17]]} | |
} | |
}, | |
{ | |
'id': 'highway-trunk-casing', | |
'type': 'line', | |
'metadata': {'mapbox:group': '1444849345966.4436'}, | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'minzoom': 6, | |
'filter': [ | |
'all', | |
['!in', 'brunnel', 'tunnel'], | |
['in', 'class', 'trunk', 'primary'] | |
], | |
'layout': { | |
'line-cap': 'butt', | |
'line-join': 'round', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-color': 'rgba(224, 193, 150, 1)', | |
'line-opacity': {'stops': [[5, 0], [6, 1]]}, | |
'line-width': {'base': 1.2, 'stops': [[6, 1], [10, 4.5], [20, 22]]} | |
} | |
}, | |
{ | |
'id': 'highway-motorway-casing', | |
'type': 'line', | |
'metadata': {'mapbox:group': '1444849345966.4436'}, | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'minzoom': 6, | |
'filter': [ | |
'all', | |
['!in', 'brunnel', 'bridge', 'tunnel'], | |
['==', 'class', 'motorway'] | |
], | |
'layout': { | |
'line-cap': 'butt', | |
'line-join': 'round', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-color': 'rgba(226, 224, 176, 1)', | |
'line-opacity': {'stops': [[4, 0], [5, 1]]}, | |
'line-width': {'base': 1.2, 'stops': [[6, 4], [10, 4.5], [20, 22]]} | |
} | |
}, | |
{ | |
'id': 'road_secondary_tertiary', | |
'type': 'line', | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'filter': [ | |
'all', | |
['==', '\$type', 'LineString'], | |
['in', 'class', 'secondary', 'tertiary'] | |
], | |
'layout': { | |
'line-cap': 'round', | |
'line-join': 'round', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-color': '#fff', | |
'line-width': {'base': 1.4, 'stops': [[6, 1.6], [20, 20]]} | |
} | |
}, | |
{ | |
'id': 'road_trunk_primary', | |
'type': 'line', | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'filter': [ | |
'all', | |
['==', '\$type', 'LineString'], | |
['in', 'class', 'trunk', 'primary'], | |
['!=', 'brunnel', 'tunnel'] | |
], | |
'layout': { | |
'line-cap': 'round', | |
'line-join': 'round', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-color': 'rgba(255, 238, 192, 1)', | |
'line-width': {'base': 1.4, 'stops': [[6, 1], [10, 3.5], [20, 30]]}, | |
'line-gap-width': 0 | |
} | |
}, | |
{ | |
'id': 'road_motorway', | |
'type': 'line', | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'filter': [ | |
'all', | |
['==', '\$type', 'LineString'], | |
['==', 'class', 'motorway'] | |
], | |
'layout': { | |
'line-cap': 'round', | |
'line-join': 'round', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'line-color': 'rgba(255, 238, 192, 1)', | |
'line-offset': 0, | |
'line-width': {'base': 1.4, 'stops': [[6, 2], [10, 3.5], [20, 30]]} | |
} | |
}, | |
{ | |
'id': 'railway', | |
'type': 'line', | |
'source': 'openmaptiles', | |
'source-layer': 'transportation', | |
'filter': ['all', ['==', 'class', 'rail'], ['!=', 'brunnel', 'tunnel']], | |
'layout': {'visibility': 'visible'}, | |
'paint': { | |
'line-color': 'hsl(34, 12%, 66%)', | |
'line-opacity': {'base': 1, 'stops': [[11, 0], [16, 1]]}, | |
'line-width': 1.8 | |
} | |
}, | |
{ | |
'id': 'poi_z16', | |
'type': 'symbol', | |
'metadata': <String, dynamic>{}, | |
'source': 'openmaptiles', | |
'source-layer': 'poi', | |
'minzoom': 16, | |
'filter': [ | |
'all', | |
['==', '\$type', 'Point'], | |
['>=', 'rank', 20], | |
['any', ['!has', 'level'], ['==', 'level', 0]], | |
['!=', 'subclass', 'parking'] | |
], | |
'layout': { | |
'icon-image': '{class}_11', | |
'text-anchor': 'top', | |
'text-field': '{name:latin}\n{name:nonlatin}', | |
'text-font': ['Roboto Regular'], | |
'text-max-width': 9, | |
'text-offset': [0, 0.6], | |
'text-padding': 2, | |
'text-size': 12, | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'text-color': 'rgba(111, 111, 111, 1)', | |
'text-halo-blur': 0.5, | |
'text-halo-color': 'rgb(255, 255, 255)', | |
'text-halo-width': 1 | |
} | |
}, | |
{ | |
'id': 'poi_z15', | |
'type': 'symbol', | |
'metadata': <String, dynamic>{}, | |
'source': 'openmaptiles', | |
'source-layer': 'poi', | |
'minzoom': 15, | |
'filter': [ | |
'all', | |
['==', '\$type', 'Point'], | |
['>=', 'rank', 7], | |
['<', 'rank', 20], | |
['any', ['!has', 'level'], ['==', 'level', 0]], | |
['!=', 'subclass', 'parking'] | |
], | |
'layout': { | |
'icon-image': '{class}_11', | |
'text-anchor': 'top', | |
'text-field': '{name:latin}\n{name:nonlatin}', | |
'text-font': ['Roboto Regular'], | |
'text-max-width': 9, | |
'text-offset': [0, 0.6], | |
'text-padding': 2, | |
'text-size': 12, | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'text-color': 'rgb(133, 133, 133)', | |
'text-halo-blur': 0.5, | |
'text-halo-color': 'rgb(255, 255, 255)', | |
'text-halo-width': 1 | |
} | |
}, | |
{ | |
'id': 'poi_z14', | |
'type': 'symbol', | |
'metadata': <String, dynamic>{}, | |
'source': 'openmaptiles', | |
'source-layer': 'poi', | |
'minzoom': 14.2, | |
'filter': [ | |
'all', | |
['==', '\$type', 'Point'], | |
['any', ['<', 'rank', 7]], | |
['any', ['!has', 'level'], ['==', 'level', 0]] | |
], | |
'layout': { | |
'icon-image': '{class}_11', | |
'icon-size': 0.9, | |
'text-anchor': 'top', | |
'text-field': '{name:latin}\n{name:nonlatin}', | |
'text-font': ['Roboto Regular'], | |
'text-max-width': 9, | |
'text-offset': [0, 0.6], | |
'text-padding': 2, | |
'text-size': 12, | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'text-color': 'rgb(133, 133, 133)', | |
'text-halo-blur': 0.5, | |
'text-halo-color': 'rgb(255, 255, 255)', | |
'text-halo-width': 1 | |
} | |
}, | |
{ | |
'id': 'poi_transit', | |
'type': 'symbol', | |
'metadata': <String, dynamic>{}, | |
'source': 'openmaptiles', | |
'source-layer': 'poi', | |
'minzoom': 15, | |
'filter': [ | |
'all', | |
['in', 'class', 'bus', 'railway'], | |
[ | |
'in', | |
'subclass', | |
'station', | |
'halt', | |
'tram_stop', | |
'bus_station' | |
] | |
], | |
'layout': { | |
'icon-image': '{class}_11', | |
'icon-size': 0.9, | |
'text-anchor': 'left', | |
'text-field': '{name:latin}\n{name:nonlatin}', | |
'text-font': ['Roboto Regular'], | |
'text-max-width': 9, | |
'text-offset': [0.9, 0], | |
'text-padding': 2, | |
'text-size': 12, | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'text-color': 'rgb(133, 133, 133)', | |
'text-halo-blur': 0.5, | |
'text-halo-color': 'rgb(255, 255, 255)', | |
'text-halo-width': 1 | |
} | |
}, | |
{ | |
'id': 'admin_country', | |
'type': 'line', | |
'source': 'openmaptiles', | |
'source-layer': 'boundary', | |
'filter': [ | |
'all', | |
['<=', 'admin_level', 2], | |
['==', '\$type', 'LineString'], | |
['!=', 'maritime', 1] | |
], | |
'layout': {'line-cap': 'round', 'line-join': 'round'}, | |
'paint': { | |
'line-color': 'hsl(0, 0%, 60%)', | |
'line-width': {'base': 1.3, 'stops': [[3, 0.5], [22, 15]]} | |
} | |
}, | |
{ | |
'id': 'airport-label', | |
'type': 'symbol', | |
'source': 'openmaptiles', | |
'source-layer': 'aerodrome_label', | |
'minzoom': 10, | |
'filter': ['all', ['has', 'iata']], | |
'layout': { | |
'icon-size': 1, | |
'text-anchor': 'top', | |
'text-field': '{name:latin}\n{name:nonlatin}', | |
'text-font': ['Roboto Regular'], | |
'text-max-width': 8, | |
'text-offset': [0, 0.5], | |
'text-size': 11, | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'text-color': '#666', | |
'text-halo-blur': 1, | |
'text-halo-color': 'rgba(255,255,255,0.75)', | |
'text-halo-width': 1 | |
} | |
}, | |
{ | |
'id': 'road_major_label', | |
'type': 'symbol', | |
'source': 'openmaptiles', | |
'source-layer': 'transportation_name', | |
'filter': ['==', '\$type', 'LineString'], | |
'layout': { | |
'symbol-placement': 'line', | |
'text-field': '{name:latin} {name:nonlatin}', | |
'text-font': ['Roboto Regular'], | |
'text-letter-spacing': 0.1, | |
'text-rotation-alignment': 'map', | |
'text-size': {'base': 1.4, 'stops': [[10, 8], [20, 14]]}, | |
'text-transform': 'uppercase', | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'text-color': '#000', | |
'text-halo-color': 'hsl(0, 0%, 100%)', | |
'text-halo-width': 2 | |
} | |
}, | |
{ | |
'id': 'place_label_other', | |
'type': 'symbol', | |
'source': 'openmaptiles', | |
'source-layer': 'place', | |
'minzoom': 7, | |
'filter': [ | |
'all', | |
['==', '\$type', 'Point'], | |
['!in', 'class', 'city', 'state', 'country', 'continent'] | |
], | |
'layout': { | |
'text-anchor': 'center', | |
'text-field': '{name:latin}\n{name:nonlatin}', | |
'text-font': ['Roboto Regular'], | |
'text-max-width': 6, | |
'text-size': {'stops': [[6, 10], [12, 14]]}, | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'text-color': 'hsl(0, 0%, 25%)', | |
'text-halo-blur': 0, | |
'text-halo-color': 'hsl(0, 0%, 100%)', | |
'text-halo-width': 2 | |
} | |
}, | |
{ | |
'id': 'subway', | |
'type': 'symbol', | |
'metadata': <String, dynamic>{}, | |
'source': 'openmaptiles', | |
'source-layer': 'subway', | |
'minzoom': 14, | |
'filter': [ | |
'all', | |
['==', '\$type', 'Point'], | |
['==', 'class', 'subway_station'] | |
], | |
'layout': { | |
'icon-image': [ | |
'match', | |
['get', 'subway_line'], | |
'A', | |
'metro_green', | |
'B', | |
'metro_yellow', | |
'C', | |
'metro_red', | |
'AB', | |
'metro_green_yellow', | |
'AC', | |
'metro_red_green', | |
'metro_red_yellow' | |
], | |
'text-anchor': 'top', | |
'text-field': '{name}', | |
'text-font': ['Roboto Regular'], | |
'text-max-width': 9, | |
'text-offset': [0, 0.7], | |
'text-padding': 2, | |
'text-size': 12, | |
'visibility': 'visible', | |
'icon-allow-overlap': true, | |
'icon-ignore-placement': true | |
}, | |
'paint': { | |
'text-color': 'rgba(60, 57, 57, 1)', | |
'text-halo-blur': 0.5, | |
'text-halo-color': 'rgb(255, 255, 255)', | |
'text-halo-width': 1 | |
} | |
} | |
, | |
{ | |
'id': 'place_label_city', | |
'type': 'symbol', | |
'source': 'openmaptiles', | |
'source-layer': 'place', | |
'maxzoom': 16, | |
'filter': ['all', ['==', '\$type', 'Point'], ['==', 'class', 'city']], | |
'layout': { | |
'text-field': '{name:latin}\n{name:nonlatin}', | |
'text-font': ['Roboto Regular'], | |
'text-max-width': 10, | |
'text-size': {'stops': [[3, 12], [8, 16]]}, | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'text-color': 'rgba(47, 47, 47, 1)', | |
'text-halo-blur': 0, | |
'text-halo-color': 'hsla(0, 0%, 100%, 0.75)', | |
'text-halo-width': 2 | |
} | |
}, | |
{ | |
'id': 'country_label', | |
'type': 'symbol', | |
'source': 'openmaptiles', | |
'source-layer': 'place', | |
'maxzoom': 6, | |
'filter': [ | |
'all', | |
['==', '\$type', 'Point'], | |
['==', 'class', 'country'], | |
['has', 'iso_a2'] | |
], | |
'layout': { | |
'text-field': '{name:latin}', | |
'text-font': ['Roboto Regular'], | |
'text-max-width': 10, | |
'text-size': {'stops': [[3, 12], [8, 22]]}, | |
'visibility': 'visible' | |
}, | |
'paint': { | |
'text-color': 'hsl(0, 0%, 13%)', | |
'text-halo-blur': 0, | |
'text-halo-color': 'rgba(255,255,255,0.75)', | |
'text-halo-width': 2 | |
} | |
}, | |
/* { | |
'id': 'pm-flats-high', | |
'type': 'fill', | |
'source': 'pricemap', | |
'source-layer': 'pricemapsellflatshigh', | |
'minzoom': 10, | |
'maxzoom': 24, | |
'layout': {'visibility': 'none'}, | |
'paint': { | |
'fill-color': [ | |
'match', | |
['get', 'rank'], | |
8, | |
'#E11546', | |
7, | |
'#FF6711', | |
6, | |
'#FFB627', | |
5, | |
'#F4DC05', | |
4, | |
'#B7E1FF', | |
3, | |
'#6AB9F2', | |
2, | |
'#378EF4', | |
1, | |
'#0117DA', | |
'black' | |
], | |
'fill-opacity': 0.45, | |
'fill-antialias': false | |
} | |
}, | |
{ | |
'id': 'pm-flats-medium', | |
'type': 'fill', | |
'source': 'pricemap', | |
'source-layer': 'pricemapsellflatsmedium', | |
'minzoom': 0, | |
'maxzoom': 10, | |
'layout': {'visibility': 'none'}, | |
'paint': { | |
'fill-color': [ | |
'match', | |
['get', 'rank'], | |
8, | |
'#E11546', | |
7, | |
'#FF6711', | |
6, | |
'#FFB627', | |
5, | |
'#F4DC05', | |
4, | |
'#B7E1FF', | |
3, | |
'#6AB9F2', | |
2, | |
'#378EF4', | |
1, | |
'#0117DA', | |
'black' | |
], | |
'fill-opacity': 0.45, | |
'fill-antialias': false | |
} | |
}, | |
{ | |
'id': 'pm-houses-high', | |
'type': 'fill', | |
'source': 'pricemap', | |
'source-layer': 'pricemapsellhouseshigh', | |
'minzoom': 10, | |
'maxzoom': 24, | |
'layout': {'visibility': 'none'}, | |
'paint': { | |
'fill-color': [ | |
'match', | |
['get', 'rank'], | |
8, | |
'#E11546', | |
7, | |
'#FF6711', | |
6, | |
'#FFB627', | |
5, | |
'#F4DC05', | |
4, | |
'#B7E1FF', | |
3, | |
'#6AB9F2', | |
2, | |
'#378EF4', | |
1, | |
'#0117DA', | |
'black' | |
], | |
'fill-opacity': 0.45, | |
'fill-antialias': false | |
} | |
}, | |
{ | |
'id': 'pm-houses-medium', | |
'type': 'fill', | |
'source': 'pricemap', | |
'source-layer': 'pricemapsellhousesmedium', | |
'minzoom': 0, | |
'maxzoom': 10, | |
'layout': {'visibility': 'none'}, | |
'paint': { | |
'fill-color': [ | |
'match', | |
['get', 'rank'], | |
8, | |
'#E11546', | |
7, | |
'#FF6711', | |
6, | |
'#FFB627', | |
5, | |
'#F4DC05', | |
4, | |
'#B7E1FF', | |
3, | |
'#6AB9F2', | |
2, | |
'#378EF4', | |
1, | |
'#0117DA', | |
'black' | |
], | |
'fill-opacity': 0.45, | |
'fill-antialias': false | |
} | |
} */ | |
], | |
'id': 'basic', | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment