@chrtco/sdk 0.10.40 → 0.10.41
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 +12 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +20 -3
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,18 @@ All notable changes to `@chrtco/sdk` will be documented in this file.
|
|
|
13
13
|
emits for the relief source. Exported for consumers that describe that
|
|
14
14
|
source themselves, such as the tile-worker's TileJSON.
|
|
15
15
|
|
|
16
|
+
### Fixed
|
|
17
|
+
- **The `CHRT_LAND` and `CHRT_RELIEF` sources carried no attribution.**
|
|
18
|
+
`generateStyle({ land: true })` emitted a `CHRT_LAND` source with no
|
|
19
|
+
`attribution`, so a map using MapLibre's attribution control showed no
|
|
20
|
+
credit for CHRTland — which is built from OpenStreetMap, whose ODbL requires
|
|
21
|
+
`© OpenStreetMap contributors` wherever the map is shown. The source now
|
|
22
|
+
carries `LAND_ATTRIBUTION`, and `CHRT_RELIEF` names its source, USGS 3DEP
|
|
23
|
+
(`RELIEF_ATTRIBUTION`; public domain, a courtesy). `CHRT_BASE` already
|
|
24
|
+
carried `BASE_ATTRIBUTION` and is unchanged; the chart source's credit is
|
|
25
|
+
still the tile-worker's to stamp. `RasterDemSource` gains the optional
|
|
26
|
+
`attribution` field `PmtilesVectorSource` already had.
|
|
27
|
+
|
|
16
28
|
## [0.10.40]
|
|
17
29
|
|
|
18
30
|
The first publish since 0.10.39 (2026-09-11, from `ada7e73e`). The publish
|
package/dist/index.cjs
CHANGED
|
@@ -665,7 +665,8 @@ function buildSources(opts = {}) {
|
|
|
665
665
|
type: "vector",
|
|
666
666
|
tiles: [tileTemplate(base, LAND_REGION, "mvt", buildFor(LAND_REGION))],
|
|
667
667
|
minzoom: BUILD_MINZOOM,
|
|
668
|
-
maxzoom: LAND_BUILD_MAXZOOM
|
|
668
|
+
maxzoom: LAND_BUILD_MAXZOOM,
|
|
669
|
+
attribution: LAND_ATTRIBUTION
|
|
669
670
|
};
|
|
670
671
|
}
|
|
671
672
|
if (opts.base) {
|
|
@@ -684,7 +685,8 @@ function buildSources(opts = {}) {
|
|
|
684
685
|
encoding: RELIEF_ENCODING,
|
|
685
686
|
tileSize: RELIEF_TILE_SIZE,
|
|
686
687
|
minzoom: RELIEF_MINZOOM,
|
|
687
|
-
maxzoom: RELIEF_MAXZOOM
|
|
688
|
+
maxzoom: RELIEF_MAXZOOM,
|
|
689
|
+
attribution: RELIEF_ATTRIBUTION
|
|
688
690
|
};
|
|
689
691
|
}
|
|
690
692
|
return sources;
|