From a0989ff54e061a16dbd93d52a9957431aeed57f2 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Wed, 22 Jan 2025 09:41:26 +0800 Subject: Update --- snippets/json_maplibre_style | 26 ++++++++++++++++++++++++++ snippets/json_maplibre_style_circle | 19 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 snippets/json_maplibre_style create mode 100644 snippets/json_maplibre_style_circle (limited to 'snippets') diff --git a/snippets/json_maplibre_style b/snippets/json_maplibre_style new file mode 100644 index 0000000..bc88d10 --- /dev/null +++ b/snippets/json_maplibre_style @@ -0,0 +1,26 @@ +{ + "version": 8, + "name": "simple", + "id": "simple", + "bearing": 0, + "pitch": 0, + "sources": { + "nlsc": { + "type": "raster", + "maxzoom": 15, + "tiles": [ + "https://wmts.nlsc.gov.tw/wmts/B5000/default/GoogleMapsCompatible/{z}/{y}/{x}" + ] + } + }, + "glyphs": "https://tile.openstreetmap.jp/fonts/{fontstack}/{range}.pbf", + "layers": [ + { + "id": "background", + "type": "background", + "paint": { + "background-color": "#f8f4f0" + } + } + ] +} diff --git a/snippets/json_maplibre_style_circle b/snippets/json_maplibre_style_circle new file mode 100644 index 0000000..485241c --- /dev/null +++ b/snippets/json_maplibre_style_circle @@ -0,0 +1,19 @@ + { + "id": "points", + "type": "circle", + "source": "power.points", + "paint": { + "circle-color": "red", + "circle-radius": [ + "interpolate", ["linear"], ["zoom"], + 10, 3, + 18, 10 + ], + "circle-stroke-width": [ + "interpolate", ["linear"], ["zoom"], + 8, 1, + 13, 3 + ], + "circle-stroke-color": "white" + } + } -- cgit v1.2.3-70-g09d2