basemapkit 0.5.1 β†’ 0.5.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "basemapkit",
3
3
  "private": false,
4
- "version": "0.5.1",
4
+ "version": "0.5.2",
5
5
  "type": "module",
6
6
  "types": "dist/basemapkit.d.ts",
7
7
  "exports": {
@@ -21,26 +21,31 @@
21
21
  "map style"
22
22
  ],
23
23
  "homepage": "https://github.com/jonathanlurie/basemapkit",
24
+ "author": "Jonathan Lurie",
25
+ "description": "Maplibre Basemaps for the people! ✊ Basemaps for Protomaps / pmtiles πŸ—ΊοΈ",
24
26
  "scripts": {
25
27
  "dev": "vite",
26
28
  "build": "tsc && vite build",
27
29
  "preview": "vite preview",
28
30
  "build-lib": "rm -rf ./dist/* && tsc && vite build -c vite.config-lib.ts",
29
31
  "biome": "biome check --max-diagnostics=1000",
30
- "biome:fix": "biome check --max-diagnostics=1000 --write"
32
+ "biome:fix": "biome check --max-diagnostics=1000 --write",
33
+ "prepare": "husky",
34
+ "type-check": "tsc --noEmit"
31
35
  },
32
36
  "devDependencies": {
33
37
  "@biomejs/biome": "^2.0.0",
34
38
  "@types/node": "^24.0.13",
39
+ "husky": "^9.1.7",
35
40
  "typescript": "~5.8.3",
36
41
  "vite": "^6.3.5",
37
42
  "vite-plugin-dts": "^4.5.4"
38
43
  },
39
44
  "dependencies": {
40
- "@protomaps/basemaps": "^5.4.1",
45
+ "@protomaps/basemaps": "^5.7.2",
41
46
  "color": "^5.0.0",
42
- "maplibre-gl": "^5.6.0",
43
- "pmtiles": "^4.3.0"
47
+ "maplibre-gl": "^6.4.0",
48
+ "pmtiles": "^4.5.0"
44
49
  },
45
50
  "license": "MIT"
46
51
  }
package/readme.md CHANGED
@@ -24,8 +24,7 @@ Compatible with <a href="https://maplibre.org/maplibre-gl-js/docs/">Maplibre GL
24
24
  | ![](./public/screenshots/bureau-1.jpg) | ![](./public/screenshots/bureau-11.jpg) | ![](./public/screenshots/bureau-2.jpg) |
25
25
  | ![](./public/screenshots/monochrome.jpg) | ![](./public/screenshots/journal-1.jpg ) | ![](./public/screenshots/journal-2.jpg) |
26
26
  | ![](./public/screenshots/spectre-1.jpg) | ![](./public/screenshots/spectre-14.jpg) | ![](./public/screenshots/spectre-5.jpg) |
27
-
28
- ![](./public/screenshots/monochrome-ushuaia.jpg)
27
+ | ![](./public/screenshots/monochrome-ushuaia.jpg) | ![](./public/screenshots/atmosphere-1.jpg) | |
29
28
 
30
29
  ## Getting started πŸ‘·
31
30
  ### Install
@@ -40,7 +39,10 @@ The following example instantiates a Maplibre `Map`, then initializes the Protom
40
39
  ```ts
41
40
  import "maplibre-gl/dist/maplibre-gl.css";
42
41
 
43
- import maplibregl from "maplibre-gl";
42
+ // Since Maplibre-gl v6:
43
+ import * as maplibregl from "maplibre-gl";
44
+ import workerUrl from "maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url";
45
+
44
46
  import { Protocol } from "pmtiles";
45
47
  import { getStyle, getStyleList } from "basemapkit";
46
48
 
@@ -547,6 +549,21 @@ Spectre comes with many extra presets, mostly to change the hue of the coastline
547
549
  - `spectre-negative-yellow`
548
550
  ![](./public/screenshots/spectre-16.jpg)
549
551
 
552
+ ### Base style: `atmosphere`
553
+ The **Atmosphere** style was first inpired by a [series of post by ECMWF](https://atmosphere.copernicus.eu/lowest-global-biomass-burning-emissions-record-during-first-half-2026) about aerosol spreadings. I like the neutral gray, the very thin borders and coastal line, the very dominant hillshading.
554
+
555
+ The inspo:
556
+ ![](./public/screenshots/ecmwf-inspo.png)
557
+
558
+ ```ts
559
+ // Create the style
560
+ const style = getStyle("atmosphere", options);
561
+ ```
562
+ [DEMO 🌍](https://basemapkit.jnth.io/?styleid=atmosphere)
563
+
564
+ ![](./public/screenshots/atmosphere-1.jpg)
565
+ ![](./public/screenshots/atmosphere-2.jpg)
566
+
550
567
  # Extra API πŸͺ„
551
568
  The extra API goes beyond just providing style, yet, it's still minimal and only related to "obtain a style as one need it".
552
569