@trailstash/ultra 3.0.0-dev
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/.gitlab-ci.yml +15 -0
- package/Examples/alt-bbox-format.ultra +9 -0
- package/Examples/atp-usps-dropboxes.ultra +68 -0
- package/Examples/bike-infra.ultra +111 -0
- package/Examples/contribution-heatmap.ultra +17 -0
- package/Examples/custom-style.ultra +114 -0
- package/Examples/glow-effect.ultra +27 -0
- package/Examples/index.md +7 -0
- package/Examples/landmarks-prototype.ultra +68 -0
- package/Examples/minimalist-ski-map.ultra +55 -0
- package/Examples/opentrailstash-3d.ultra +40 -0
- package/Examples/overture-landcover-plus-hillshade.ultra +45 -0
- package/Examples/overture-places-and-osm.ultra +29 -0
- package/Examples/trees.ultra +60 -0
- package/Examples/wikidata-photo.ultra +28 -0
- package/Examples/within-bounds.ultra +12 -0
- package/LICENSE +23 -0
- package/MapLibre-Examples/3d-buildings.ultra +43 -0
- package/MapLibre-Examples/3d-extrusion-floorplan.ultra +28 -0
- package/MapLibre-Examples/3d-terrain.ultra +39 -0
- package/MapLibre-Examples/add-image.ultra +26 -0
- package/MapLibre-Examples/attribution-position.ultra +12 -0
- package/MapLibre-Examples/change-case-of-labels.ultra +26 -0
- package/MapLibre-Examples/cluster.ultra +59 -0
- package/MapLibre-Examples/cooperative-gestures.ultra +11 -0
- package/MapLibre-Examples/custom-marker-icons.ultra +65 -0
- package/MapLibre-Examples/data-driven-lines.ultra +169 -0
- package/MapLibre-Examples/disable-rotation.ultra +11 -0
- package/MapLibre-Examples/disable-scroll-zoom.ultra +9 -0
- package/MapLibre-Examples/display-and-style-rich-text-labels.ultra +22 -0
- package/MapLibre-Examples/fill-pattern.ultra +43 -0
- package/MapLibre-Examples/fullscreen.ultra +10 -0
- package/MapLibre-Examples/geojson-layer-in-stack.ultra +23 -0
- package/MapLibre-Examples/geojson-line.ultra +114 -0
- package/MapLibre-Examples/geojson-markers.ultra +217 -0
- package/MapLibre-Examples/geojson-polygon.ultra +104 -0
- package/MapLibre-Examples/heatmap-layer.ultra +111 -0
- package/MapLibre-Examples/index.md +4 -0
- package/MapLibre-Examples/locate-user.ultra +14 -0
- package/MapLibre-Examples/map-tiles.ultra +9 -0
- package/MapLibre-Examples/pmtiles.ultra +25 -0
- package/MapLibre-Examples/wms.ultra +14 -0
- package/README.md +46 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +6 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/build-examples-docs.js +104 -0
- package/build-examples-images.js +87 -0
- package/build-sprites.sh +30 -0
- package/cli/build.js +53 -0
- package/cli/serve.js +34 -0
- package/components/button-modal.js +111 -0
- package/components/button.css +22 -0
- package/components/button.js +6 -0
- package/components/code-editor.js +87 -0
- package/components/download-button.js +69 -0
- package/components/fontawesome-icon.js +80 -0
- package/components/fs-button.js +52 -0
- package/components/help-modal.js +98 -0
- package/components/map-popup.js +57 -0
- package/components/nav-bar.js +76 -0
- package/components/run-button.js +78 -0
- package/components/share-button.js +35 -0
- package/components/share-modal.js +139 -0
- package/components/style-picker.js +47 -0
- package/components/ultra-ide.js +298 -0
- package/components/ultra-loader.js +60 -0
- package/components/ultra-map.js +312 -0
- package/configs/minimal.js +9 -0
- package/configs/overpass-ultra.js +185 -0
- package/docs/assets/Examples/alt-bbox-format.png +0 -0
- package/docs/assets/Examples/atp-usps-dropboxes.png +0 -0
- package/docs/assets/Examples/bike-infra.png +0 -0
- package/docs/assets/Examples/contribution-heatmap.png +0 -0
- package/docs/assets/Examples/custom-style.png +0 -0
- package/docs/assets/Examples/glow-effect.png +0 -0
- package/docs/assets/Examples/landmarks-prototype.png +0 -0
- package/docs/assets/Examples/minimalist-ski-map.png +0 -0
- package/docs/assets/Examples/opentrailstash-3d.png +0 -0
- package/docs/assets/Examples/overture-landcover-plus-hillshade.png +0 -0
- package/docs/assets/Examples/overture-places-and-osm.png +0 -0
- package/docs/assets/Examples/trees.png +0 -0
- package/docs/assets/Examples/wikidata-photo.png +0 -0
- package/docs/assets/Examples/within-bounds.png +0 -0
- package/docs/assets/MapLibre-Examples/3d-buildings.png +0 -0
- package/docs/assets/MapLibre-Examples/3d-extrusion-floorplan.png +0 -0
- package/docs/assets/MapLibre-Examples/3d-terrain.png +0 -0
- package/docs/assets/MapLibre-Examples/add-image.png +0 -0
- package/docs/assets/MapLibre-Examples/attribution-position.png +0 -0
- package/docs/assets/MapLibre-Examples/change-case-of-labels.png +0 -0
- package/docs/assets/MapLibre-Examples/cluster.png +0 -0
- package/docs/assets/MapLibre-Examples/cooperative-gestures.png +0 -0
- package/docs/assets/MapLibre-Examples/custom-marker-icons.png +0 -0
- package/docs/assets/MapLibre-Examples/data-driven-lines.png +0 -0
- package/docs/assets/MapLibre-Examples/disable-rotation.png +0 -0
- package/docs/assets/MapLibre-Examples/disable-scroll-zoom.png +0 -0
- package/docs/assets/MapLibre-Examples/display-and-style-rich-text-labels.png +0 -0
- package/docs/assets/MapLibre-Examples/fill-pattern.png +0 -0
- package/docs/assets/MapLibre-Examples/fullscreen.png +0 -0
- package/docs/assets/MapLibre-Examples/geojson-layer-in-stack.png +0 -0
- package/docs/assets/MapLibre-Examples/geojson-line.png +0 -0
- package/docs/assets/MapLibre-Examples/geojson-markers.png +0 -0
- package/docs/assets/MapLibre-Examples/geojson-polygon.png +0 -0
- package/docs/assets/MapLibre-Examples/heatmap-layer.png +0 -0
- package/docs/assets/MapLibre-Examples/locate-user.png +0 -0
- package/docs/assets/MapLibre-Examples/map-tiles.png +0 -0
- package/docs/assets/MapLibre-Examples/pmtiles.png +0 -0
- package/docs/assets/MapLibre-Examples/wms.png +0 -0
- package/docs/assets/data/Examples/atp_usps_collection_boxes.geojson +1 -0
- package/docs/further-reading.md +15 -0
- package/docs/index.md +55 -0
- package/docs/overrides/partials/integrations/analytics/custom.html +11 -0
- package/docs/query-shortcuts.md +21 -0
- package/docs/style.md +120 -0
- package/docs/url-parameters.md +45 -0
- package/docs/yaml.md +117 -0
- package/index.js +53 -0
- package/lib/base.css +12 -0
- package/lib/bounds.js +8 -0
- package/lib/dom.js +21 -0
- package/lib/glyphFallback.js +31 -0
- package/lib/localStorage.js +34 -0
- package/lib/normalize.js +5 -0
- package/lib/queryMap.js +50 -0
- package/lib/queryParams.js +142 -0
- package/lib/queryProviders/auto.js +47 -0
- package/lib/queryProviders/geojson.js +134 -0
- package/lib/queryProviders/gpx.js +101 -0
- package/lib/queryProviders/index.js +22 -0
- package/lib/queryProviders/kml.js +132 -0
- package/lib/queryProviders/osm.js +199 -0
- package/lib/queryProviders/overpass.js +162 -0
- package/lib/queryProviders/raster.js +23 -0
- package/lib/queryProviders/tcx.js +105 -0
- package/lib/queryProviders/vector.js +13 -0
- package/lib/settings.js +72 -0
- package/lib/sprites.js +18 -0
- package/lib/style.js +222 -0
- package/mkdocs.yml +26 -0
- package/package.json +80 -0
- package/screenshot.png +0 -0
- package/static/embed.js +18 -0
- package/static/font/0-255.pbf +0 -0
- package/static/font/1024-1279.pbf +0 -0
- package/static/font/10240-10495.pbf +3 -0
- package/static/font/10496-10751.pbf +0 -0
- package/static/font/10752-11007.pbf +3 -0
- package/static/font/11008-11263.pbf +0 -0
- package/static/font/11264-11519.pbf +0 -0
- package/static/font/11520-11775.pbf +0 -0
- package/static/font/11776-12031.pbf +0 -0
- package/static/font/12032-12287.pbf +0 -0
- package/static/font/12288-12543.pbf +0 -0
- package/static/font/12544-12799.pbf +0 -0
- package/static/font/1280-1535.pbf +0 -0
- package/static/font/12800-13055.pbf +0 -0
- package/static/font/13056-13311.pbf +0 -0
- package/static/font/13312-13567.pbf +0 -0
- package/static/font/13568-13823.pbf +0 -0
- package/static/font/13824-14079.pbf +0 -0
- package/static/font/14080-14335.pbf +0 -0
- package/static/font/14336-14591.pbf +0 -0
- package/static/font/14592-14847.pbf +0 -0
- package/static/font/14848-15103.pbf +0 -0
- package/static/font/15104-15359.pbf +0 -0
- package/static/font/1536-1791.pbf +0 -0
- package/static/font/15360-15615.pbf +0 -0
- package/static/font/15616-15871.pbf +0 -0
- package/static/font/15872-16127.pbf +0 -0
- package/static/font/16128-16383.pbf +0 -0
- package/static/font/16384-16639.pbf +0 -0
- package/static/font/16640-16895.pbf +0 -0
- package/static/font/16896-17151.pbf +0 -0
- package/static/font/17152-17407.pbf +0 -0
- package/static/font/17408-17663.pbf +0 -0
- package/static/font/17664-17919.pbf +0 -0
- package/static/font/1792-2047.pbf +0 -0
- package/static/font/17920-18175.pbf +0 -0
- package/static/font/18176-18431.pbf +0 -0
- package/static/font/18432-18687.pbf +0 -0
- package/static/font/18688-18943.pbf +0 -0
- package/static/font/18944-19199.pbf +0 -0
- package/static/font/19200-19455.pbf +0 -0
- package/static/font/19456-19711.pbf +0 -0
- package/static/font/19712-19967.pbf +0 -0
- package/static/font/19968-20223.pbf +0 -0
- package/static/font/20224-20479.pbf +0 -0
- package/static/font/2048-2303.pbf +0 -0
- package/static/font/20480-20735.pbf +0 -0
- package/static/font/20736-20991.pbf +0 -0
- package/static/font/20992-21247.pbf +0 -0
- package/static/font/21248-21503.pbf +0 -0
- package/static/font/21504-21759.pbf +0 -0
- package/static/font/21760-22015.pbf +0 -0
- package/static/font/22016-22271.pbf +0 -0
- package/static/font/22272-22527.pbf +192 -26
- package/static/font/22528-22783.pbf +0 -0
- package/static/font/22784-23039.pbf +0 -0
- package/static/font/2304-2559.pbf +0 -0
- package/static/font/23040-23295.pbf +0 -0
- package/static/font/23296-23551.pbf +0 -0
- package/static/font/23552-23807.pbf +0 -0
- package/static/font/23808-24063.pbf +0 -0
- package/static/font/24064-24319.pbf +0 -0
- package/static/font/24320-24575.pbf +0 -0
- package/static/font/24576-24831.pbf +0 -0
- package/static/font/24832-25087.pbf +0 -0
- package/static/font/25088-25343.pbf +0 -0
- package/static/font/25344-25599.pbf +0 -0
- package/static/font/256-511.pbf +0 -0
- package/static/font/2560-2815.pbf +0 -0
- package/static/font/25600-25855.pbf +0 -0
- package/static/font/25856-26111.pbf +0 -0
- package/static/font/26112-26367.pbf +0 -0
- package/static/font/26368-26623.pbf +0 -0
- package/static/font/26624-26879.pbf +0 -0
- package/static/font/26880-27135.pbf +0 -0
- package/static/font/27136-27391.pbf +0 -0
- package/static/font/27392-27647.pbf +0 -0
- package/static/font/27648-27903.pbf +0 -0
- package/static/font/27904-28159.pbf +0 -0
- package/static/font/2816-3071.pbf +0 -0
- package/static/font/28160-28415.pbf +0 -0
- package/static/font/28416-28671.pbf +0 -0
- package/static/font/28672-28927.pbf +0 -0
- package/static/font/28928-29183.pbf +0 -0
- package/static/font/29184-29439.pbf +0 -0
- package/static/font/29440-29695.pbf +0 -0
- package/static/font/29696-29951.pbf +0 -0
- package/static/font/29952-30207.pbf +0 -0
- package/static/font/30208-30463.pbf +0 -0
- package/static/font/30464-30719.pbf +0 -0
- package/static/font/3072-3327.pbf +0 -0
- package/static/font/30720-30975.pbf +0 -0
- package/static/font/30976-31231.pbf +0 -0
- package/static/font/31232-31487.pbf +0 -0
- package/static/font/31488-31743.pbf +0 -0
- package/static/font/31744-31999.pbf +0 -0
- package/static/font/32000-32255.pbf +0 -0
- package/static/font/32256-32511.pbf +0 -0
- package/static/font/32512-32767.pbf +0 -0
- package/static/font/32768-33023.pbf +0 -0
- package/static/font/33024-33279.pbf +0 -0
- package/static/font/3328-3583.pbf +0 -0
- package/static/font/33280-33535.pbf +0 -0
- package/static/font/33536-33791.pbf +0 -0
- package/static/font/33792-34047.pbf +0 -0
- package/static/font/34048-34303.pbf +0 -0
- package/static/font/34304-34559.pbf +0 -0
- package/static/font/34560-34815.pbf +0 -0
- package/static/font/34816-35071.pbf +0 -0
- package/static/font/35072-35327.pbf +0 -0
- package/static/font/35328-35583.pbf +0 -0
- package/static/font/35584-35839.pbf +0 -0
- package/static/font/3584-3839.pbf +0 -0
- package/static/font/35840-36095.pbf +0 -0
- package/static/font/36096-36351.pbf +0 -0
- package/static/font/36352-36607.pbf +0 -0
- package/static/font/36608-36863.pbf +0 -0
- package/static/font/36864-37119.pbf +0 -0
- package/static/font/37120-37375.pbf +0 -0
- package/static/font/37376-37631.pbf +0 -0
- package/static/font/37632-37887.pbf +0 -0
- package/static/font/37888-38143.pbf +0 -0
- package/static/font/38144-38399.pbf +0 -0
- package/static/font/3840-4095.pbf +0 -0
- package/static/font/38400-38655.pbf +45 -4
- package/static/font/38656-38911.pbf +0 -0
- package/static/font/38912-39167.pbf +0 -0
- package/static/font/39168-39423.pbf +0 -0
- package/static/font/39424-39679.pbf +0 -0
- package/static/font/39680-39935.pbf +0 -0
- package/static/font/39936-40191.pbf +0 -0
- package/static/font/40192-40447.pbf +0 -0
- package/static/font/40448-40703.pbf +0 -0
- package/static/font/40704-40959.pbf +0 -0
- package/static/font/4096-4351.pbf +0 -0
- package/static/font/40960-41215.pbf +3 -0
- package/static/font/41216-41471.pbf +3 -0
- package/static/font/41472-41727.pbf +3 -0
- package/static/font/41728-41983.pbf +3 -0
- package/static/font/41984-42239.pbf +3 -0
- package/static/font/42240-42495.pbf +3 -0
- package/static/font/42496-42751.pbf +3 -0
- package/static/font/42752-43007.pbf +0 -0
- package/static/font/43008-43263.pbf +0 -0
- package/static/font/43264-43519.pbf +0 -0
- package/static/font/4352-4607.pbf +0 -0
- package/static/font/43520-43775.pbf +0 -0
- package/static/font/43776-44031.pbf +0 -0
- package/static/font/44032-44287.pbf +0 -0
- package/static/font/44288-44543.pbf +0 -0
- package/static/font/44544-44799.pbf +0 -0
- package/static/font/44800-45055.pbf +0 -0
- package/static/font/45056-45311.pbf +0 -0
- package/static/font/45312-45567.pbf +0 -0
- package/static/font/45568-45823.pbf +0 -0
- package/static/font/45824-46079.pbf +0 -0
- package/static/font/4608-4863.pbf +0 -0
- package/static/font/46080-46335.pbf +0 -0
- package/static/font/46336-46591.pbf +0 -0
- package/static/font/46592-46847.pbf +0 -0
- package/static/font/46848-47103.pbf +0 -0
- package/static/font/47104-47359.pbf +0 -0
- package/static/font/47360-47615.pbf +0 -0
- package/static/font/47616-47871.pbf +0 -0
- package/static/font/47872-48127.pbf +0 -0
- package/static/font/48128-48383.pbf +0 -0
- package/static/font/48384-48639.pbf +0 -0
- package/static/font/4864-5119.pbf +0 -0
- package/static/font/48640-48895.pbf +0 -0
- package/static/font/48896-49151.pbf +0 -0
- package/static/font/49152-49407.pbf +0 -0
- package/static/font/49408-49663.pbf +0 -0
- package/static/font/49664-49919.pbf +0 -0
- package/static/font/49920-50175.pbf +0 -0
- package/static/font/50176-50431.pbf +0 -0
- package/static/font/50432-50687.pbf +0 -0
- package/static/font/50688-50943.pbf +0 -0
- package/static/font/50944-51199.pbf +0 -0
- package/static/font/512-767.pbf +0 -0
- package/static/font/5120-5375.pbf +3 -0
- package/static/font/51200-51455.pbf +0 -0
- package/static/font/51456-51711.pbf +0 -0
- package/static/font/51712-51967.pbf +0 -0
- package/static/font/51968-52223.pbf +0 -0
- package/static/font/52224-52479.pbf +0 -0
- package/static/font/52480-52735.pbf +0 -0
- package/static/font/52736-52991.pbf +0 -0
- package/static/font/52992-53247.pbf +0 -0
- package/static/font/53248-53503.pbf +0 -0
- package/static/font/53504-53759.pbf +0 -0
- package/static/font/5376-5631.pbf +3 -0
- package/static/font/53760-54015.pbf +0 -0
- package/static/font/54016-54271.pbf +0 -0
- package/static/font/54272-54527.pbf +0 -0
- package/static/font/54528-54783.pbf +0 -0
- package/static/font/54784-55039.pbf +0 -0
- package/static/font/55040-55295.pbf +0 -0
- package/static/font/55296-55551.pbf +3 -0
- package/static/font/55552-55807.pbf +3 -0
- package/static/font/55808-56063.pbf +3 -0
- package/static/font/56064-56319.pbf +3 -0
- package/static/font/5632-5887.pbf +3 -0
- package/static/font/56320-56575.pbf +3 -0
- package/static/font/56576-56831.pbf +3 -0
- package/static/font/56832-57087.pbf +3 -0
- package/static/font/57088-57343.pbf +3 -0
- package/static/font/57344-57599.pbf +3 -0
- package/static/font/57600-57855.pbf +3 -0
- package/static/font/57856-58111.pbf +3 -0
- package/static/font/58112-58367.pbf +3 -0
- package/static/font/58368-58623.pbf +3 -0
- package/static/font/58624-58879.pbf +3 -0
- package/static/font/5888-6143.pbf +0 -0
- package/static/font/58880-59135.pbf +3 -0
- package/static/font/59136-59391.pbf +3 -0
- package/static/font/59392-59647.pbf +3 -0
- package/static/font/59648-59903.pbf +3 -0
- package/static/font/59904-60159.pbf +3 -0
- package/static/font/60160-60415.pbf +3 -0
- package/static/font/60416-60671.pbf +3 -0
- package/static/font/60672-60927.pbf +3 -0
- package/static/font/60928-61183.pbf +3 -0
- package/static/font/61184-61439.pbf +3 -0
- package/static/font/6144-6399.pbf +0 -0
- package/static/font/61440-61695.pbf +3 -0
- package/static/font/61696-61951.pbf +3 -0
- package/static/font/61952-62207.pbf +3 -0
- package/static/font/62208-62463.pbf +3 -0
- package/static/font/62464-62719.pbf +3 -0
- package/static/font/62720-62975.pbf +3 -0
- package/static/font/62976-63231.pbf +3 -0
- package/static/font/63232-63487.pbf +3 -0
- package/static/font/63488-63743.pbf +3 -0
- package/static/font/63744-63999.pbf +0 -0
- package/static/font/6400-6655.pbf +0 -0
- package/static/font/64000-64255.pbf +0 -0
- package/static/font/64256-64511.pbf +0 -0
- package/static/font/64512-64767.pbf +0 -0
- package/static/font/64768-65023.pbf +0 -0
- package/static/font/65024-65279.pbf +0 -0
- package/static/font/65280-65535.pbf +0 -0
- package/static/font/6656-6911.pbf +3 -0
- package/static/font/6912-7167.pbf +0 -0
- package/static/font/7168-7423.pbf +0 -0
- package/static/font/7424-7679.pbf +0 -0
- package/static/font/768-1023.pbf +0 -0
- package/static/font/7680-7935.pbf +0 -0
- package/static/font/7936-8191.pbf +0 -0
- package/static/font/8192-8447.pbf +0 -0
- package/static/font/8448-8703.pbf +0 -0
- package/static/font/8704-8959.pbf +0 -0
- package/static/font/8960-9215.pbf +0 -0
- package/static/font/9216-9471.pbf +0 -0
- package/static/font/9472-9727.pbf +0 -0
- package/static/font/9728-9983.pbf +0 -0
- package/static/font/9984-10239.pbf +0 -0
- package/static/index.html +59 -0
- package/static/logo.png +0 -0
- package/static/logo.svg +78 -0
- package/static/mapbox-gl-rtl-text@0.2.3.js +9851 -0
- package/static/minimal.js +9 -0
- package/static/minimal.json +7 -0
- package/static/sprites/maki.json +1706 -0
- package/static/sprites/maki.license +116 -0
- package/static/sprites/maki.png +0 -0
- package/static/sprites/maki@2x.json +1706 -0
- package/static/sprites/maki@2x.png +0 -0
- package/static/sprites/temaki.json +4306 -0
- package/static/sprites/temaki.license +118 -0
- package/static/sprites/temaki.png +0 -0
- package/static/sprites/temaki@2x.json +4306 -0
- package/static/sprites/temaki@2x.png +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Wikidata photo popup
|
|
3
|
+
description: Customize the query popup with a photo from wikidata loaded via [hub.toolforge.org](https://hub.toolforge.org)
|
|
4
|
+
options:
|
|
5
|
+
zoom: 10.45
|
|
6
|
+
center: [-95.9674, 36.1482]
|
|
7
|
+
popupTemplate: >
|
|
8
|
+
<h2>
|
|
9
|
+
{{ type }}
|
|
10
|
+
<a href="https://openhistoricalmap.org/{{ type }}/{{ id }}" target="_blank">{{ id }}</a>
|
|
11
|
+
<a href="https://openhistoricalmap.org/edit?{{ type }}={{ id }}" target="_blank">✏️</a>
|
|
12
|
+
</h2>
|
|
13
|
+
{% assign wikidata = tags["siren:model:wikidata"] ?? tags["model:wikidata"] %}
|
|
14
|
+
{%- if wikidata %}
|
|
15
|
+
<img src="https://hub.toolforge.org/{{ wikidata }}?p=image&w=200&h=150">
|
|
16
|
+
<hr>
|
|
17
|
+
{%- endif %}
|
|
18
|
+
{%- for tag in tags %}
|
|
19
|
+
<code>{{ tag[0] }} = {{ tag[1] }}</code>
|
|
20
|
+
<br>
|
|
21
|
+
{%- endfor %}
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
[bbox:{{bbox}}];
|
|
25
|
+
|
|
26
|
+
node["emergency"="siren"][~"^(siren:)?model:wikidata$"~".*"];
|
|
27
|
+
|
|
28
|
+
out geom;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Find features within an administrative boundary
|
|
3
|
+
description: Use `map_to_area` to search for bus stops within Washington, DC.
|
|
4
|
+
options:
|
|
5
|
+
zoom: 10
|
|
6
|
+
center: [-77.016, 38.899]
|
|
7
|
+
---
|
|
8
|
+
/* To run for your own city, replace with the wikidata ID for your city below */
|
|
9
|
+
nwr[wikidata=Q3551781][type=boundary];
|
|
10
|
+
map_to_area -> .a;
|
|
11
|
+
nwr[highway=bus_stop](area.a);
|
|
12
|
+
out center;
|
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(c) Copyright 2022 Daniel Schep
|
|
2
|
+
|
|
3
|
+
Licensed under the MIT license:
|
|
4
|
+
|
|
5
|
+
http://www.opensource.org/licenses/mit-license.php
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
|
15
|
+
all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Display buildings in 3D
|
|
3
|
+
description: Use extrusions to display buildings' height in 3D.
|
|
4
|
+
type: vector
|
|
5
|
+
options:
|
|
6
|
+
center: [ -74.0066, 40.7135 ]
|
|
7
|
+
zoom: 15.5
|
|
8
|
+
pitch: 45
|
|
9
|
+
bearing: -17.6
|
|
10
|
+
antialias: true
|
|
11
|
+
style:
|
|
12
|
+
extends: https://styles.trailsta.sh/maptiler-basic.json
|
|
13
|
+
layers:
|
|
14
|
+
- type: fill-extrusion
|
|
15
|
+
minzoom: 15
|
|
16
|
+
beforeLayerId: poi_label
|
|
17
|
+
source-layer: building
|
|
18
|
+
filter: ['!=', [get, hide_3d], true]
|
|
19
|
+
fill-extrusion-color:
|
|
20
|
+
- interpolate
|
|
21
|
+
- [ linear ]
|
|
22
|
+
- [ get, render_height ]
|
|
23
|
+
- 0
|
|
24
|
+
- lightgray
|
|
25
|
+
- 200
|
|
26
|
+
- royalblue
|
|
27
|
+
- 400
|
|
28
|
+
- lightblue
|
|
29
|
+
fill-extrusion-height:
|
|
30
|
+
- interpolate
|
|
31
|
+
- [ linear ]
|
|
32
|
+
- [ zoom ]
|
|
33
|
+
- 15
|
|
34
|
+
- 0
|
|
35
|
+
- 16
|
|
36
|
+
- [ get, render_height ]
|
|
37
|
+
fill-extrusion-base:
|
|
38
|
+
- case
|
|
39
|
+
- [ '>=', [ get, zoom ], 16 ]
|
|
40
|
+
- [ get, render_min_height ]
|
|
41
|
+
- 0
|
|
42
|
+
---
|
|
43
|
+
https://tile.ourmap.us/data/v3.json
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Extrude polygons for 3D indoor mapping
|
|
3
|
+
description: Create a 3D indoor map with the fill-extrude-height paint property.
|
|
4
|
+
type: geojson
|
|
5
|
+
options:
|
|
6
|
+
center: [ -87.61694, 41.86625 ]
|
|
7
|
+
zoom: 15.99
|
|
8
|
+
pitch: 40
|
|
9
|
+
bearing: 20
|
|
10
|
+
style:
|
|
11
|
+
layers:
|
|
12
|
+
- type: fill-extrusion
|
|
13
|
+
# See the MapLibre Style Specification for details on data expressions.
|
|
14
|
+
# https://maplibre.org/maplibre-style-spec/expressions/
|
|
15
|
+
|
|
16
|
+
# Get the fill-extrusion-color from the source 'color' property.
|
|
17
|
+
fill-extrusion-color: [get, color]
|
|
18
|
+
|
|
19
|
+
# Get fill-extrusion-height from the source 'height' property.
|
|
20
|
+
fill-extrusion-height: [get, height]
|
|
21
|
+
|
|
22
|
+
# Get fill-extrusion-base from the source 'base_height' property.
|
|
23
|
+
fill-extrusion-base: [get, base_height]
|
|
24
|
+
|
|
25
|
+
# Make extrusions slightly opaque for see through indoor walls.
|
|
26
|
+
fill-extrusion-opacity: 0.5
|
|
27
|
+
---
|
|
28
|
+
https://maplibre.org/maplibre-gl-js/docs/assets/indoor-3d-map.geojson
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 3D Terrain
|
|
3
|
+
description: Go beyond hillshade and show elevation in actual 3D.
|
|
4
|
+
options:
|
|
5
|
+
center: [ 11.39085, 47.27574 ]
|
|
6
|
+
zoom: 12
|
|
7
|
+
pitch: 70
|
|
8
|
+
maxPitch: 85
|
|
9
|
+
controls:
|
|
10
|
+
- type: NavigationControl
|
|
11
|
+
options:
|
|
12
|
+
visualizePitch: true
|
|
13
|
+
- type: TerrainControl
|
|
14
|
+
options:
|
|
15
|
+
source: terrainSource
|
|
16
|
+
exaggeration: 1
|
|
17
|
+
style:
|
|
18
|
+
sources:
|
|
19
|
+
# Use a different source for terrain and hillshade layers, to improve render quality
|
|
20
|
+
terrainSource:
|
|
21
|
+
type: raster-dem
|
|
22
|
+
tiles:
|
|
23
|
+
- 'https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png'
|
|
24
|
+
encoding: terrarium
|
|
25
|
+
tileSize: 256
|
|
26
|
+
hillshadeSource:
|
|
27
|
+
type: raster-dem
|
|
28
|
+
tiles:
|
|
29
|
+
- 'https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png'
|
|
30
|
+
encoding: terrarium
|
|
31
|
+
tileSize: 256
|
|
32
|
+
layers:
|
|
33
|
+
- type: 'hillshade'
|
|
34
|
+
source: hillshadeSource
|
|
35
|
+
hillshade-shadow-color: '#473B24'
|
|
36
|
+
terrain:
|
|
37
|
+
source: terrainSource
|
|
38
|
+
exaggeration: 1
|
|
39
|
+
---
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add an icon to the map
|
|
3
|
+
description: Add an icon to the map from an external URL and use it in a symbol layer.
|
|
4
|
+
type: geojson
|
|
5
|
+
options:
|
|
6
|
+
zoom: 1
|
|
7
|
+
style:
|
|
8
|
+
layers:
|
|
9
|
+
- type: symbol
|
|
10
|
+
icon-image: https://upload.wikimedia.org/wikipedia/commons/7/7c/201408_cat.png
|
|
11
|
+
icon-size: 0.25
|
|
12
|
+
extends: https://styles.trailsta.sh/osm-liberty.json
|
|
13
|
+
---
|
|
14
|
+
{
|
|
15
|
+
"type": "FeatureCollection",
|
|
16
|
+
"features": [
|
|
17
|
+
{
|
|
18
|
+
"type": "Feature",
|
|
19
|
+
"properties": {},
|
|
20
|
+
"geometry": {
|
|
21
|
+
"coordinates": [0, 0],
|
|
22
|
+
"type": "Point"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Change the default position for attribution
|
|
3
|
+
description: Place attribution in the top-left position when initializing a map.
|
|
4
|
+
options:
|
|
5
|
+
attributionControl: false
|
|
6
|
+
center: [-77.04, 38.907]
|
|
7
|
+
zoom: 11.15
|
|
8
|
+
controls:
|
|
9
|
+
- type: AttributionControl
|
|
10
|
+
position: top-left
|
|
11
|
+
style: https://styles.trailsta.sh/osm-liberty.json
|
|
12
|
+
---
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Change the case of labels
|
|
3
|
+
type: geojson
|
|
4
|
+
description: Use the upcase and downcase expressions to change the case of labels.
|
|
5
|
+
options:
|
|
6
|
+
center: [-116.231, 43.604]
|
|
7
|
+
zoom: 11
|
|
8
|
+
style:
|
|
9
|
+
extends: https://styles.trailsta.sh/osm-liberty.json
|
|
10
|
+
layers:
|
|
11
|
+
- type: symbol
|
|
12
|
+
icon-image: maki:dog-park
|
|
13
|
+
icon-size: 0.3666
|
|
14
|
+
text-field:
|
|
15
|
+
- format
|
|
16
|
+
- [upcase, [get, FacilityName]]
|
|
17
|
+
- {font-scale: 0.8}
|
|
18
|
+
- "\n"
|
|
19
|
+
- {}
|
|
20
|
+
- [downcase, [get, Comments]]
|
|
21
|
+
- {font-scale: 0.6}
|
|
22
|
+
text-font: [Open Sans Semibold]
|
|
23
|
+
text-offset: [0, 0.6]
|
|
24
|
+
text-anchor: top
|
|
25
|
+
---
|
|
26
|
+
https://maplibre.org/maplibre-gl-js/docs/assets/boise.geojson
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Create and style clusters
|
|
3
|
+
description: Use MapLibre GL JS' built-in functions to visualize points as clusters.
|
|
4
|
+
options:
|
|
5
|
+
center: [-103.59179687498357, 40.66995747013945]
|
|
6
|
+
zoom: 3
|
|
7
|
+
style:
|
|
8
|
+
extends: https://styles.trailsta.sh/osm-liberty.json
|
|
9
|
+
sources:
|
|
10
|
+
# Add a new source from our GeoJSON data and
|
|
11
|
+
# set the 'cluster' option to true. GL-JS will
|
|
12
|
+
# add the point_count property to your source data.
|
|
13
|
+
earthquakes:
|
|
14
|
+
type: geojson
|
|
15
|
+
# Point to GeoJSON data. This example visualizes all M1.0+ earthquakes
|
|
16
|
+
# from 12/22/15 to 1/21/16 as logged by USGS' Earthquake hazards program.
|
|
17
|
+
data: https://maplibre.org/maplibre-gl-js/docs/assets/earthquakes.geojson
|
|
18
|
+
cluster: true
|
|
19
|
+
clusterMaxZoom: 14 # Max zoom to cluster points on
|
|
20
|
+
clusterRadius: 50 # Radius of each cluster when clustering points (defaults to 50)
|
|
21
|
+
layers:
|
|
22
|
+
- type: circle
|
|
23
|
+
source: earthquakes
|
|
24
|
+
filter: [has, point_count]
|
|
25
|
+
# Use step expressions (https://maplibre.org/maplibre-style-spec/#expressions-step)
|
|
26
|
+
# with three steps to implement three types of circles:
|
|
27
|
+
# * Blue, 20px circles when point count is less than 100
|
|
28
|
+
# * Yellow, 30px circles when point count is between 100 and 750
|
|
29
|
+
# * Pink, 40px circles when point count is greater than or equal to 750
|
|
30
|
+
circle-color:
|
|
31
|
+
- step
|
|
32
|
+
- [get, point_count]
|
|
33
|
+
- '#51bbd6'
|
|
34
|
+
- 100
|
|
35
|
+
- '#f1f075'
|
|
36
|
+
- 750
|
|
37
|
+
- '#f28cb1'
|
|
38
|
+
circle-radius:
|
|
39
|
+
- step
|
|
40
|
+
- [get, point_count]
|
|
41
|
+
- 20
|
|
42
|
+
- 100
|
|
43
|
+
- 30
|
|
44
|
+
- 750
|
|
45
|
+
- 40
|
|
46
|
+
- type: symbol
|
|
47
|
+
source: earthquakes
|
|
48
|
+
filter: [has, point_count]
|
|
49
|
+
text-field: '{point_count_abbreviated}'
|
|
50
|
+
text-font: [DIN Offc Pro Medium, Arial Unicode MS Bold]
|
|
51
|
+
text-size: 12
|
|
52
|
+
- type: circle
|
|
53
|
+
source: earthquakes
|
|
54
|
+
filter: ['!', [has, point_count]]
|
|
55
|
+
circle-color: '#11b4da'
|
|
56
|
+
circle-radius: 4
|
|
57
|
+
circle-stroke-width: 1
|
|
58
|
+
circle-stroke-color: '#fff'
|
|
59
|
+
---
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Cooperative gestures
|
|
3
|
+
description: Enable cooperative gestures with a specific language. See how it behaves in fullscreen mode.
|
|
4
|
+
style: https://demotiles.maplibre.org/style.json
|
|
5
|
+
options:
|
|
6
|
+
center: [-74.5, 40]
|
|
7
|
+
zoom: 4
|
|
8
|
+
cooperativeGestures: true
|
|
9
|
+
controls:
|
|
10
|
+
- type: FullscreenControl
|
|
11
|
+
---
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add custom icons with Symbols
|
|
3
|
+
description: Add custom symbol icons to your map.
|
|
4
|
+
type: geojson
|
|
5
|
+
options:
|
|
6
|
+
center: [-65.017, -16.457]
|
|
7
|
+
zoom: 5
|
|
8
|
+
style:
|
|
9
|
+
extends: https://styles.trailsta.sh/osm-liberty.json
|
|
10
|
+
layers:
|
|
11
|
+
- type: symbol
|
|
12
|
+
icon-image:
|
|
13
|
+
- concat
|
|
14
|
+
- https://picsum.photos/
|
|
15
|
+
- [get, iconSize]
|
|
16
|
+
- /
|
|
17
|
+
- [get, iconSize]
|
|
18
|
+
---
|
|
19
|
+
{
|
|
20
|
+
"type": "FeatureCollection",
|
|
21
|
+
"features": [
|
|
22
|
+
{
|
|
23
|
+
"type": "Feature",
|
|
24
|
+
"properties": {
|
|
25
|
+
"message": "Foo",
|
|
26
|
+
"iconSize": 60
|
|
27
|
+
},
|
|
28
|
+
"geometry": {
|
|
29
|
+
"type": "Point",
|
|
30
|
+
"coordinates": [
|
|
31
|
+
-66.324462890625,
|
|
32
|
+
-16.024695711685304
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "Feature",
|
|
38
|
+
"properties": {
|
|
39
|
+
"message": "Bar",
|
|
40
|
+
"iconSize": 50
|
|
41
|
+
},
|
|
42
|
+
"geometry": {
|
|
43
|
+
"type": "Point",
|
|
44
|
+
"coordinates": [
|
|
45
|
+
-61.2158203125,
|
|
46
|
+
-15.97189158092897
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "Feature",
|
|
52
|
+
"properties": {
|
|
53
|
+
"message": "Baz",
|
|
54
|
+
"iconSize": 40
|
|
55
|
+
},
|
|
56
|
+
"geometry": {
|
|
57
|
+
"type": "Point",
|
|
58
|
+
"coordinates": [
|
|
59
|
+
-63.29223632812499,
|
|
60
|
+
-18.28151823530889
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Style lines with a data-driven property
|
|
3
|
+
description: Create a visualization with a data expression for line-color.
|
|
4
|
+
type: geojson
|
|
5
|
+
options:
|
|
6
|
+
zoom: 16
|
|
7
|
+
center: [ -122.48383155304096, 37.82882682974591 ]
|
|
8
|
+
style:
|
|
9
|
+
extends: https://styles.trailsta.sh/osm-liberty.json
|
|
10
|
+
layers:
|
|
11
|
+
- type: line
|
|
12
|
+
line-width: 3
|
|
13
|
+
line-color: [ get, color ]
|
|
14
|
+
---
|
|
15
|
+
{
|
|
16
|
+
"type": "FeatureCollection",
|
|
17
|
+
"features": [
|
|
18
|
+
{
|
|
19
|
+
"type": "Feature",
|
|
20
|
+
"properties": {
|
|
21
|
+
"color": "#F7455D"
|
|
22
|
+
},
|
|
23
|
+
"geometry": {
|
|
24
|
+
"type": "LineString",
|
|
25
|
+
"coordinates": [
|
|
26
|
+
[
|
|
27
|
+
-122.4833858013153,
|
|
28
|
+
37.829607404976734
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
-122.4830961227417,
|
|
32
|
+
37.82932776098012
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
-122.4830746650696,
|
|
36
|
+
37.82932776098012
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
-122.48218417167662,
|
|
40
|
+
37.82889558180985
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
-122.48218417167662,
|
|
44
|
+
37.82890193740421
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
-122.48221099376678,
|
|
48
|
+
37.82868372835086
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
-122.4822163581848,
|
|
52
|
+
37.82868372835086
|
|
53
|
+
],
|
|
54
|
+
[
|
|
55
|
+
-122.48205006122589,
|
|
56
|
+
37.82801003030873
|
|
57
|
+
]
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "Feature",
|
|
63
|
+
"properties": {
|
|
64
|
+
"color": "#33C9EB"
|
|
65
|
+
},
|
|
66
|
+
"geometry": {
|
|
67
|
+
"type": "LineString",
|
|
68
|
+
"coordinates": [
|
|
69
|
+
[
|
|
70
|
+
-122.48393028974533,
|
|
71
|
+
37.829471820141016
|
|
72
|
+
],
|
|
73
|
+
[
|
|
74
|
+
-122.48395174741744,
|
|
75
|
+
37.82940826466351
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
-122.48395174741744,
|
|
79
|
+
37.829412501697064
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
-122.48423874378203,
|
|
83
|
+
37.829357420242125
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
-122.48422533273697,
|
|
87
|
+
37.829361657278575
|
|
88
|
+
],
|
|
89
|
+
[
|
|
90
|
+
-122.48459815979002,
|
|
91
|
+
37.8293425906126
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
-122.48458743095398,
|
|
95
|
+
37.8293447091313
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
-122.4847564101219,
|
|
99
|
+
37.82932776098012
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
-122.48474299907684,
|
|
103
|
+
37.829331998018276
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
-122.4849334359169,
|
|
107
|
+
37.829298101706186
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
-122.48492807149889,
|
|
111
|
+
37.82930022022615
|
|
112
|
+
],
|
|
113
|
+
[
|
|
114
|
+
-122.48509705066681,
|
|
115
|
+
37.82920488676767
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
-122.48509168624878,
|
|
119
|
+
37.82920912381288
|
|
120
|
+
],
|
|
121
|
+
[
|
|
122
|
+
-122.48520433902739,
|
|
123
|
+
37.82905870855876
|
|
124
|
+
],
|
|
125
|
+
[
|
|
126
|
+
-122.48519897460936,
|
|
127
|
+
37.82905870855876
|
|
128
|
+
],
|
|
129
|
+
[
|
|
130
|
+
-122.4854403734207,
|
|
131
|
+
37.828594749716714
|
|
132
|
+
],
|
|
133
|
+
[
|
|
134
|
+
-122.48543500900269,
|
|
135
|
+
37.82860534241688
|
|
136
|
+
],
|
|
137
|
+
[
|
|
138
|
+
-122.48571664094925,
|
|
139
|
+
37.82808206121068
|
|
140
|
+
],
|
|
141
|
+
[
|
|
142
|
+
-122.48570591211319,
|
|
143
|
+
37.82809689109353
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
-122.4858346581459,
|
|
147
|
+
37.82797189627337
|
|
148
|
+
],
|
|
149
|
+
[
|
|
150
|
+
-122.48582661151886,
|
|
151
|
+
37.82797825194729
|
|
152
|
+
],
|
|
153
|
+
[
|
|
154
|
+
-122.4859634041786,
|
|
155
|
+
37.82788503534145
|
|
156
|
+
],
|
|
157
|
+
[
|
|
158
|
+
-122.48595803976059,
|
|
159
|
+
37.82788927246246
|
|
160
|
+
],
|
|
161
|
+
[
|
|
162
|
+
-122.48605459928514,
|
|
163
|
+
37.82786596829394
|
|
164
|
+
]
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Display and style rich text labels
|
|
3
|
+
description: Use the format expression to display country labels in both English and in the local language.
|
|
4
|
+
options:
|
|
5
|
+
zoom: 4
|
|
6
|
+
center: [ 9.49, 49.01 ]
|
|
7
|
+
style:
|
|
8
|
+
extends: https://styles.trailsta.sh/maptiler-basic.json
|
|
9
|
+
layers:
|
|
10
|
+
- id: country_label
|
|
11
|
+
text-field:
|
|
12
|
+
- format
|
|
13
|
+
- [get, name_en]
|
|
14
|
+
- font-scale: 1.2
|
|
15
|
+
- "\n"
|
|
16
|
+
- {}
|
|
17
|
+
- [get, name]
|
|
18
|
+
- font-scale: 0.8
|
|
19
|
+
text-font:
|
|
20
|
+
- literal
|
|
21
|
+
- [Open Sans Italic]
|
|
22
|
+
---
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add a pattern to a polygon
|
|
3
|
+
description: Use fill-pattern to draw a polygon from a repeating image pattern.
|
|
4
|
+
type: geojson
|
|
5
|
+
options:
|
|
6
|
+
zoom: 1
|
|
7
|
+
style:
|
|
8
|
+
extends: https://styles.trailsta.sh/osm-liberty.json
|
|
9
|
+
layers:
|
|
10
|
+
- type: fill
|
|
11
|
+
fill-pattern: https://upload.wikimedia.org/wikipedia/commons/thumb/6/60/Cat_silhouette.svg/64px-Cat_silhouette.svg.png
|
|
12
|
+
---
|
|
13
|
+
{
|
|
14
|
+
"type": "Feature",
|
|
15
|
+
"properties": {},
|
|
16
|
+
"geometry": {
|
|
17
|
+
"type": "Polygon",
|
|
18
|
+
"coordinates": [
|
|
19
|
+
[
|
|
20
|
+
[
|
|
21
|
+
-30,
|
|
22
|
+
-25
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
-30,
|
|
26
|
+
35
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
30,
|
|
30
|
+
35
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
30,
|
|
34
|
+
-25
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
-30,
|
|
38
|
+
-25
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: View a fullscreen map
|
|
3
|
+
description: Toggle between current view and fullscreen mode. Does not work on iPhones because a pseudo-fullscreen is used, and the code is embedded in an iframe, which prevents the map from scaling.
|
|
4
|
+
options:
|
|
5
|
+
zoom: 13
|
|
6
|
+
center: [ 11.255, 43.77 ]
|
|
7
|
+
style: https://styles.trailsta.sh/osm-bright.json
|
|
8
|
+
controls:
|
|
9
|
+
- type: FullscreenControl
|
|
10
|
+
---
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add a new layer below labels
|
|
3
|
+
description: Use the second argument of addLayer to add a layer below labels.
|
|
4
|
+
type: geojson
|
|
5
|
+
options:
|
|
6
|
+
zoom: 4
|
|
7
|
+
center: [ -88.13734351262877, 35.137451890638886 ]
|
|
8
|
+
style:
|
|
9
|
+
extends: https://styles.trailsta.sh/osm-liberty.json
|
|
10
|
+
layers:
|
|
11
|
+
- type: fill
|
|
12
|
+
# This is the important part of this example:
|
|
13
|
+
# layers can have a `beforeLayerId` property containing a string
|
|
14
|
+
# representing another layer's name. if the other layer
|
|
15
|
+
# exists in the stylesheet already, the new layer will be positioned
|
|
16
|
+
# right before that layer in the stack, making it possible to put
|
|
17
|
+
# 'overlays' anywhere in the layer stack.
|
|
18
|
+
# Insert the layer beneath the first symbol layer.
|
|
19
|
+
beforeLayerId: road_one_way_arrow
|
|
20
|
+
fill-opacity: .5
|
|
21
|
+
fill-color: '#f08'
|
|
22
|
+
---
|
|
23
|
+
https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_50m_urban_areas.geojson
|