@map-jr/styles 1.0.0 → 1.2.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,32 @@ Each version has one entry. The styles are served at `https://styles.map-jr.org/
4
4
  map increases the first number, and its entry starts with a section "Breaking changes". Every other version
5
5
  increases the second number. The third number is always 0. See [Release](README.md#release).
6
6
 
7
+ ## 1.2.0 (2026-11-19)
8
+
9
+ - The styles are for map-jr-gl 0.9.0 or later: the peer dependency is now `>=0.9.0`. The filters of `map-jr:ssr` read
10
+ `["zoom"]` as the zoom of the render, and `relief` in Elevation · radar is a global state in `visibility`, both of
11
+ which map-jr-gl reads from 0.9.0. The styles still load in an older map-jr-gl, with the limits of 1.1.0. The
12
+ layers, images and URLs are the same.
13
+
14
+ ## 1.1.0 (2026-11-19)
15
+
16
+ - Elevation · color is renamed Elevation: `elevation-color.json` is now `elevation.json`, with the same layers. The
17
+ old name is gone.
18
+ - Elevation · zero (`elevation-zero.json`): Elevation without the elevation tiles. It has no hillshade, no 3D terrain
19
+ and no labels of peaks, and keeps the shaded relief of Natural Earth at low zooms.
20
+ - Elevation · radar: the global state `relief` (`true` by default) switches off the hillshade and the labels of
21
+ peaks. map-jr-gl reads a global state in `visibility` after 0.8.0
22
+ ([map-jr/map-jr-gl#998](https://github.com/map-jr/map-jr-gl/issues/998)); MapLibre GL JS from 5.16.0.
23
+ - MapLibre styles: Elevation, Elevation · zero and Elevation · radar for MapLibre GL JS 5.16.0 or later, at
24
+ `/1/maplibre/<name>.json` and `@map-jr/styles/maplibre/<name>.json`. They have the same layers and global state,
25
+ with the icons in a sprite (`/1/maplibre/sprite`) in the colors of each branch, and the Noto Sans glyphs of
26
+ OpenFreeMap in place of the fonts of the system. See [MapLibre GL JS](README.md#maplibre-gl-js).
27
+ - Each style has `metadata["map-jr:ssr"]`, for the first view that the server renderer of map-jr-gl writes: a
28
+ placeholder, like a blurred image while the map loads. It keeps the background, the large areas, the water, the
29
+ main roads, the borders and the names of places, and leaves out the rest. With `tileZoomOffset: 2` (map-jr-gl
30
+ after 0.8.0) it is 4 to 12 KB with gzip in most views, 86% smaller than without it. The map in the browser and
31
+ MapLibre GL JS ignore it. See [Server render](README.md#how-it-is-made).
32
+
7
33
  ## 1.0.0 (2026-11-18)
8
34
 
9
35
  The first release at `https://styles.map-jr.org/1/`.
package/NOTICE.md CHANGED
@@ -9,7 +9,7 @@ The material below comes from other projects and keeps its own terms. `dist/` is
9
9
  | `icons/upstream/*.svg` | [openfreemap-styles](https://github.com/hyperknot/openfreemap-styles), the liberty and bright icon sets | `icons/upstream/LICENSE-liberty.md`, `icons/upstream/LICENSE-bright.md` |
10
10
  | `icons/extra/*.svg` | Glyphs of [Maki](https://github.com/mapbox/maki), on the disc of the sprite icons | CC0 1.0: `icons/extra/LICENSE-maki.txt` |
11
11
  | `styles/src/openfreemap/*.json` | [openfreemap-styles](https://github.com/hyperknot/openfreemap-styles), at the commit in `styles/src/openfreemap/COMMIT` | BSD 3-Clause for the style code and CC-BY 4.0 for the design: `styles/src/openfreemap/LICENSE*.md` |
12
- | `styles/src/elevation-color.json` | Based on [OSM Liberty](https://github.com/maputnik/osm-liberty), with the tiles and the sprite of OpenFreeMap | BSD 3-Clause for the style code and CC-BY 4.0 for the design, as `styles/src/openfreemap/LICENSE-liberty.md` |
12
+ | `styles/src/elevation.json` | Based on [OSM Liberty](https://github.com/maputnik/osm-liberty), with the tiles and the sprite of OpenFreeMap | BSD 3-Clause for the style code and CC-BY 4.0 for the design, as `styles/src/openfreemap/LICENSE-liberty.md` |
13
13
  | `styles/src/elevation-radar.json` | Based on a style of the OpenMapTiles family; the closest is [MapTiler Basic](https://github.com/openmaptiles/maptiler-basic-gl-style) | BSD 3-Clause for the style code and CC-BY 4.0 for the design |
14
14
  | `shields/networks.json` | Made from the shield definitions of [OSM Americana](https://github.com/osm-americana/openstreetmap-americana) (`https://americanamap.org/shields.json`) | CC0 1.0 |
15
15
 
package/README.md CHANGED
@@ -1,34 +1,53 @@
1
1
  # map-jr-styles
2
2
 
3
3
  Map styles for [map-jr-gl](https://github.com/map-jr/map-jr-gl) that carry their own icons and road shields as SVG
4
- templates, in place of a sprite sheet. Each style has a light and a dark branch, chosen by the global state
5
- property `color-scheme`.
4
+ templates, in place of a sprite sheet, and versions of the elevation styles for
5
+ [MapLibre GL JS](https://maplibre.org/maplibre-gl-js/). Each elevation style has a light and a dark branch, chosen by
6
+ the global state property `color-scheme`.
6
7
 
7
- | Style | File | What it is |
8
- |---|---|---|
9
- | Elevation · color | `dist/styles/elevation-color.json` | A full-color terrain map. Dark is the same map under bright moonlight. |
10
- | Elevation · radar | `dist/styles/elevation-radar.json` | A neutral base for an overlay (a choropleth, snowfall), with relief and peaks for context. |
11
- | OpenFreeMap | `dist/styles/openfreemap-{bright,dark,fiord,liberty,positron}.json` | The styles of OpenFreeMap as they are, with the images of the sprite inside the style. |
8
+ ## The styles
9
+
10
+ Pass a link as the `style` of the map. Each one is the latest release of version 1.
11
+
12
+ | Style | map-jr-gl | MapLibre GL JS 5.16+ | What it is |
13
+ |---|---|---|---|
14
+ | Elevation | [elevation.json](https://styles.map-jr.org/1/elevation.json) | [maplibre/elevation.json](https://styles.map-jr.org/1/maplibre/elevation.json) | A full-color terrain map. Dark is the same map under bright moonlight. |
15
+ | Elevation · zero | [elevation-zero.json](https://styles.map-jr.org/1/elevation-zero.json) | [maplibre/elevation-zero.json](https://styles.map-jr.org/1/maplibre/elevation-zero.json) | Elevation without the elevation tiles: no hillshade, no 3D terrain, no labels of peaks. It keeps the shaded relief of Natural Earth at low zooms. |
16
+ | Elevation · radar | [elevation-radar.json](https://styles.map-jr.org/1/elevation-radar.json) | [maplibre/elevation-radar.json](https://styles.map-jr.org/1/maplibre/elevation-radar.json) | A neutral base for an overlay (a choropleth, snowfall), with relief and peaks for context, which the global state `relief` switches off. |
17
+ | OpenFreeMap Bright | [openfreemap-bright.json](https://styles.map-jr.org/1/openfreemap-bright.json) | [OpenFreeMap's](https://tiles.openfreemap.org/styles/bright) | The styles of OpenFreeMap as they are, with the images of the sprite inside the style. For MapLibre, use the styles of OpenFreeMap itself. |
18
+ | OpenFreeMap Dark | [openfreemap-dark.json](https://styles.map-jr.org/1/openfreemap-dark.json) | [OpenFreeMap's](https://tiles.openfreemap.org/styles/dark) | 〃 |
19
+ | OpenFreeMap Fiord | [openfreemap-fiord.json](https://styles.map-jr.org/1/openfreemap-fiord.json) | [OpenFreeMap's](https://tiles.openfreemap.org/styles/fiord) | 〃 |
20
+ | OpenFreeMap Liberty | [openfreemap-liberty.json](https://styles.map-jr.org/1/openfreemap-liberty.json) | [OpenFreeMap's](https://tiles.openfreemap.org/styles/liberty) | 〃 |
21
+ | OpenFreeMap Positron | [openfreemap-positron.json](https://styles.map-jr.org/1/openfreemap-positron.json) | [OpenFreeMap's](https://tiles.openfreemap.org/styles/positron) | 〃 |
22
+
23
+ ```js
24
+ createMap('map', {style: 'https://styles.map-jr.org/1/elevation.json'}); // map-jr-gl
25
+ new maplibregl.Map({container: 'map', style: 'https://styles.map-jr.org/1/maplibre/elevation.json'}); // MapLibre GL JS
26
+ ```
27
+
28
+ The same styles are in the npm package [`@map-jr/styles`](#from-npm): `@map-jr/styles/<name>.json` and
29
+ `@map-jr/styles/maplibre/<name>.json`. In this repository they are built to `dist/styles/` and `dist/maplibre/`.
12
30
 
13
31
  Each style also has a `.min.json` without white space. The styles need a map-jr-gl build that reads
14
- `metadata["map-jr:images"]` and `params` of the `image` expression. MapLibre GL JS draws them without icons.
32
+ `metadata["map-jr:images"]` and `params` of the `image` expression. MapLibre GL JS draws them without icons: use the
33
+ MapLibre styles for it ([below](#maplibre-gl-js)).
15
34
 
16
- The two elevation styles have no `glyphs`: map-jr-gl draws their labels with the fonts of the browser, and makes no
35
+ The three elevation styles have no `glyphs`: map-jr-gl draws their labels with the fonts of the browser, and makes no
17
36
  requests for fonts. Each `text-font` is a stack of the fonts of the system, such as
18
37
  `["system-ui Semibold", "Segoe UI Semibold", "Roboto Medium", "sans-serif"]`: SF Pro on Apple systems, Segoe UI on
19
38
  Windows, Roboto on Android. The first name gives the weight and the style (Regular, Semibold, Bold, Italic, Semibold
20
39
  Italic). This needs a map-jr-gl with commit `bd4d4ea` (a `text-font` stack as a CSS family list, with `system-ui`
21
40
  unquoted); an older one draws the labels in the `fontFamily` of the map. To give every reader the same font, pass the
22
41
  font files in the `fonts` option of map-jr-gl. MapLibre GL JS does not load a style
23
- with text and no `glyphs`: add a `glyphs` URL to use these two styles there. The OpenFreeMap styles keep the glyphs
24
- of OpenFreeMap.
42
+ with text and no `glyphs`: its versions of these three styles have the glyphs of OpenFreeMap. The OpenFreeMap styles
43
+ keep the glyphs of OpenFreeMap.
25
44
 
26
45
  ## Use
27
46
 
28
47
  The styles are at `https://styles.map-jr.org`, by major version:
29
48
 
30
49
  ```js
31
- createMap('map', {style: 'https://styles.map-jr.org/1/elevation-color.json'});
50
+ createMap('map', {style: 'https://styles.map-jr.org/1/elevation.json'});
32
51
  ```
33
52
 
34
53
  | Path | What it gives | Cached |
@@ -40,6 +59,36 @@ A new major version (`/2/`) breaks a map: a layer id is renamed or removed, a gl
40
59
  styles need a newer map-jr-gl. Every other release is a new minor version (`1.1`), and `/1/` moves to it. To keep
41
60
  one release as it is, host the zip of its GitHub release.
42
61
 
62
+ ### MapLibre GL JS
63
+
64
+ The three elevation styles have a version for [MapLibre GL JS](https://maplibre.org/maplibre-gl-js/) 5.16.0 or later,
65
+ with the same layers, sources and global state:
66
+
67
+ ```js
68
+ new maplibregl.Map({container: 'map', style: 'https://styles.map-jr.org/1/maplibre/elevation.json'});
69
+ map.setGlobalStateProperty('color-scheme', 'dark');
70
+ ```
71
+
72
+ | Path | What it is |
73
+ |---|---|
74
+ | `/1/maplibre/{elevation,elevation-zero,elevation-radar}.json` | The style, without white space. |
75
+ | `/1/maplibre/sprite.json`, `sprite.png`, `sprite@2x.json`, `sprite@2x.png` | The sprite that the three styles share: each icon and shield in the colors of the light and of the dark branch. |
76
+
77
+ Each differs from the map-jr-gl style in three things:
78
+
79
+ - **The icons are in a sprite.** Each icon with `params` becomes one image of the sprite for each set of colors that it
80
+ can have, named by the icon and a hash of its colors (`arrow-94b3af`). The `icon-image` of a layer chooses the name
81
+ with a `match` on the class, for each branch of `color-scheme`. The sprite has 293 images: 63 KB at 1x, 154 KB at 2x.
82
+ - **The labels use glyphs.** The fonts of the system become the Noto Sans fonts of OpenFreeMap
83
+ (`https://tiles.openfreemap.org/fonts/`): Regular, and Bold for Semibold and Bold, and Italic for both italics. So
84
+ the labels look less like the platform than in map-jr-gl.
85
+ - **No `map-jr:` metadata.** MapLibre has no server render and no SVG images, so `map-jr:ssr` and `map-jr:images` are
86
+ removed.
87
+
88
+ MapLibre GL JS reads the global state `relief` of Elevation · radar from 5.16.0. With `relief` false it loads no
89
+ elevation tiles, and its attribution leaves out Mapterhorn. The OpenFreeMap styles have no MapLibre version: OpenFreeMap
90
+ serves them for MapLibre already (`https://tiles.openfreemap.org/styles/liberty`).
91
+
43
92
  ### From npm
44
93
 
45
94
  The package [`@map-jr/styles`](https://www.npmjs.com/package/@map-jr/styles) has the same styles, by the same names:
@@ -49,15 +98,19 @@ pnpm add @map-jr/styles
49
98
  ```
50
99
 
51
100
  ```js
52
- import style from '@map-jr/styles/elevation-color.json' with {type: 'json'};
101
+ import style from '@map-jr/styles/elevation.json' with {type: 'json'};
53
102
 
54
103
  createMap('map', {style});
55
104
  ```
56
105
 
106
+ The MapLibre styles are at `@map-jr/styles/maplibre/<name>.json`. Their sprite stays at `https://styles.map-jr.org/1/`:
107
+ the package does not have it.
108
+
57
109
  A bundler (Vite, webpack, esbuild) takes the import as it is; Node.js needs `with {type: 'json'}`. A range such as
58
110
  `^1.0.0` takes each release that does not break a map, as `/1/` does. The CDNs of npm serve the package too:
59
- `https://cdn.jsdelivr.net/npm/@map-jr/styles@1/elevation-color.json`. The package has only the styles without white
60
- space (`dist/styles/*.min.json`), the changelog, and the licences of the material in `NOTICE.md`.
111
+ `https://cdn.jsdelivr.net/npm/@map-jr/styles@1/elevation.json`. The package has only the styles without white
112
+ space (`dist/styles/*.min.json` and `dist/maplibre/*.min.json`), the changelog, and the licences of the material in
113
+ `NOTICE.md`.
61
114
 
62
115
  ## Release
63
116
 
@@ -131,7 +184,8 @@ pnpm run build
131
184
  ```
132
185
 
133
186
  `dist/` is committed, so that a style has a URL. `pnpm run check` fails when `dist/` is not what the sources give;
134
- CI runs it, and `pnpm test`.
187
+ CI runs it, and `pnpm test`. The build writes the map-jr-gl styles to `dist/styles/`, and the MapLibre styles and
188
+ their sprite to `dist/maplibre/`.
135
189
 
136
190
  ## Editing a style with Maputnik
137
191
 
@@ -139,12 +193,12 @@ An edit in Maputnik reaches the repository as a change to the sources, because t
139
193
  and overwrites an edit made there.
140
194
 
141
195
  1. Open the built style in the Maputnik of map-jr-gl:
142
- `https://map-jr.github.io/maputnik/?style=https://styles.map-jr.org/@main/elevation-color.json`.
143
- 2. Edit it, and save it with **Save** (a file such as `elevation-color.json`).
196
+ `https://map-jr.github.io/maputnik/?style=https://styles.map-jr.org/@main/elevation.json`.
197
+ 2. Edit it, and save it with **Save** (a file such as `elevation.json`).
144
198
  3. Apply it to the sources, and build:
145
199
 
146
200
  ```bash
147
- ppnpm run apply-edit ~/Downloads/elevation-color.json
201
+ ppnpm run apply-edit ~/Downloads/elevation.json
148
202
  pnpm run build
149
203
  ```
150
204
 
@@ -183,6 +237,7 @@ styles/src/*.json the source styles, which use the sprite
183
237
  styles/*.mjs one module for each style (or family): its dark palette and its fixes
184
238
  styles/shared.mjs the dark icon colors and the neutral shield plate
185
239
  lib/ the build steps
240
+ lib/maplibre.mjs the MapLibre styles and their sprite
186
241
  ```
187
242
 
188
243
  **Icons.** `lib/icons.mjs` minifies each upstream SVG with SVGO and replaces each color by a slot named for its
@@ -217,23 +272,81 @@ and writes `shields/networks.json`. It keeps the networks of a country, state or
217
272
  county and city networks. A shield that Americana draws from artwork (most US states, Mexico, Korea) gets the pill or
218
273
  the neutral plate here, unless `MANUAL` in `shields/shields.mjs` gives it a look.
219
274
 
220
- **Global state.** The two styles of this repository read three properties of the global state of the map:
275
+ **Global state.** The elevation styles of this repository read these properties of the global state of the map:
221
276
 
222
277
  | Property | Values | Effect |
223
278
  |---|---|---|
224
279
  | `color-scheme` | `light` (default), `dark` | The branch of the style. map-jr-gl sets it from `colorScheme`. |
225
280
  | `elevation-unit` | `ft` (default), `m` | The unit of the elevation in peak labels. Set it with `globalState: {'elevation-unit': 'm'}`. |
281
+ | `relief` | `true` (default), `false` | Elevation · radar: the hillshade and the labels of peaks. With `false` they are hidden, and no elevation tiles load. |
226
282
  | `language` | none (default), or a language code of the tiles such as `de`, `fr`, `ja` | The language of the names, for each feature that has a name in it. Without it, a place with a name in a script other than Latin shows its Latin name and that name, and other names are English. |
227
283
 
284
+ `relief` switches layers with a `global-state` expression in `visibility`, which MapLibre GL JS reads from
285
+ 5.16.0, and map-jr-gl from 0.9.0. An
286
+ older map-jr-gl shows the layers and loads their tiles whatever the state is.
287
+
228
288
  **OpenFreeMap styles.** `styles/openfreemap.mjs` builds the five styles of OpenFreeMap with `inlineSprite`: the
229
- images that a layer can ask for go into the style as plain SVG, and the layers are not changed.
289
+ images that a layer can ask for go into the style as plain SVG, and the layers are not changed, except for
290
+ `map-jr:ssr` in their metadata (below).
291
+
292
+ **Server render.** `ssr` in `lib/style.mjs` gives the layers of each style `metadata["map-jr:ssr"]`: changes for
293
+ the first view that the server renderer of map-jr-gl writes (`renderToSVG`, `renderFirstView`, the `ssr` prop of
294
+ the Vue component), which a page shows inline until the map draws. MapLibre GL JS and the map in the browser ignore
295
+ them. The first view is a placeholder, like a blurred image while the full one loads: it must be small, and it only
296
+ gives the colors and the large shapes of the place. The map draws everything else over it.
297
+
298
+ | Layers | `map-jr:ssr` | Why |
299
+ |---|---|---|
300
+ | The background, rasters, hillshade | none | |
301
+ | Land cover, land use, parks | `{"simplify": 8, "minSize": 48}` | Only the large shapes. |
302
+ | Water | `{"simplify": 6, "minSize": 24}` | |
303
+ | Borders | `{"simplify": 8, "minSize": 32}` | |
304
+ | Roads: motorways, trunk and primary roads | `{"simplify": 8, "minSize": 1, "filter": …}` | A road is many short pieces: a larger `minSize` breaks it into dashes. |
305
+ | Roads: secondary and tertiary | the same, from zoom 14 | At lower zooms they are most of the bytes. |
306
+ | Roads: minor and service | the same, from zoom 15 | |
307
+ | Names of countries, states, cities and towns | `{"filter": …}` | |
308
+ | Everything else: buildings, casings, tunnels, railways, paths, rivers drawn as lines, other labels and icons, image patterns | `{"hidden": true}` | |
309
+ | A layer below the zoom where its width or opacity can be seen (0.1 pixel, 5%) | `{"minzoom": …}` | The server does not fetch or read its tiles. (map-jr-gl 0.8.0 also wrote their paths, which draw nothing.) |
310
+
311
+ The filter of a road layer draws each class from its zoom, and the layer gets `minzoom` of the most important class
312
+ that its own filter names. The filters are written for map-jr-gl 0.9.0, which reads `["zoom"]` in a filter as the zoom
313
+ of the render. (map-jr-gl 0.8.0 reads the zoom of the tile, which is never above 14 on OpenMapTiles: with it, minor
314
+ roads do not show.)
315
+
316
+ Render the placeholder with `tileZoomOffset: 2` (map-jr-gl 0.9.0 or later): the server builds it from tiles two zooms
317
+ lower, which have fewer and longer features, and fetches fewer tiles.
318
+
319
+ | Over six views and six styles, gzip | `overrides: false` | Placeholder | Placeholder, `tileZoomOffset: 2` |
320
+ |---|---|---|---|
321
+ | All 36 renders | 2194 KB, 144 tiles | 521 KB (−76%), 144 tiles | **304 KB (−86%), 60 tiles** |
322
+ | Most views | 21 to 125 KB | 5 to 21 KB | 4 to 12 KB |
323
+ | Paris at zoom 10 | 67 to 150 KB | 31 to 42 KB | 13 to 18 KB |
324
+
325
+ The views are Manhattan at zoom 12 and 15, Oakland at 13.5, Paris at 10, the Alps at 11 and Atlanta's suburbs at 15,
326
+ 800 × 500, measured with map-jr-gl at c4d5e87. A layer whose source style has `map-jr:ssr` keeps it. To render
327
+ without the changes, pass `overrides: false`; to change one layer, pass `overrides: {"<layer id>": {…}}`.
328
+
329
+ **MapLibre styles.** `maplibre` in `lib/maplibre.mjs` builds them from the built map-jr-gl style of each style that
330
+ has a global state `color-scheme`. For each `image` expression it finds the values that the image and its colors can
331
+ depend on: the labels of each `match` in it, and the names of the images, less those that the filter of the layer
332
+ leaves out. It works out the name and the colors for each value, in light and in dark, with the expressions of
333
+ MapLibre (`@maplibre/maplibre-gl-style-spec`), and writes one `match` for each branch. The build stops when an image
334
+ reads more than two properties, another global state, or the zoom. `sheet` packs the images in rows, 256 pixels
335
+ wide, and draws them at 1x and 2x with resvg. A shield keeps its `stretchX`, `stretchY` and `content`. The style is
336
+ then checked with `validateStyleMin` of MapLibre.
230
337
 
231
338
  ## Preview
232
339
 
233
340
  `pnpm run preview` draws each style in light and dark, side by side, at the views of `test/views.json` (a range of
234
- zoom levels and kinds of place), into `test/shots/`. Set `STATE` to try a global state: `STATE='{"elevation-unit":"m"}' node test/preview.mjs elevation-color chamonix`. It needs Playwright with Chromium, and the `dist/` folder of a
341
+ zoom levels and kinds of place), into `test/shots/`. Set `STATE` to try a global state: `STATE='{"elevation-unit":"m"}' node test/preview.mjs elevation chamonix`. It needs Playwright with Chromium, and the `dist/` folder of a
235
342
  map-jr-gl build in `test/lib/`. Pass a style and a view to draw one: `node test/preview.mjs elevation-radar rockies`.
236
343
 
344
+ `test/maplibre.html` shows a MapLibre style in MapLibre GL JS, with the sprite of the checkout. Serve the repository
345
+ root (`python3 -m http.server 8123`) and open
346
+ `http://localhost:8123/test/maplibre.html?style=elevation&scheme=dark&view=11/39.74/-105`. `state.relief=false` sets
347
+ a global state, `pitch=60` tilts the map, and `v=6.19.0` picks another version of MapLibre GL JS. The bar at the top
348
+ lists the images that the sprite does not have.
349
+
237
350
  ## Sources and licences
238
351
 
239
352
  The code and the shield templates of this repository have the MIT licence (`LICENSE`). The icons, the source styles
@@ -0,0 +1 @@
1
+ {"version":8,"metadata":{"studio:source":"https://whatismyelevation.com/styles/radar.json","studio:palette":"Slate land, ink water, sage vegetation, warm arterial roads. Light branch preserves the source style."},"state":{"color-scheme":{"default":"light"},"elevation-unit":{"default":"ft"},"language":{"default":""},"relief":{"default":true}},"sources":{"openmaptiles":{"url":"https://tiles.openfreemap.org/planet","type":"vector"},"terrarium":{"type":"raster-dem","tiles":["https://tiles.mapterhorn.com/{z}/{x}/{y}.webp"],"maxzoom":12,"tileSize":512,"encoding":"terrarium","attribution":"<a href=\"https://mapterhorn.com/attribution\">© Mapterhorn</a>"}},"sprite":"https://styles.map-jr.org/1/maplibre/sprite","glyphs":"https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf","layers":[{"id":"background","type":"background","paint":{"background-color":["case",["==",["global-state","color-scheme"],"dark"],"#1b1f24","rgba(255, 255, 255, 1)"]}},{"id":"landuse_residential","type":"fill","source":"openmaptiles","source-layer":"landuse","filter":["all",["in","class","residential","suburb","neighbourhood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":["interpolate",["linear"],["zoom"],6,["case",["==",["global-state","color-scheme"],"dark"],"#1b1f24","rgb(255, 255, 255)"],14,["case",["==",["global-state","color-scheme"],"dark"],"#414850","rgb(240, 240, 240)"],18,["case",["==",["global-state","color-scheme"],"dark"],"#414850","rgb(240, 240, 240)"]],"fill-opacity":{"stops":[[0,0],[6,0.15],[10,0.2]]}}},{"id":"landcover_grass","type":"fill","source":"openmaptiles","source-layer":"landcover","filter":["==","class","grass"],"paint":{"fill-color":["case",["==",["global-state","color-scheme"],"dark"],"#474f57","rgb(244, 244, 244)"],"fill-opacity":0.15}},{"id":"landcover_wood","type":"fill","source":"openmaptiles","source-layer":"landcover","filter":["==","class","wood"],"paint":{"fill-color":["case",["==",["global-state","color-scheme"],"dark"],"#535b63","rgb(237, 237, 237)"],"fill-opacity":0.2}},{"id":"landcover_sand","type":"fill","source":"openmaptiles","source-layer":"landcover","filter":["all",["in","class","sand"]],"paint":{"fill-color":["case",["==",["global-state","color-scheme"],"dark"],"#727980","rgb(188, 188, 188)"],"fill-opacity":0.2,"fill-antialias":false}},{"id":"landcover_glacier","type":"fill","source":"openmaptiles","source-layer":"landcover","filter":["all",["in","subclass","glacier","ice_shelf"]],"layout":{"visibility":"visible"},"paint":{"fill-color":["case",["==",["global-state","color-scheme"],"dark"],"#2c3238","rgb(243, 243, 243)"],"fill-opacity":0.8}},{"id":"terrain-rgb-terrarium","type":"hillshade","source":"terrarium","minzoom":0,"paint":{"hillshade-shadow-color":["case",["==",["global-state","color-scheme"],"dark"],"#050608","hsl(39, 21%, 33%)"],"hillshade-illumination-direction":315,"hillshade-exaggeration":["interpolate",["linear"],["zoom"],10,["case",["==",["global-state","color-scheme"],"dark"],0.45,0.2],16,["case",["==",["global-state","color-scheme"],"dark"],0.3,0.1]],"hillshade-highlight-color":["case",["==",["global-state","color-scheme"],"dark"],"#7b858e","#FFFFFF"],"hillshade-accent-color":"#000000"},"layout":{"visibility":["case",["global-state","relief"],"visible","none"]}},{"id":"water","type":"fill","source":"openmaptiles","source-layer":"water","filter":["all",["!=","intermittent",1],["!=","brunnel","tunnel"]],"layout":{"visibility":"visible"},"paint":{"fill-color":["case",["==",["global-state","color-scheme"],"dark"],"#30373f","rgb(217, 218, 221)"]}},{"id":"water_intermittent","type":"fill","source":"openmaptiles","source-layer":"water","filter":["all",["==","intermittent",1]],"layout":{"visibility":"visible"},"paint":{"fill-color":["case",["==",["global-state","color-scheme"],"dark"],"#30373f","rgb(217, 218, 221)"],"fill-opacity":0.7}},{"id":"waterway_tunnel","type":"line","source":"openmaptiles","source-layer":"waterway","filter":["all",["==","brunnel","tunnel"]],"layout":{"visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#30373f","rgb(217, 218, 221)"],"line-width":1,"line-opacity":0.7,"line-dasharray":[3,3]}},{"id":"waterway","type":"line","source":"openmaptiles","source-layer":"waterway","filter":["all",["!in","brunnel","tunnel","bridge"],["!=","intermittent",1]],"layout":{"visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#30373f","rgb(217, 218, 221)"],"line-width":{"stops":[[8,1],[15,3]]},"line-opacity":1}},{"id":"waterway_intermittent","type":"line","source":"openmaptiles","source-layer":"waterway","filter":["all",["!in","brunnel","tunnel","bridge"],["==","intermittent",1]],"layout":{"visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#30373f","rgb(217, 218, 221)"],"line-width":{"stops":[[8,1],[15,3]]},"line-opacity":1,"line-dasharray":[2,1]}},{"id":"building","type":"fill","source":"openmaptiles","source-layer":"building","layout":{"visibility":"none"},"paint":{"fill-color":["case",["==",["global-state","color-scheme"],"dark"],"#42454a","rgba(212, 204, 176, 1)"],"fill-opacity":0.4,"fill-antialias":true}},{"id":"road_area_pier","type":"fill","source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["==","class","pier"]],"layout":{"visibility":"visible"},"paint":{"fill-color":["case",["==",["global-state","color-scheme"],"dark"],"#30363c","rgb(250, 250, 250)"],"fill-opacity":1,"fill-antialias":true}},{"id":"road_area_bridge","type":"fill","source":"openmaptiles","source-layer":"transportation","filter":["all",["==","$type","Polygon"],["in","brunnel","bridge"]],"layout":{},"paint":{"fill-color":["case",["==",["global-state","color-scheme"],"dark"],"#3b4147","hsl(47, 26%, 88%)"],"fill-opacity":0.7}},{"id":"road_pier","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["in","class","pier"]],"layout":{"line-cap":"round","line-join":"round"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#3b4147","hsl(47, 26%, 88%)"],"line-width":1}},{"id":"road_path","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":14,"filter":["all",["in","class","path","track"]],"layout":{"line-cap":"square","line-join":"bevel"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#30363c","hsl(0, 0%, 97%)"],"line-width":{"base":1.55,"stops":[[14,0.5],[20,4]]},"line-dasharray":[1,1]}},{"id":"road_minor","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":13,"filter":["all",["in","class","minor","service"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#373d44","hsl(0, 0%, 92%)"],"line-width":{"base":1.55,"stops":[[4,0.25],[20,24]]}}},{"id":"road_tunnel","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","tunnel"],["in","class","primary","secondary","tertiary","trunk","minor_road"]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#454c54","#fff"],"line-width":{"base":1.4,"stops":[[7,0.5],[20,24]]},"line-opacity":0.75,"line-dasharray":[0.28,0.14]}},{"id":"road_major","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":7,"filter":["all",["in","class","trunk","primary","secondary","tertiary"],["!=","brunnel","tunnel"],["!=","brunnel","bridge"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#454c54","#eee"],"line-width":{"base":1.4,"stops":[[7,0.5],[20,28]]}}},{"id":"road_motorway","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":4,"filter":["all",["==","class","motorway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#50575f","hsl(0, 0%, 92%)"],"line-width":{"base":1.4,"stops":[[8,1],[16,10]]},"line-offset":0}},{"id":"railway_transit_tunnel","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":0,"filter":["all",["==","brunnel","tunnel"],["==","class","transit"]],"layout":{"line-cap":"butt","line-join":"miter","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#63676e","hsl(34, 12%, 66%)"],"line-opacity":0.5,"line-dasharray":[3,3]}},{"id":"railway","type":"line","source":"openmaptiles","source-layer":"transportation","minzoom":11,"filter":["==","class","rail"],"layout":{"visibility":"none"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#63676e","hsl(34, 12%, 66%)"],"line-opacity":0.5}},{"id":"railway_transit","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["==","class","transit"],["!=","brunnel","tunnel"]],"layout":{"visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#63676e","hsl(34, 12%, 66%)"],"line-opacity":0.5}},{"id":"aeroway_taxiway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":12,"filter":["all",["in","class","taxiway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#434a52","rgba(255, 255, 255, 1)"],"line-width":1,"line-opacity":1}},{"id":"aeroway_runway","type":"line","metadata":{"mapbox:group":"1444849345966.4436"},"source":"openmaptiles","source-layer":"aeroway","minzoom":4,"filter":["all",["in","class","runway"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#434a52","rgba(255, 255, 255, 1)"],"line-width":5,"line-opacity":1}},{"id":"bridge_waterway","type":"line","source":"openmaptiles","source-layer":"waterway","filter":["all",["==","brunnel","bridge"]],"layout":{"line-cap":"round","line-join":"round","visibility":"none"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#30373f","hsl(205, 56%, 73%)"],"line-width":1}},{"id":"bridge","type":"line","source":"openmaptiles","source-layer":"transportation","filter":["all",["==","brunnel","bridge"],["in","class","primary","secondary","tertiary","trunk"]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#454c54","#eee"],"line-width":{"base":1.4,"stops":[[7,0.5],[20,28]]}}},{"id":"admin_sub","type":"line","source":"openmaptiles","source-layer":"boundary","minzoom":3,"filter":["all",["in","admin_level",4,6,8],["!=","maritime",1]],"layout":{"visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"rgba(107, 116, 125, 0.7)","rgba(184, 192, 201, 0.5)"],"line-width":1.25,"line-dasharray":[2,1]}},{"id":"admin_disputed","type":"line","source":"openmaptiles","source-layer":"boundary","minzoom":5,"filter":["all",["all",["<=","admin_level",2],["==","$type","LineString"],["==","disputed",1]],["!=","maritime",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#6b747d","rgb(194, 201, 209)"],"line-width":1,"line-dasharray":[2,2]}},{"id":"admin_country","type":"line","source":"openmaptiles","source-layer":"boundary","minzoom":0,"filter":["all",["all",["<=","admin_level",2],["==","$type","LineString"],["!has","claimed_by"]],["!=","maritime",1],["!=","disputed",1]],"layout":{"line-cap":"round","line-join":"round","visibility":"visible"},"paint":{"line-color":["case",["==",["global-state","color-scheme"],"dark"],"#6b747d","rgb(194, 201, 209)"],"line-width":1}},{"id":"label_airport","type":"symbol","source":"openmaptiles","source-layer":"aerodrome_label","minzoom":10,"filter":["all",["has","iata"]],"layout":{"icon-size":1,"text-font":["Noto Sans Regular"],"text-size":11,"text-field":["coalesce",["get",["concat","name:",["global-state","language"]]],["case",["all",["has","name:nonlatin"],["has","name:latin"]],["concat",["get","name:latin"],"\n",["get","name:nonlatin"]],["coalesce",["get","name_en"],["get","name:latin"],["get","name"]]]],"visibility":"visible","text-anchor":"top","text-offset":[0,0.5],"text-max-width":8},"paint":{"text-color":["case",["==",["global-state","color-scheme"],"dark"],"#858f98","rgb(141, 148, 156)"],"text-halo-blur":1,"text-halo-color":["case",["==",["global-state","color-scheme"],"dark"],"rgba(27, 31, 36, 0.8)","rgba(255, 255, 255, 0.75)"],"text-halo-width":1}},{"id":"label_road","type":"symbol","source":"openmaptiles","source-layer":"transportation_name","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","subclass","ferry"]],"layout":{"text-font":["Noto Sans Regular"],"text-size":{"base":1.4,"stops":[[10,8],[20,14]]},"text-field":["coalesce",["get",["concat","name:",["global-state","language"]]],["case",["all",["has","name:nonlatin"],["has","name:latin"]],["concat",["get","name:latin"]," ",["get","name:nonlatin"]],["coalesce",["get","name_en"],["get","name:latin"],["get","name"]]]],"visibility":"visible","text-transform":"uppercase","symbol-placement":"line","text-letter-spacing":0.1,"text-rotation-alignment":"map"},"paint":{"text-color":["case",["==",["global-state","color-scheme"],"dark"],"#a4adb5","rgb(107, 115, 124)"],"text-halo-color":"rgba(0, 0, 0, 0)","text-halo-width":2}},{"id":"poi_peak_3","type":"symbol","source":"openmaptiles","source-layer":"mountain_peak","minzoom":10,"maxzoom":24,"filter":["all",["==","$type","Point"],[">=","class",3]],"layout":{"text-anchor":"top","text-field":["case",["==",["global-state","elevation-unit"],"m"],["case",[">",["to-number",["get","ele"],0],0],["concat",["get","name_int"]," (",["number-format",["get","ele"],{}]," m)"],["get","name_int"]],["case",[">",["to-number",["get","ele_ft"],0],0],["concat",["get","name_int"]," (",["number-format",["get","ele_ft"],{}]," ft)"],["get","name_int"]]],"text-font":["Noto Sans Regular"],"text-size":12,"text-max-width":6,"icon-image":["case",["==",["global-state","color-scheme"],"dark"],"mountain_11-72517d","mountain_11-4fff07"],"icon-optional":false,"icon-text-fit":"none","symbol-placement":"point","text-offset":[0,1],"visibility":["case",["global-state","relief"],"visible","none"]},"paint":{"text-color":["case",["==",["global-state","color-scheme"],"dark"],"#a4adb5","#666"],"text-halo-blur":0.5,"text-halo-color":["case",["==",["global-state","color-scheme"],"dark"],"#1b1f24","#ffffff"],"text-halo-width":1}},{"id":"poi_peak_2","type":"symbol","source":"openmaptiles","source-layer":"mountain_peak","minzoom":4,"maxzoom":24,"filter":["all",["==","$type","Point"],["==","class",2]],"layout":{"text-anchor":"top","text-field":["case",["==",["global-state","elevation-unit"],"m"],["case",[">",["to-number",["get","ele"],0],0],["concat",["get","name_int"]," (",["number-format",["get","ele"],{}]," m)"],["get","name_int"]],["case",[">",["to-number",["get","ele_ft"],0],0],["concat",["get","name_int"]," (",["number-format",["get","ele_ft"],{}]," ft)"],["get","name_int"]]],"text-font":["Noto Sans Regular"],"text-size":12,"text-max-width":6,"icon-image":["case",["==",["global-state","color-scheme"],"dark"],"mountain_11-72517d","mountain_11-4fff07"],"icon-optional":false,"icon-text-fit":"none","symbol-placement":"point","text-offset":[0,1],"visibility":["case",["global-state","relief"],"visible","none"]},"paint":{"text-color":["case",["==",["global-state","color-scheme"],"dark"],"#a4adb5","#666"],"text-halo-blur":0.5,"text-halo-color":["case",["==",["global-state","color-scheme"],"dark"],"#1b1f24","#ffffff"],"text-halo-width":1}},{"id":"poi_peak_1","type":"symbol","source":"openmaptiles","source-layer":"mountain_peak","minzoom":0,"maxzoom":24,"filter":["all",["==",["geometry-type"],"Point"],["==",["get","rank"],1]],"layout":{"text-anchor":"top","text-field":["case",["==",["global-state","elevation-unit"],"m"],["case",[">",["to-number",["get","ele"],0],0],["concat",["get","name_int"]," (",["number-format",["get","ele"],{}]," m)"],["get","name_int"]],["case",[">",["to-number",["get","ele_ft"],0],0],["concat",["get","name_int"]," (",["number-format",["get","ele_ft"],{}]," ft)"],["get","name_int"]]],"text-font":["Noto Sans Bold"],"text-size":{"stops":[[6,11],[10,13]]},"text-max-width":6,"icon-optional":false,"icon-text-fit":"none","symbol-placement":"point","text-offset":[0,0.6],"icon-image":["case",["==",["global-state","color-scheme"],"dark"],"triangle_11-5b4420","triangle_11-1e93d1"],"visibility":["case",["global-state","relief"],"visible","none"]},"paint":{"text-color":["case",["==",["global-state","color-scheme"],"dark"],"#eaa76b","rgba(165, 71, 8, 1)"],"text-halo-blur":0.5,"text-halo-color":["case",["==",["global-state","color-scheme"],"dark"],"#1b1f24","#ffffff"],"text-halo-width":1}},{"id":"label_place_other","type":"symbol","source":"openmaptiles","source-layer":"place","minzoom":8,"filter":["all",["==","$type","Point"],["!in","class","city","state","country","continent"]],"layout":{"text-font":["Noto Sans Regular"],"text-size":{"stops":[[6,10],[12,14]]},"text-field":["coalesce",["get",["concat","name:",["global-state","language"]]],["case",["all",["has","name:nonlatin"],["has","name:latin"]],["concat",["get","name:latin"],"\n",["get","name:nonlatin"]],["coalesce",["get","name_en"],["get","name:latin"],["get","name"]]]],"visibility":"visible","text-anchor":"center","text-max-width":6},"paint":{"text-color":["case",["==",["global-state","color-scheme"],"dark"],"#a4adb5","rgb(107, 115, 124)"],"text-halo-blur":0,"text-halo-color":["case",["==",["global-state","color-scheme"],"dark"],"rgba(27, 31, 36, 0.8)","rgba(255, 255, 255, 0.75)"],"text-halo-width":2}},{"id":"label_place_city","type":"symbol","source":"openmaptiles","source-layer":"place","maxzoom":14,"filter":["all",["==","$type","Point"],["==","class","city"]],"layout":{"text-font":["Noto Sans Regular"],"text-size":{"stops":[[3,11],[8,16]]},"text-field":["coalesce",["get",["concat","name:",["global-state","language"]]],["case",["all",["has","name:nonlatin"],["has","name:latin"]],["concat",["get","name:latin"],"\n",["get","name:nonlatin"]],["coalesce",["get","name_en"],["get","name:latin"],["get","name"]]]],"text-max-width":10},"paint":{"text-color":["case",["==",["global-state","color-scheme"],"dark"],"#a4adb5","rgb(107, 115, 124)"],"text-halo-blur":0,"text-halo-color":["case",["==",["global-state","color-scheme"],"dark"],"rgba(27, 31, 36, 0.8)","rgba(255, 255, 255, 0.75)"],"text-halo-width":2}},{"id":"label_country_other","type":"symbol","source":"openmaptiles","source-layer":"place","maxzoom":12,"filter":["all",["==","$type","Point"],["==","class","country"],["!has","iso_a2"]],"layout":{"text-font":["Noto Sans Regular"],"text-size":{"stops":[[3,12],[8,22]]},"text-field":["coalesce",["get",["concat","name:",["global-state","language"]]],["coalesce",["get","name_en"],["get","name:latin"],["get","name"]]],"visibility":"visible","text-max-width":10},"paint":{"text-color":["case",["==",["global-state","color-scheme"],"dark"],"#858f98","rgb(141, 148, 156)"],"text-halo-blur":0,"text-halo-color":["case",["==",["global-state","color-scheme"],"dark"],"rgba(27, 31, 36, 0.8)","rgba(255, 255, 255, 0.75)"],"text-halo-width":2}},{"id":"label_country","type":"symbol","source":"openmaptiles","source-layer":"place","maxzoom":12,"filter":["all",["==","$type","Point"],["==","class","country"],["has","iso_a2"]],"layout":{"text-font":["Noto Sans Bold"],"text-size":{"stops":[[3,12],[8,22]]},"text-field":["coalesce",["get",["concat","name:",["global-state","language"]]],["coalesce",["get","name_en"],["get","name:latin"],["get","name"]]],"visibility":"visible","text-max-width":10},"paint":{"text-color":["case",["==",["global-state","color-scheme"],"dark"],"#858f98","rgb(141, 148, 156)"],"text-halo-blur":0,"text-halo-color":["case",["==",["global-state","color-scheme"],"dark"],"rgba(27, 31, 36, 0.8)","rgba(255, 255, 255, 0.75)"],"text-halo-width":2}}]}