@map-jr/styles 1.1.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,13 @@ 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
+
7
14
  ## 1.1.0 (2026-11-19)
8
15
 
9
16
  - Elevation · color is renamed Elevation: `elevation-color.json` is now `elevation.json`, with the same layers. The
package/README.md CHANGED
@@ -282,7 +282,7 @@ the neutral plate here, unless `MANUAL` in `shields/shields.mjs` gives it a look
282
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. |
283
283
 
284
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 after 0.8.0 ([map-jr/map-jr-gl#998](https://github.com/map-jr/map-jr-gl/issues/998)). An
285
+ 5.16.0, and map-jr-gl from 0.9.0. An
286
286
  older map-jr-gl shows the layers and loads their tiles whatever the state is.
287
287
 
288
288
  **OpenFreeMap styles.** `styles/openfreemap.mjs` builds the five styles of OpenFreeMap with `inlineSprite`: the
@@ -306,13 +306,14 @@ gives the colors and the large shapes of the place. The map draws everything els
306
306
  | Roads: minor and service | the same, from zoom 15 | |
307
307
  | Names of countries, states, cities and towns | `{"filter": …}` | |
308
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": …}` | map-jr-gl 0.8.0 writes the features of such a layer, which draw nothing. |
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
310
 
311
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. (map-jr-gl 0.8.0 reads `["zoom"]` in a filter as the zoom of the tile, which is never above
313
- 14 on OpenMapTiles: with it, minor roads do not show.)
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.)
314
315
 
315
- Render the placeholder with `tileZoomOffset: 2` (map-jr-gl after 0.8.0): the server builds it from tiles two zooms
316
+ Render the placeholder with `tileZoomOffset: 2` (map-jr-gl 0.9.0 or later): the server builds it from tiles two zooms
316
317
  lower, which have fewer and longer features, and fetches fewer tiles.
317
318
 
318
319
  | Over six views and six styles, gzip | `overrides: false` | Placeholder | Placeholder, `tileZoomOffset: 2` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@map-jr/styles",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "description": "Map styles for map-jr-gl that carry their own icons and road shields, with a light and a dark branch, and MapLibre GL JS versions of them.",
6
6
  "keywords": [
@@ -42,7 +42,7 @@
42
42
  ],
43
43
  "sideEffects": false,
44
44
  "peerDependencies": {
45
- "@map-jr/map-jr-gl": ">=0.7.0"
45
+ "@map-jr/map-jr-gl": ">=0.9.0"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "@map-jr/map-jr-gl": {