@tileflow/maps 0.1.0-alpha.14 → 0.1.0-alpha.15
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/dist/index.js +15 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10786,9 +10786,16 @@ function calibratedStreetsColors(preset, theme) {
|
|
|
10786
10786
|
return { ...colors, "roads.detail.casing": roadCasings.hd };
|
|
10787
10787
|
}
|
|
10788
10788
|
function streetsPaletteColors(preset, colorTheme) {
|
|
10789
|
-
|
|
10789
|
+
const palette = {
|
|
10790
10790
|
...calibratedStreetsColors(preset, colorTheme),
|
|
10791
|
-
...streetsCartographyColors(colorTheme, preset)
|
|
10791
|
+
...streetsCartographyColors(colorTheme, preset)
|
|
10792
|
+
};
|
|
10793
|
+
return {
|
|
10794
|
+
...palette,
|
|
10795
|
+
// The parts building models name water, vegetation and wood take the map's water and trees.
|
|
10796
|
+
"buildings.modelWater": palette["hydro.water"],
|
|
10797
|
+
"buildings.modelVegetation": palette["vegetation.tree.broadleaf.b"],
|
|
10798
|
+
"buildings.modelWood": palette["vegetation.tree.bark"],
|
|
10792
10799
|
"buildings.floodLight": !isDarkStreetsPreset(preset) ? "#FFFFFF" : colorTheme === "monochrome" ? "#E5E5E5" : colorTheme === "faded" ? "#F8E4C4" : "#F5CFA8",
|
|
10793
10800
|
...streetsModelLighting(preset, colorTheme).colors,
|
|
10794
10801
|
...streetsSkyTokens(preset, colorTheme).colors
|
|
@@ -13390,6 +13397,12 @@ var streets = bindOfficialMapTheme(
|
|
|
13390
13397
|
// stand beside the flat fill, so they require this mode.
|
|
13391
13398
|
mode: "flat",
|
|
13392
13399
|
threeDimensional: {
|
|
13400
|
+
// Models name pools, planting and timber with these parts to follow the map's colours.
|
|
13401
|
+
modelColors: {
|
|
13402
|
+
water: token9.color("buildings.modelWater"),
|
|
13403
|
+
vegetation: token9.color("buildings.modelVegetation"),
|
|
13404
|
+
wood: token9.color("buildings.modelWood")
|
|
13405
|
+
},
|
|
13393
13406
|
floodLight: {
|
|
13394
13407
|
intensity: token9.number("buildings.floodLight.intensity"),
|
|
13395
13408
|
brightnessScale: token9.number("buildings.floodLight.brightnessScale"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/maps",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.15",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Official themed Streets, Baedeker, Cívica, 1777, Siegfried, Soundings, and Blueprint maps for Tileflow.",
|
|
6
6
|
"type": "module",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
55
|
+
"@tileflow/core": ">=0.1.0-alpha.41 <0.1.0-beta.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@maplibre/maplibre-gl-style-spec": "24.8.5",
|
|
59
59
|
"@maplibre/maplibre-gl-style-spec-v6": "npm:@maplibre/maplibre-gl-style-spec@26.4.4",
|
|
60
|
-
"@tileflow/core": "0.1.0-alpha.
|
|
60
|
+
"@tileflow/core": "0.1.0-alpha.41"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsup src/index.ts --format esm --dts --clean --no-splitting",
|