@element-editor/adapter-maplibre 0.0.0-stage → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +119 -0
- package/LICENSE +21 -0
- package/README.md +82 -2
- package/basemaps/sprite.json +1 -0
- package/basemaps/sprite.png +0 -0
- package/basemaps/sprite@2x.json +1 -0
- package/basemaps/sprite@2x.png +0 -0
- package/basemaps/thumbs/dark.webp +0 -0
- package/basemaps/thumbs/light.webp +0 -0
- package/basemaps/thumbs/osm.webp +0 -0
- package/basemaps/thumbs/streets.webp +0 -0
- package/basemaps/thumbs/terrain.webp +0 -0
- package/dist/adapter-maplibre.css +1 -0
- package/dist/basemapIds-2GdXIJS1.cjs +1 -0
- package/dist/basemapIds-CVTxeXkr.js +11 -0
- package/dist/basemaps.cjs +1 -0
- package/dist/basemaps.d.cts +2 -0
- package/dist/basemaps.d.ts +2 -0
- package/dist/basemaps.es.js +10 -0
- package/dist/catalog-Cnqi23GZ.cjs +1 -0
- package/dist/catalog-gI-xABuu.js +10 -0
- package/dist/dark-C5d5FijX.cjs +1 -0
- package/dist/dark-CcJT_yHE.js +13 -0
- package/dist/index.cjs +26 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +3792 -0
- package/dist/light-Cf5tUOoP.js +13 -0
- package/dist/light-DCtd1z4V.cjs +1 -0
- package/dist/src/BasemapControl.d.cts +47 -0
- package/dist/src/BasemapControl.d.ts +47 -0
- package/dist/src/ElementEditorControls.d.cts +113 -0
- package/dist/src/ElementEditorControls.d.ts +113 -0
- package/dist/src/basemapIds.d.cts +10 -0
- package/dist/src/basemapIds.d.ts +10 -0
- package/dist/src/basemaps/catalog.d.cts +7 -0
- package/dist/src/basemaps/catalog.d.ts +7 -0
- package/dist/src/basemaps/index.d.cts +3 -0
- package/dist/src/basemaps/index.d.ts +3 -0
- package/dist/src/basemaps/style.d.cts +61 -0
- package/dist/src/basemaps/style.d.ts +61 -0
- package/dist/src/components/BoundaryLayer.d.cts +11 -0
- package/dist/src/components/BoundaryLayer.d.ts +11 -0
- package/dist/src/components/BoxSelectHandler.d.cts +13 -0
- package/dist/src/components/BoxSelectHandler.d.ts +13 -0
- package/dist/src/components/DrawingLayer.d.cts +8 -0
- package/dist/src/components/DrawingLayer.d.ts +8 -0
- package/dist/src/components/DrawingPreviewLayer.d.cts +8 -0
- package/dist/src/components/DrawingPreviewLayer.d.ts +8 -0
- package/dist/src/components/FeatureInteractionLayer.d.cts +8 -0
- package/dist/src/components/FeatureInteractionLayer.d.ts +8 -0
- package/dist/src/components/FeatureLayer.d.cts +15 -0
- package/dist/src/components/FeatureLayer.d.ts +15 -0
- package/dist/src/components/GeometryProcessingPreview.d.cts +8 -0
- package/dist/src/components/GeometryProcessingPreview.d.ts +8 -0
- package/dist/src/components/MeasurePreviewLayer.d.cts +9 -0
- package/dist/src/components/MeasurePreviewLayer.d.ts +9 -0
- package/dist/src/components/MeasurementTooltip.d.cts +6 -0
- package/dist/src/components/MeasurementTooltip.d.ts +6 -0
- package/dist/src/components/OsmTraceHandler.d.cts +8 -0
- package/dist/src/components/OsmTraceHandler.d.ts +8 -0
- package/dist/src/components/PreciseCoordsOverlay.d.cts +10 -0
- package/dist/src/components/PreciseCoordsOverlay.d.ts +10 -0
- package/dist/src/components/SnapController.d.cts +9 -0
- package/dist/src/components/SnapController.d.ts +9 -0
- package/dist/src/components/TextEditOverlay.d.cts +9 -0
- package/dist/src/components/TextEditOverlay.d.ts +9 -0
- package/dist/src/components/TransformControls.d.cts +8 -0
- package/dist/src/components/TransformControls.d.ts +8 -0
- package/dist/src/components/VertexEditor.d.cts +15 -0
- package/dist/src/components/VertexEditor.d.ts +15 -0
- package/dist/src/contexts/FeatureStyleContext.d.cts +9 -0
- package/dist/src/contexts/FeatureStyleContext.d.ts +9 -0
- package/dist/src/contexts/MapControllerContext.d.cts +2 -0
- package/dist/src/contexts/MapControllerContext.d.ts +2 -0
- package/dist/src/contexts/StyleEpochContext.d.cts +7 -0
- package/dist/src/contexts/StyleEpochContext.d.ts +7 -0
- package/dist/src/elementLayers.d.cts +17 -0
- package/dist/src/elementLayers.d.ts +17 -0
- package/dist/src/hooks/lastPointer.d.cts +18 -0
- package/dist/src/hooks/lastPointer.d.ts +18 -0
- package/dist/src/hooks/useCursorWhileMode.d.cts +20 -0
- package/dist/src/hooks/useCursorWhileMode.d.ts +20 -0
- package/dist/src/hooks/useModifierDragCursor.d.cts +8 -0
- package/dist/src/hooks/useModifierDragCursor.d.ts +8 -0
- package/dist/src/index.d.cts +30 -0
- package/dist/src/index.d.ts +30 -0
- package/dist/src/store/StoreContext.d.cts +1 -0
- package/dist/src/store/StoreContext.d.ts +1 -0
- package/dist/src/utils/accentPaint.d.cts +13 -0
- package/dist/src/utils/accentPaint.d.ts +13 -0
- package/dist/src/utils/boxSelect.d.cts +4 -0
- package/dist/src/utils/boxSelect.d.ts +4 -0
- package/dist/src/utils/darkStyle.d.cts +8 -0
- package/dist/src/utils/darkStyle.d.ts +8 -0
- package/dist/src/utils/featureTooltip.d.cts +16 -0
- package/dist/src/utils/featureTooltip.d.ts +16 -0
- package/dist/src/utils/findPartAtPoint.d.cts +2 -0
- package/dist/src/utils/findPartAtPoint.d.ts +2 -0
- package/dist/src/utils/freehandCommitFlag.d.cts +2 -0
- package/dist/src/utils/freehandCommitFlag.d.ts +2 -0
- package/dist/src/utils/freshFeature.d.cts +3 -0
- package/dist/src/utils/freshFeature.d.ts +3 -0
- package/dist/src/utils/geojson.d.cts +10 -0
- package/dist/src/utils/geojson.d.ts +10 -0
- package/dist/src/utils/liveFeatureSource.d.cts +6 -0
- package/dist/src/utils/liveFeatureSource.d.ts +6 -0
- package/dist/src/utils/measureClickFlag.d.cts +2 -0
- package/dist/src/utils/measureClickFlag.d.ts +2 -0
- package/dist/src/utils/modifierDragFlag.d.cts +2 -0
- package/dist/src/utils/modifierDragFlag.d.ts +2 -0
- package/dist/src/utils/rafThrottle.d.cts +11 -0
- package/dist/src/utils/rafThrottle.d.ts +11 -0
- package/dist/src/utils/snapping.d.cts +25 -0
- package/dist/src/utils/snapping.d.ts +25 -0
- package/dist/src/utils/toolCursor.d.cts +3 -0
- package/dist/src/utils/toolCursor.d.ts +3 -0
- package/dist/streets-Bakdn2nG.cjs +1 -0
- package/dist/streets-D0l2l7xn.js +13 -0
- package/dist/style-Db7kunP9.cjs +1 -0
- package/dist/style-Di9c4u-c.js +75 -0
- package/dist/terrain-CUJe0pn4.cjs +1 -0
- package/dist/terrain-CZOhjFPd.js +13 -0
- package/package.json +128 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const r = 8, e = "Lab Terrain", t = { openmaptiles: { type: "vector", url: "https://tiles.openfreemap.org/planet" }, "terrain-dem": { type: "raster-dem", tiles: ["https://tiles.mapterhorn.com/{z}/{x}/{y}.webp"], tileSize: 512, maxzoom: 12, encoding: "terrarium", attribution: '<a href="https://mapterhorn.com/attribution" target="_blank">© Mapterhorn</a>' } }, a = /* @__PURE__ */ JSON.parse('[{"id":"background","type":"background","paint":{"background-color":"#fef6ee"}},{"id":"landcover","type":"fill","source":"openmaptiles","source-layer":"landcover","filter":["match",["get","class"],["wood","grass","sand","ice","wetland","rock"],true,false],"paint":{"fill-antialias":false,"fill-color":["match",["get","class"],"wood","#cae8ac","sand","#fcf1dc","ice","#ffffff","rock","#efebe4","grass",["match",["get","subclass"],["park","garden","village_green","recreation_ground","golf_course","playground"],"#d3ebbc","scrub","#dff3d6","#e8eed7"],"#e8eed7"],"fill-opacity":["interpolate",["linear"],["zoom"],5,["match",["get","class"],"wood",0.6,["sand","ice"],1,"rock",0.6,0.4],16,["match",["get","class"],"wood",0.6,["sand","ice","rock"],1,["match",["get","subclass"],["park","garden","village_green","recreation_ground","golf_course","playground"],1,0.5]]]}},{"id":"park","type":"fill","source":"openmaptiles","source-layer":"park","filter":["==",["get","class"],"national_park"],"paint":{"fill-color":"#d3ebbc","fill-opacity":["interpolate",["linear"],["zoom"],6,0.25,12,0.4]}},{"id":"landuse","type":"fill","source":"openmaptiles","source-layer":"landuse","filter":["match",["get","class"],["cemetery","hospital","school","university","college","kindergarten","industrial","railway","garages","pitch","stadium","playground","zoo"],true,false],"paint":{"fill-color":["match",["get","class"],"cemetery","#e0e4dd","hospital","#ffddee",["school","university","college","kindergarten"],"#f0e8f8",["industrial","railway","garages"],"#eeeded",["pitch","stadium","playground"],"#e5ecea","#d3ebbc"]}},{"id":"landuse-pitch-outline","type":"line","source":"openmaptiles","source-layer":"landuse","minzoom":13,"filter":["==",["get","class"],"pitch"],"paint":{"line-color":"#ffffff","line-opacity":["interpolate",["linear"],["zoom"],13,0.5,14,1],"line-width":["interpolate",["linear"],["zoom"],13,0.2,15,1]}},{"id":"hillshade","type":"hillshade","paint":{"hillshade-method":"igor","hillshade-shadow-color":"rgba(73, 70, 23, 0.55)","hillshade-highlight-color":"rgba(255, 255, 255, 0.5)","hillshade-exaggeration":["interpolate",["linear"],["zoom"],6,0.55,12,0.45,16,0.2]},"source":"terrain-dem"},{"id":"aeroway-area","type":"fill","source":"openmaptiles","source-layer":"aeroway","minzoom":11,"filter":["all",["==",["geometry-type"],"Polygon"],["!=",["get","class"],"aerodrome"]],"paint":{"fill-color":"#e3dfe6"}},{"id":"aeroway-line","type":"line","source":"openmaptiles","source-layer":"aeroway","minzoom":9,"filter":["==",["geometry-type"],"LineString"],"paint":{"line-color":"#c6c4c3","line-width":["interpolate",["exponential",1.5],["zoom"],9,["match",["get","class"],"runway",1,0.5],18,["match",["get","class"],"runway",80,20]]}},{"id":"waterway","type":"line","source":"openmaptiles","source-layer":"waterway","filter":["!=",["get","brunnel"],"tunnel"],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#90d2f5","line-width":["interpolate",["exponential",1.3],["zoom"],8,["match",["get","class"],["river","canal"],0.6,0],13,["match",["get","class"],["river","canal"],1.6,0.4],20,["match",["get","class"],["river","canal"],8,3]]}},{"id":"water-shadow","type":"fill","source":"openmaptiles","source-layer":"water","filter":["!=",["get","brunnel"],"tunnel"],"paint":{"fill-color":"#71c7f5","fill-translate-anchor":"viewport","fill-translate":["interpolate",["exponential",1.5],["zoom"],7,["literal",[0,0]],9,["literal",[-0.2,-0.2]],16,["literal",[-1.5,-1.5]]]}},{"id":"water","type":"fill","source":"openmaptiles","source-layer":"water","filter":["!=",["get","brunnel"],"tunnel"],"paint":{"fill-color":"#90d2f5"}},{"id":"road-area","type":"fill","source":"openmaptiles","source-layer":"transportation","minzoom":14,"filter":["all",["==",["geometry-type"],"Polygon"],["match",["get","class"],["path","minor","service","pier","bridge"],true,false]],"paint":{"fill-color":["match",["get","class"],["pier","bridge"],"#fef6ee","#ffffff"],"fill-opacity":["match",["get","class"],["pier","bridge"],1,0.8]}},{"id":"tunnel-road-casing","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"tunnel"],["any",["all",["match",["get","class"],["motorway","trunk"],true,false],[">=",["zoom"],5]],["all",["==",["get","class"],"primary"],[">=",["zoom"],7]],["all",["match",["get","class"],["secondary","tertiary"],true,false],[">=",["zoom"],9]],["all",["==",["get","class"],"minor"],[">=",["zoom"],12]],["all",["match",["get","class"],["service","busway"],true,false],[">=",["zoom"],13]],["all",["==",["get","class"],"path"],["match",["get","subclass"],["pedestrian"],true,false],[">=",["zoom"],14]]]],"layout":{"line-cap":"round","line-join":"round","line-sort-key":["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6,7],"trunk",5,"primary",4,["secondary","tertiary"],3,"minor",2,["service","busway"],1,"path",0,0]},"paint":{"line-color":["match",["get","class"],"motorway","#ffffff","trunk","#ffffff","primary","#d6d9e6",["secondary","tertiary"],"#cfcdca","minor","#cfcdca",["service","busway"],"#cfcdca","path","#cfcdca","#cfcdca"],"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"motorway",0,"trunk",0,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0,"path",2,0],7,["match",["get","class"],"motorway",0,"trunk",0,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0,"path",2,0],9,["match",["get","class"],"motorway",0,"trunk",0,"primary",0.792,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0,"path",2,0],11,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0,0.3],"trunk",0.3,"primary",0.886,["secondary","tertiary"],0.55,"minor",0.5,["service","busway"],0,"path",2,0],12,["match",["get","class"],"motorway",0.75,"trunk",0.75,"primary",0.97,["secondary","tertiary"],0.595,"minor",0.5,["service","busway"],0,"path",2,0],14,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.813,1.135],"trunk",1.135,"primary",1.287,["secondary","tertiary"],0.764,"minor",0.68,["service","busway"],0,"path",2,0],16,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.956,2],"trunk",2,"primary",2,["secondary","tertiary"],1.144,"minor",1.086,["service","busway"],0.241,"path",5.692,0],18,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],1.277,2],"trunk",2,"primary",2,["secondary","tertiary"],2,"minor",2,["service","busway"],0.782,"path",14,0],20,["match",["get","class"],"motorway",2,"trunk",2,"primary",2,["secondary","tertiary"],2,"minor",2,["service","busway"],2,"path",14,0]],"line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.75],"trunk",0.75,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],7,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.952],"trunk",0.952,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],9,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,1.406],"trunk",1.406,"primary",1.207,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],11,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,2.427],"trunk",2.427,"primary",2.235,["secondary","tertiary"],1.351,"minor",0.5,["service","busway"],0.5,"path",1,0],12,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,3.346],"trunk",3.346,"primary",3.16,["secondary","tertiary"],2.117,"minor",0.5,["service","busway"],0.5,"path",1,0],14,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],2,6.793],"trunk",6.793,"primary",6.63,["secondary","tertiary"],4.991,"minor",2.605,["service","busway"],0.5,"path",1,0],16,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6.923,14.549],"trunk",14.549,"primary",14.436,["secondary","tertiary"],11.455,"minor",7.342,["service","busway"],4.038,"path",4.385,0],18,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0],20,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0]],"line-opacity":["interpolate",["linear"],["zoom"],7,["match",["get","class"],"motorway",1,"trunk",1,"primary",0.25,["secondary","tertiary"],0,"minor",0,["service","busway"],1,"path",0,1],9,["match",["get","class"],"motorway",1,"trunk",1,"primary",0.625,["secondary","tertiary"],0,"minor",0,["service","busway"],1,"path",0,1],11,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",0,["service","busway"],1,"path",0,1],12,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",0,["service","busway"],1,"path",0,1],14,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",1,["service","busway"],1,"path",0,1],17,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",1,["service","busway"],1,"path",1,1]],"line-dasharray":[3,3]}},{"id":"tunnel-path","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":14,"filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"tunnel"],["all",["match",["get","class"],["path","track"],true,false],["!=",["get","subclass"],"pedestrian"]]],"paint":{"line-color":"#808080","line-opacity":["interpolate",["linear"],["zoom"],14,0,15,0.25],"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,22,4],"line-dasharray":["step",["zoom"],["literal",[2,1]],15,["literal",[2.33,1.2]],16,["literal",[2.66,1.4]],17,["literal",[3,1.6]],18,["literal",[3.33,1.8]]]}},{"id":"tunnel-road","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"tunnel"],["any",["all",["match",["get","class"],["motorway","trunk"],true,false],[">=",["zoom"],5]],["all",["==",["get","class"],"primary"],[">=",["zoom"],7]],["all",["match",["get","class"],["secondary","tertiary"],true,false],[">=",["zoom"],9]],["all",["==",["get","class"],"minor"],[">=",["zoom"],12]],["all",["match",["get","class"],["service","busway"],true,false],[">=",["zoom"],13]],["all",["==",["get","class"],"path"],["match",["get","subclass"],["pedestrian"],true,false],[">=",["zoom"],14]]]],"layout":{"line-cap":"round","line-join":"round","line-sort-key":["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6,7],"trunk",5,"primary",4,["secondary","tertiary"],3,"minor",2,["service","busway"],1,"path",0,0]},"paint":{"line-color":["match",["get","class"],"motorway","#f8e0c9","trunk","#fff4c6","primary","#ffffff",["secondary","tertiary"],"#ffffff","minor","#ffffff",["service","busway"],"#ffffff","path","#ffffff","#ffffff"],"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.75],"trunk",0.75,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],7,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.952],"trunk",0.952,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],9,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,1.406],"trunk",1.406,"primary",1.207,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],11,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,2.427],"trunk",2.427,"primary",2.235,["secondary","tertiary"],1.351,"minor",0.5,["service","busway"],0.5,"path",1,0],12,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,3.346],"trunk",3.346,"primary",3.16,["secondary","tertiary"],2.117,"minor",0.5,["service","busway"],0.5,"path",1,0],14,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],2,6.793],"trunk",6.793,"primary",6.63,["secondary","tertiary"],4.991,"minor",2.605,["service","busway"],0.5,"path",1,0],16,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6.923,14.549],"trunk",14.549,"primary",14.436,["secondary","tertiary"],11.455,"minor",7.342,["service","busway"],4.038,"path",4.385,0],18,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0],20,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0]],"line-opacity":0.7}},{"id":"tunnel-rail","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"tunnel"],["match",["get","class"],["rail","transit"],true,false]],"layout":{"line-join":"round"},"paint":{"line-color":"#b8b7b6","line-width":["interpolate",["linear"],["zoom"],12,0.4,14,0.75,16,1],"line-gap-width":["interpolate",["exponential",1.5],["zoom"],17,0,20,3],"line-opacity":0.2}},{"id":"tunnel-rail-ties","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":16,"filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"tunnel"],["match",["get","class"],["rail","transit"],true,false]],"layout":{"line-join":"round"},"paint":{"line-color":"#b8b7b6","line-width":["interpolate",["exponential",1.5],["zoom"],16,0,20,8],"line-dasharray":[0.1,2],"line-opacity":0.2}},{"id":"road-casing","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["==",["geometry-type"],"LineString"],["!",["match",["get","brunnel"],["tunnel","bridge"],true,false]],["any",["all",["match",["get","class"],["motorway","trunk"],true,false],[">=",["zoom"],5]],["all",["==",["get","class"],"primary"],[">=",["zoom"],7]],["all",["match",["get","class"],["secondary","tertiary"],true,false],[">=",["zoom"],9]],["all",["==",["get","class"],"minor"],[">=",["zoom"],12]],["all",["match",["get","class"],["service","busway"],true,false],[">=",["zoom"],13]],["all",["==",["get","class"],"path"],["match",["get","subclass"],["pedestrian"],true,false],[">=",["zoom"],14]]]],"layout":{"line-cap":"round","line-join":"round","line-sort-key":["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6,7],"trunk",5,"primary",4,["secondary","tertiary"],3,"minor",2,["service","busway"],1,"path",0,0]},"paint":{"line-color":["match",["get","class"],"motorway","#ffffff","trunk","#ffffff","primary","#d6d9e6",["secondary","tertiary"],"#cfcdca","minor","#cfcdca",["service","busway"],"#cfcdca","path","#cfcdca","#cfcdca"],"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"motorway",0,"trunk",0,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0,"path",2,0],7,["match",["get","class"],"motorway",0,"trunk",0,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0,"path",2,0],9,["match",["get","class"],"motorway",0,"trunk",0,"primary",0.792,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0,"path",2,0],11,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0,0.3],"trunk",0.3,"primary",0.886,["secondary","tertiary"],0.55,"minor",0.5,["service","busway"],0,"path",2,0],12,["match",["get","class"],"motorway",0.75,"trunk",0.75,"primary",0.97,["secondary","tertiary"],0.595,"minor",0.5,["service","busway"],0,"path",2,0],14,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.813,1.135],"trunk",1.135,"primary",1.287,["secondary","tertiary"],0.764,"minor",0.68,["service","busway"],0,"path",2,0],16,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.956,2],"trunk",2,"primary",2,["secondary","tertiary"],1.144,"minor",1.086,["service","busway"],0.241,"path",5.692,0],18,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],1.277,2],"trunk",2,"primary",2,["secondary","tertiary"],2,"minor",2,["service","busway"],0.782,"path",14,0],20,["match",["get","class"],"motorway",2,"trunk",2,"primary",2,["secondary","tertiary"],2,"minor",2,["service","busway"],2,"path",14,0]],"line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.75],"trunk",0.75,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],7,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.952],"trunk",0.952,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],9,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,1.406],"trunk",1.406,"primary",1.207,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],11,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,2.427],"trunk",2.427,"primary",2.235,["secondary","tertiary"],1.351,"minor",0.5,["service","busway"],0.5,"path",1,0],12,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,3.346],"trunk",3.346,"primary",3.16,["secondary","tertiary"],2.117,"minor",0.5,["service","busway"],0.5,"path",1,0],14,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],2,6.793],"trunk",6.793,"primary",6.63,["secondary","tertiary"],4.991,"minor",2.605,["service","busway"],0.5,"path",1,0],16,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6.923,14.549],"trunk",14.549,"primary",14.436,["secondary","tertiary"],11.455,"minor",7.342,["service","busway"],4.038,"path",4.385,0],18,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0],20,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0]],"line-opacity":["interpolate",["linear"],["zoom"],7,["match",["get","class"],"motorway",1,"trunk",1,"primary",0.25,["secondary","tertiary"],0,"minor",0,["service","busway"],1,"path",0,1],9,["match",["get","class"],"motorway",1,"trunk",1,"primary",0.625,["secondary","tertiary"],0,"minor",0,["service","busway"],1,"path",0,1],11,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",0,["service","busway"],1,"path",0,1],12,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",0,["service","busway"],1,"path",0,1],14,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",1,["service","busway"],1,"path",0,1],17,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",1,["service","busway"],1,"path",1,1]]}},{"id":"path","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":14,"filter":["all",["==",["geometry-type"],"LineString"],["!",["match",["get","brunnel"],["tunnel","bridge"],true,false]],["all",["match",["get","class"],["path","track"],true,false],["!=",["get","subclass"],"pedestrian"]]],"paint":{"line-color":"#808080","line-opacity":["interpolate",["linear"],["zoom"],14,0,15,0.4],"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,22,4],"line-dasharray":["step",["zoom"],["literal",[2,1]],15,["literal",[2.33,1.2]],16,["literal",[2.66,1.4]],17,["literal",[3,1.6]],18,["literal",[3.33,1.8]]]}},{"id":"road","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["==",["geometry-type"],"LineString"],["!",["match",["get","brunnel"],["tunnel","bridge"],true,false]],["any",["all",["match",["get","class"],["motorway","trunk"],true,false],[">=",["zoom"],5]],["all",["==",["get","class"],"primary"],[">=",["zoom"],7]],["all",["match",["get","class"],["secondary","tertiary"],true,false],[">=",["zoom"],9]],["all",["==",["get","class"],"minor"],[">=",["zoom"],12]],["all",["match",["get","class"],["service","busway"],true,false],[">=",["zoom"],13]],["all",["==",["get","class"],"path"],["match",["get","subclass"],["pedestrian"],true,false],[">=",["zoom"],14]]]],"layout":{"line-cap":"round","line-join":"round","line-sort-key":["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6,7],"trunk",5,"primary",4,["secondary","tertiary"],3,"minor",2,["service","busway"],1,"path",0,0]},"paint":{"line-color":["match",["get","class"],"motorway","#f0c297","trunk","#ffe390","primary","#ffffff",["secondary","tertiary"],"#ffffff","minor","#ffffff",["service","busway"],"#ffffff","path","#ffffff","#ffffff"],"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.75],"trunk",0.75,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],7,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.952],"trunk",0.952,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],9,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,1.406],"trunk",1.406,"primary",1.207,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],11,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,2.427],"trunk",2.427,"primary",2.235,["secondary","tertiary"],1.351,"minor",0.5,["service","busway"],0.5,"path",1,0],12,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,3.346],"trunk",3.346,"primary",3.16,["secondary","tertiary"],2.117,"minor",0.5,["service","busway"],0.5,"path",1,0],14,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],2,6.793],"trunk",6.793,"primary",6.63,["secondary","tertiary"],4.991,"minor",2.605,["service","busway"],0.5,"path",1,0],16,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6.923,14.549],"trunk",14.549,"primary",14.436,["secondary","tertiary"],11.455,"minor",7.342,["service","busway"],4.038,"path",4.385,0],18,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0],20,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0]]}},{"id":"rail","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["==",["geometry-type"],"LineString"],["!",["match",["get","brunnel"],["tunnel","bridge"],true,false]],["match",["get","class"],["rail","transit"],true,false]],"layout":{"line-join":"round"},"paint":{"line-color":"#b8b7b6","line-width":["interpolate",["linear"],["zoom"],12,0.4,14,0.75,16,1],"line-gap-width":["interpolate",["exponential",1.5],["zoom"],17,0,20,3]}},{"id":"rail-ties","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":16,"filter":["all",["==",["geometry-type"],"LineString"],["!",["match",["get","brunnel"],["tunnel","bridge"],true,false]],["match",["get","class"],["rail","transit"],true,false]],"layout":{"line-join":"round"},"paint":{"line-color":"#b8b7b6","line-width":["interpolate",["exponential",1.5],["zoom"],16,0,20,8],"line-dasharray":[0.1,2]}},{"id":"road-area-outline","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":16,"filter":["all",["==",["geometry-type"],"Polygon"],["match",["get","class"],["path","minor","service"],true,false]],"paint":{"line-color":"#cfcdca","line-opacity":["interpolate",["linear"],["zoom"],16,0.2,17,1],"line-width":["interpolate",["linear"],["zoom"],16,0.2,20,1]}},{"id":"bridge-road-casing","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"bridge"],["any",["all",["match",["get","class"],["motorway","trunk"],true,false],[">=",["zoom"],5]],["all",["==",["get","class"],"primary"],[">=",["zoom"],7]],["all",["match",["get","class"],["secondary","tertiary"],true,false],[">=",["zoom"],9]],["all",["==",["get","class"],"minor"],[">=",["zoom"],12]],["all",["match",["get","class"],["service","busway"],true,false],[">=",["zoom"],13]],["all",["==",["get","class"],"path"],["match",["get","subclass"],["pedestrian"],true,false],[">=",["zoom"],14]]]],"layout":{"line-cap":"butt","line-join":"round","line-sort-key":["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6,7],"trunk",5,"primary",4,["secondary","tertiary"],3,"minor",2,["service","busway"],1,"path",0,0]},"paint":{"line-color":["match",["get","class"],"motorway","#ffffff","trunk","#ffffff","primary","#d6d9e6",["secondary","tertiary"],"#cfcdca","minor","#cfcdca",["service","busway"],"#cfcdca","path","#cfcdca","#cfcdca"],"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"motorway",0,"trunk",0,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0,"path",2,0],7,["match",["get","class"],"motorway",0,"trunk",0,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0,"path",2,0],9,["match",["get","class"],"motorway",0,"trunk",0,"primary",0.792,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0,"path",2,0],11,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0,0.3],"trunk",0.3,"primary",0.886,["secondary","tertiary"],0.55,"minor",0.5,["service","busway"],0,"path",2,0],12,["match",["get","class"],"motorway",0.75,"trunk",0.75,"primary",0.97,["secondary","tertiary"],0.595,"minor",0.5,["service","busway"],0,"path",2,0],14,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.813,1.135],"trunk",1.135,"primary",1.287,["secondary","tertiary"],0.764,"minor",0.68,["service","busway"],0,"path",2,0],16,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.956,2],"trunk",2,"primary",2,["secondary","tertiary"],1.144,"minor",1.086,["service","busway"],0.241,"path",5.692,0],18,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],1.277,2],"trunk",2,"primary",2,["secondary","tertiary"],2,"minor",2,["service","busway"],0.782,"path",14,0],20,["match",["get","class"],"motorway",2,"trunk",2,"primary",2,["secondary","tertiary"],2,"minor",2,["service","busway"],2,"path",14,0]],"line-gap-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.75],"trunk",0.75,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],7,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.952],"trunk",0.952,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],9,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,1.406],"trunk",1.406,"primary",1.207,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],11,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,2.427],"trunk",2.427,"primary",2.235,["secondary","tertiary"],1.351,"minor",0.5,["service","busway"],0.5,"path",1,0],12,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,3.346],"trunk",3.346,"primary",3.16,["secondary","tertiary"],2.117,"minor",0.5,["service","busway"],0.5,"path",1,0],14,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],2,6.793],"trunk",6.793,"primary",6.63,["secondary","tertiary"],4.991,"minor",2.605,["service","busway"],0.5,"path",1,0],16,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6.923,14.549],"trunk",14.549,"primary",14.436,["secondary","tertiary"],11.455,"minor",7.342,["service","busway"],4.038,"path",4.385,0],18,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0],20,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0]],"line-opacity":["interpolate",["linear"],["zoom"],7,["match",["get","class"],"motorway",1,"trunk",1,"primary",0.25,["secondary","tertiary"],0,"minor",0,["service","busway"],1,"path",0,1],9,["match",["get","class"],"motorway",1,"trunk",1,"primary",0.625,["secondary","tertiary"],0,"minor",0,["service","busway"],1,"path",0,1],11,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",0,["service","busway"],1,"path",0,1],12,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",0,["service","busway"],1,"path",0,1],14,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",1,["service","busway"],1,"path",0,1],17,["match",["get","class"],"motorway",1,"trunk",1,"primary",1,["secondary","tertiary"],1,"minor",1,["service","busway"],1,"path",1,1]]}},{"id":"bridge-path","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":14,"filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"bridge"],["all",["match",["get","class"],["path","track"],true,false],["!=",["get","subclass"],"pedestrian"]]],"paint":{"line-color":"#808080","line-opacity":["interpolate",["linear"],["zoom"],14,0,15,0.4],"line-width":["interpolate",["exponential",1.5],["zoom"],14,0.5,22,4],"line-dasharray":["step",["zoom"],["literal",[2,1]],15,["literal",[2.33,1.2]],16,["literal",[2.66,1.4]],17,["literal",[3,1.6]],18,["literal",[3.33,1.8]]]}},{"id":"bridge-road","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"bridge"],["any",["all",["match",["get","class"],["motorway","trunk"],true,false],[">=",["zoom"],5]],["all",["==",["get","class"],"primary"],[">=",["zoom"],7]],["all",["match",["get","class"],["secondary","tertiary"],true,false],[">=",["zoom"],9]],["all",["==",["get","class"],"minor"],[">=",["zoom"],12]],["all",["match",["get","class"],["service","busway"],true,false],[">=",["zoom"],13]],["all",["==",["get","class"],"path"],["match",["get","subclass"],["pedestrian"],true,false],[">=",["zoom"],14]]]],"layout":{"line-cap":"round","line-join":"round","line-sort-key":["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6,7],"trunk",5,"primary",4,["secondary","tertiary"],3,"minor",2,["service","busway"],1,"path",0,0]},"paint":{"line-color":["match",["get","class"],"motorway","#f0c297","trunk","#ffe390","primary","#ffffff",["secondary","tertiary"],"#ffffff","minor","#ffffff",["service","busway"],"#ffffff","path","#ffffff","#ffffff"],"line-width":["interpolate",["exponential",1.5],["zoom"],5,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.75],"trunk",0.75,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],7,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,0.952],"trunk",0.952,"primary",0.75,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],9,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,1.406],"trunk",1.406,"primary",1.207,["secondary","tertiary"],0.5,"minor",0.5,["service","busway"],0.5,"path",1,0],11,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,2.427],"trunk",2.427,"primary",2.235,["secondary","tertiary"],1.351,"minor",0.5,["service","busway"],0.5,"path",1,0],12,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],0.5,3.346],"trunk",3.346,"primary",3.16,["secondary","tertiary"],2.117,"minor",0.5,["service","busway"],0.5,"path",1,0],14,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],2,6.793],"trunk",6.793,"primary",6.63,["secondary","tertiary"],4.991,"minor",2.605,["service","busway"],0.5,"path",1,0],16,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],6.923,14.549],"trunk",14.549,"primary",14.436,["secondary","tertiary"],11.455,"minor",7.342,["service","busway"],4.038,"path",4.385,0],18,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0],20,["match",["get","class"],"motorway",["case",["==",["get","ramp"],1],18,32],"trunk",32,"primary",32,["secondary","tertiary"],26,"minor",18,["service","busway"],12,"path",12,0]]}},{"id":"bridge-rail","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":12,"filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"bridge"],["match",["get","class"],["rail","transit"],true,false]],"layout":{"line-join":"round"},"paint":{"line-color":"#b8b7b6","line-width":["interpolate",["linear"],["zoom"],12,0.4,14,0.75,16,1],"line-gap-width":["interpolate",["exponential",1.5],["zoom"],17,0,20,3]}},{"id":"bridge-rail-ties","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":16,"filter":["all",["==",["geometry-type"],"LineString"],["==",["get","brunnel"],"bridge"],["match",["get","class"],["rail","transit"],true,false]],"layout":{"line-join":"round"},"paint":{"line-color":"#b8b7b6","line-width":["interpolate",["exponential",1.5],["zoom"],16,0,20,8],"line-dasharray":[0.1,2]}},{"id":"boundary-state","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",[">=",["get","admin_level"],3],["<=",["get","admin_level"],4],["!=",["get","maritime"],1]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#acacae","line-opacity":["interpolate",["linear"],["zoom"],2,0,3,0.75],"line-width":["interpolate",["linear"],["zoom"],7,0.75,12,1.5],"line-dasharray":["step",["zoom"],["literal",[12,0]],9,["literal",[12,3]]]}},{"id":"boundary-country","type":"line","source":"openmaptiles","source-layer":"boundary","filter":["all",["==",["get","admin_level"],2],["!=",["get","maritime"],1]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":"#acacae","line-width":["interpolate",["linear"],["zoom"],0,0.5,12,2],"line-dasharray":["case",["==",["get","disputed"],1],["literal",[3,2]],["literal",[1,0]]]}},{"id":"building","type":"fill","source":"openmaptiles","source-layer":"building","minzoom":15,"paint":{"fill-color":"#f2eae2","fill-outline-color":"#dfdbd7","fill-opacity":["interpolate",["linear"],["zoom"],15,0,16,1]}},{"id":"label-housenumber","type":"symbol","source":"openmaptiles","source-layer":"housenumber","minzoom":17,"layout":{"text-field":["get","housenumber"],"text-font":["Inter Italic"],"text-size":10},"paint":{"text-color":"#110801","text-opacity":0.3}},{"id":"road-oneway","type":"symbol","source":"openmaptiles","source-layer":"transportation","minzoom":16,"filter":["all",["==",["geometry-type"],"LineString"],["match",["get","oneway"],[1,-1],true,false],["match",["get","class"],["motorway","trunk","primary","secondary","tertiary","minor","service"],true,false]],"layout":{"symbol-placement":"line","symbol-spacing":200,"icon-image":"oneway","icon-size":0.6,"icon-padding":5,"icon-rotate":["match",["get","oneway"],-1,180,0],"icon-rotation-alignment":"map"},"paint":{"icon-color":"#a9a5a0"}},{"id":"label-waterway","type":"symbol","source":"openmaptiles","source-layer":"waterway","minzoom":12,"filter":["has","name"],"layout":{"symbol-placement":"line","text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Italic"],"text-letter-spacing":0.2,"text-size":["interpolate",["linear"],["zoom"],13,10,18,14]},"paint":{"text-color":"#0063ff","text-halo-color":"rgba(255, 255, 255, 0.5)","text-halo-width":1}},{"id":"label-water","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==",["geometry-type"],"Point"],["!",["match",["get","class"],["ocean","sea"],true,false]]],"layout":{"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Italic"],"text-letter-spacing":0.2,"text-size":["interpolate",["linear"],["zoom"],13,10,18,14],"text-max-width":6},"paint":{"text-color":"#0063ff"}},{"id":"label-water-line","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["==",["geometry-type"],"LineString"],"layout":{"symbol-placement":"line","text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Italic"],"text-letter-spacing":0.2,"text-size":["interpolate",["linear"],["zoom"],13,10,18,14]},"paint":{"text-color":"#0063ff"}},{"id":"label-road","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","filter":["any",["all",["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],true,false],[">=",["zoom"],9]],["all",["==",["get","class"],"minor"],[">=",["zoom"],14]],["all",["!",["match",["get","class"],["rail","transit","ferry","aerialway"],true,false]],[">=",["zoom"],15]]],"layout":{"symbol-placement":"line","symbol-spacing":250,"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-letter-spacing":0.01,"text-max-angle":30,"text-padding":1,"text-rotation-alignment":"map","symbol-sort-key":["match",["get","class"],["motorway","trunk","primary"],1,["secondary","tertiary"],2,"minor",3,4],"text-size":["interpolate",["linear"],["zoom"],9,10,11,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],11,10],15,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],12.5,"minor",11.5,10],20,["match",["get","class"],["motorway","trunk","primary","secondary","tertiary"],16,"minor",14,13]]},"paint":{"text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-transit","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":13,"filter":["all",["match",["get","class"],["bus","railway","aerialway","ferry_terminal"],true,false],["<=",["get","rank"],["step",["zoom"],12,15,30]]],"layout":{"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-size":10,"text-max-width":8},"paint":{"text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-poi","type":"symbol","source":"openmaptiles","source-layer":"poi","minzoom":13,"filter":["all",["!",["match",["get","class"],["bus","railway","aerialway","ferry_terminal"],true,false]],["has","name"],["<=",["get","rank"],["step",["zoom"],2,15,5,16,10,17,25,18,60]]],"layout":{"symbol-sort-key":["get","rank"],"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-size":11,"text-max-width":8,"text-padding":2},"paint":{"text-color":["match",["get","class"],["park","garden","campsite","picnic_site","playground","dog_park","zoo","golf"],"#3f6c00",["restaurant","fast_food","cafe","bar","beer","ice_cream","bakery"],"#bf4600",["hospital","pharmacy","doctors","dentist","veterinary"],"#bb0000","#110801"],"text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-peak","type":"symbol","source":"openmaptiles","source-layer":"mountain_peak","minzoom":10,"filter":["all",["match",["get","class"],["peak","volcano"],true,false],["has","name"],["<=",["get","rank"],["step",["zoom"],1,12,3,14,10]]],"layout":{"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-size":10,"text-max-width":8,"text-padding":15},"paint":{"text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-ocean","type":"symbol","source":"openmaptiles","source-layer":"water_name","filter":["all",["==",["geometry-type"],"Point"],["match",["get","class"],["ocean","sea"],true,false]],"layout":{"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Italic"],"text-max-width":6,"text-letter-spacing":0.1,"text-size":["interpolate",["linear"],["zoom"],1,["match",["get","class"],"ocean",14,11],6,["match",["get","class"],"ocean",24,16]]},"paint":{"text-color":"#e4f4fc"}},{"id":"label-suburb","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":11,"maxzoom":16,"filter":["match",["get","class"],["suburb","quarter","neighbourhood"],true,false],"layout":{"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-transform":"uppercase","text-letter-spacing":0.04,"text-padding":3,"text-max-width":8,"text-size":["interpolate",["linear"],["zoom"],11,9,15,16]},"paint":{"text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-village","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":10,"maxzoom":15,"filter":["match",["get","class"],["village","hamlet"],true,false],"layout":{"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-max-width":7,"text-padding":1,"text-size":["interpolate",["linear"],["zoom"],10,11,16,18]},"paint":{"text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-town","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":7,"maxzoom":15,"filter":["==",["get","class"],"town"],"layout":{"icon-image":["step",["zoom"],["image","dot"],8,""],"icon-size":0.9,"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-max-width":7,"text-size":["interpolate",["linear"],["zoom"],7,11,15,20],"text-anchor":["step",["zoom"],"bottom",8,"center"],"text-offset":["step",["zoom"],["literal",[0,-0.25]],8,["literal",[0,0]]]},"paint":{"icon-color":"#110801","text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-city","type":"symbol","source":"openmaptiles","source-layer":"place","maxzoom":14,"filter":["all",["all",["==",["get","class"],"city"],["!=",["get","capital"],2]],[">",["get","rank"],5]],"layout":{"icon-image":["step",["zoom"],["image","dot"],8,""],"icon-size":0.9,"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-max-width":7,"text-size":["interpolate",["linear"],["zoom"],6,12,14,22],"text-anchor":["step",["zoom"],"bottom",8,"center"],"text-offset":["step",["zoom"],["literal",[0,-0.25]],8,["literal",[0,0]]]},"paint":{"icon-color":"#110801","text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-city-major","type":"symbol","source":"openmaptiles","source-layer":"place","maxzoom":14,"filter":["all",["all",["==",["get","class"],"city"],["!=",["get","capital"],2]],["<=",["get","rank"],5]],"layout":{"icon-image":["step",["zoom"],["image","dot"],8,""],"icon-size":1.05,"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-max-width":7,"text-size":["interpolate",["linear"],["zoom"],4,12,10,22],"text-anchor":["step",["zoom"],"bottom",8,"center"],"text-offset":["step",["zoom"],["literal",[0,-0.25]],8,["literal",[0,0]]]},"paint":{"icon-color":"#110801","text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-state","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":4,"maxzoom":10,"filter":["all",["==",["get","class"],"state"],["<=",["get","rank"],2]],"layout":{"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Regular"],"text-transform":"uppercase","text-max-width":6,"text-padding":5,"text-size":["interpolate",["linear"],["zoom"],3,8,8,20]},"paint":{"text-color":"#5a514a","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-capital","type":"symbol","source":"openmaptiles","source-layer":"place","maxzoom":14,"filter":["all",["==",["get","class"],"city"],["==",["get","capital"],2]],"layout":{"icon-image":["step",["zoom"],["image","dot"],8,""],"icon-size":1.25,"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Bold"],"text-max-width":7,"text-size":["interpolate",["linear"],["zoom"],4,12,10,22],"text-anchor":["step",["zoom"],"bottom",8,"center"],"text-offset":["step",["zoom"],["literal",[0,-0.25]],8,["literal",[0,0]]]},"paint":{"icon-color":"#110801","text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1,"text-halo-blur":1}},{"id":"label-country","type":"symbol","source":"openmaptiles","source-layer":"place","maxzoom":7,"filter":["==",["get","class"],"country"],"layout":{"text-field":["coalesce",["get","name:en"],["get","name:latin"],["get","name"]],"text-font":["Inter Bold"],"text-max-width":6,"text-size":["interpolate",["linear"],["zoom"],1,["step",["get","rank"],10,3,9,5,8],8,["step",["get","rank"],24,3,22,5,18]]},"paint":{"text-color":"#110801","text-halo-color":"#ffffff","text-halo-width":1}}]'), o = {
|
|
2
|
+
version: 8,
|
|
3
|
+
name: e,
|
|
4
|
+
sources: t,
|
|
5
|
+
layers: a
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
o as default,
|
|
9
|
+
a as layers,
|
|
10
|
+
e as name,
|
|
11
|
+
t as sources,
|
|
12
|
+
r as version
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,131 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@element-editor/adapter-maplibre",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Add drawing, vertex editing, snapping and GeoJSON data editing to an existing MapLibre GL map (MapTiler SDK and Mapbox GL JS work too).",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"element-editor",
|
|
7
|
+
"maplibre",
|
|
8
|
+
"maplibre-gl",
|
|
9
|
+
"mapbox-gl",
|
|
10
|
+
"react",
|
|
11
|
+
"geojson",
|
|
12
|
+
"map-editor",
|
|
13
|
+
"drawing",
|
|
14
|
+
"vertex-editing",
|
|
15
|
+
"snapping",
|
|
16
|
+
"basemaps",
|
|
17
|
+
"gis"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://elementeditor.dev",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/spatibase/element/issues"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/spatibase/element.git",
|
|
26
|
+
"directory": "packages/adapter-maplibre"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"author": "Michal Acler",
|
|
30
|
+
"private": false,
|
|
31
|
+
"type": "module",
|
|
32
|
+
"sideEffects": [
|
|
33
|
+
"*.css"
|
|
34
|
+
],
|
|
35
|
+
"main": "./dist/index.cjs",
|
|
36
|
+
"module": "./dist/index.es.js",
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"typesVersions": {
|
|
39
|
+
"*": {
|
|
40
|
+
"basemaps": [
|
|
41
|
+
"./dist/basemaps.d.ts"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"exports": {
|
|
46
|
+
".": {
|
|
47
|
+
"module": {
|
|
48
|
+
"types": "./dist/index.d.ts",
|
|
49
|
+
"default": "./dist/index.es.js"
|
|
50
|
+
},
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"default": "./dist/index.es.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/index.d.cts",
|
|
57
|
+
"default": "./dist/index.cjs"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"./basemaps": {
|
|
61
|
+
"import": {
|
|
62
|
+
"types": "./dist/basemaps.d.ts",
|
|
63
|
+
"default": "./dist/basemaps.es.js"
|
|
64
|
+
},
|
|
65
|
+
"require": {
|
|
66
|
+
"types": "./dist/basemaps.d.cts",
|
|
67
|
+
"default": "./dist/basemaps.cjs"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"./style.css": "./dist/adapter-maplibre.css"
|
|
71
|
+
},
|
|
72
|
+
"files": [
|
|
73
|
+
"dist",
|
|
74
|
+
"basemaps",
|
|
75
|
+
"LICENSE",
|
|
76
|
+
"README.md",
|
|
77
|
+
"AGENTS.md"
|
|
78
|
+
],
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=18"
|
|
81
|
+
},
|
|
82
|
+
"publishConfig": {
|
|
83
|
+
"access": "public",
|
|
84
|
+
"provenance": true
|
|
85
|
+
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
88
|
+
"@turf/area": "^7.3.4",
|
|
89
|
+
"@turf/bbox": "^7.3.4",
|
|
90
|
+
"@turf/boolean-intersects": "^7.3.4",
|
|
91
|
+
"@turf/distance": "^7.3.4",
|
|
92
|
+
"@turf/helpers": "^7.3.4",
|
|
93
|
+
"@turf/length": "^7.3.4",
|
|
94
|
+
"@turf/transform-rotate": "^7.3.4",
|
|
95
|
+
"sonner": "^2.0.7",
|
|
96
|
+
"@element-editor/core": "0.2.1",
|
|
97
|
+
"@element-editor/ui": "0.2.1"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
101
|
+
"@types/geojson": "^7946.0.16",
|
|
102
|
+
"@types/react": "^19.0.2",
|
|
103
|
+
"@types/react-dom": "^19.0.2",
|
|
104
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
105
|
+
"maplibre-gl": "^6.18.0",
|
|
106
|
+
"react": "^19.2.0",
|
|
107
|
+
"react-dom": "^19.2.0",
|
|
108
|
+
"tailwindcss": "^4.2.2",
|
|
109
|
+
"typescript": "~5.7.2",
|
|
110
|
+
"vite": "^6.0.5",
|
|
111
|
+
"vite-plugin-dts": "^4.5.4",
|
|
112
|
+
"vitest": "^4.1.0"
|
|
113
|
+
},
|
|
114
|
+
"peerDependencies": {
|
|
115
|
+
"maplibre-gl": "^5.5.0 || ^6.0.0",
|
|
116
|
+
"react": "^19.2.0",
|
|
117
|
+
"react-dom": "^19.2.0"
|
|
118
|
+
},
|
|
119
|
+
"peerDependenciesMeta": {
|
|
120
|
+
"maplibre-gl": {
|
|
121
|
+
"optional": true
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"scripts": {
|
|
125
|
+
"build": "vite build && node ../../scripts/fix-dts.mjs",
|
|
126
|
+
"dev": "tsc --noEmit --watch",
|
|
127
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
128
|
+
"test": "vitest run",
|
|
129
|
+
"test:watch": "vitest"
|
|
130
|
+
}
|
|
6
131
|
}
|