@mailwoman/cartographer 9.2.0 → 9.3.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/{base → lib/base}/buildings.ts +2 -2
- package/{base → lib/base}/composition.ts +6 -6
- package/lib/base/index.ts +10 -0
- package/{base → lib/base}/layers.ts +4 -4
- package/{base → lib/base}/terrain.ts +1 -1
- package/{base → lib/base}/theme.ts +3 -3
- package/{bdc → lib/bdc}/index.ts +21 -10
- package/{coverage → lib/coverage}/index.ts +3 -3
- package/{hspa → lib/hspa}/index.ts +2 -2
- package/lib/index.ts +12 -0
- package/{race-dots → lib/race-dots}/index.ts +2 -2
- package/{styles → lib/styles}/index.ts +2 -2
- package/{styles → lib/styles}/sources.ts +5 -1
- package/{tiger → lib/tiger}/index.ts +3 -3
- package/{tiles → lib/tiles}/api.ts +3 -3
- package/{tiles → lib/tiles}/index.ts +3 -3
- package/out/base/buildings.d.ts.map +1 -1
- package/out/base/buildings.js +2 -2
- package/out/base/buildings.js.map +1 -1
- package/out/base/composition.d.ts +2 -2
- package/out/base/composition.d.ts.map +1 -1
- package/out/base/composition.js +5 -5
- package/out/base/composition.js.map +1 -1
- package/out/base/index.d.ts +4 -4
- package/out/base/index.d.ts.map +1 -1
- package/out/base/index.js +4 -4
- package/out/base/index.js.map +1 -1
- package/out/base/layers.d.ts.map +1 -1
- package/out/base/layers.js +4 -4
- package/out/base/layers.js.map +1 -1
- package/out/base/terrain.d.ts +1 -1
- package/out/base/terrain.d.ts.map +1 -1
- package/out/base/terrain.js +1 -1
- package/out/base/terrain.js.map +1 -1
- package/out/base/theme.d.ts +3 -3
- package/out/base/theme.d.ts.map +1 -1
- package/out/base/theme.js +3 -3
- package/out/base/theme.js.map +1 -1
- package/out/bdc/index.d.ts +14 -3
- package/out/bdc/index.d.ts.map +1 -1
- package/out/bdc/index.js +1 -1
- package/out/bdc/index.js.map +1 -1
- package/out/coverage/index.d.ts +3 -3
- package/out/coverage/index.d.ts.map +1 -1
- package/out/coverage/index.js +3 -3
- package/out/coverage/index.js.map +1 -1
- package/out/hspa/index.d.ts +1 -1
- package/out/hspa/index.d.ts.map +1 -1
- package/out/hspa/index.js +2 -2
- package/out/hspa/index.js.map +1 -1
- package/out/index.d.ts +6 -6
- package/out/index.d.ts.map +1 -1
- package/out/index.js +6 -6
- package/out/index.js.map +1 -1
- package/out/race-dots/index.d.ts +2 -2
- package/out/race-dots/index.d.ts.map +1 -1
- package/out/race-dots/index.js +2 -2
- package/out/race-dots/index.js.map +1 -1
- package/out/styles/index.d.ts +2 -2
- package/out/styles/index.d.ts.map +1 -1
- package/out/styles/index.js +2 -2
- package/out/styles/index.js.map +1 -1
- package/out/styles/layers.d.ts.map +1 -1
- package/out/styles/layers.js.map +1 -1
- package/out/styles/sources.d.ts.map +1 -1
- package/out/styles/sources.js +4 -1
- package/out/styles/sources.js.map +1 -1
- package/out/tiger/index.d.ts +2 -2
- package/out/tiger/index.d.ts.map +1 -1
- package/out/tiger/index.js +2 -2
- package/out/tiger/index.js.map +1 -1
- package/out/tiles/api.d.ts +1 -1
- package/out/tiles/api.d.ts.map +1 -1
- package/out/tiles/api.js +1 -1
- package/out/tiles/api.js.map +1 -1
- package/out/tiles/coords.d.ts.map +1 -1
- package/out/tiles/coords.js.map +1 -1
- package/out/tiles/index.d.ts +3 -3
- package/out/tiles/index.d.ts.map +1 -1
- package/out/tiles/index.js +3 -3
- package/out/tiles/index.js.map +1 -1
- package/out/tiles/schema.d.ts.map +1 -1
- package/out/tiles/schema.js.map +1 -1
- package/package.json +39 -6
- package/base/index.ts +0 -10
- package/index.ts +0 -12
- package/out/tsconfig.tsbuildinfo +0 -1
- /package/{styles → lib/styles}/layers.ts +0 -0
- /package/{tiles → lib/tiles}/coords.ts +0 -0
- /package/{tiles → lib/tiles}/schema.ts +0 -0
|
@@ -10,8 +10,8 @@ import type {
|
|
|
10
10
|
LayerSpecification,
|
|
11
11
|
} from "@maplibre/maplibre-gl-style-spec"
|
|
12
12
|
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { MailwomanBaseTileSetID } from "#base/theme"
|
|
14
|
+
import { LayerID } from "#styles/layers"
|
|
15
15
|
|
|
16
16
|
const BuildingLayerID = LayerID.bind(null, "buildings")
|
|
17
17
|
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
import type { SourceSpecification } from "@maplibre/maplibre-gl-style-spec"
|
|
8
8
|
import type { LightSpecification, SkySpecification, StyleSpecification, TerrainSpecification } from "maplibre-gl"
|
|
9
9
|
|
|
10
|
+
import { BaseLayers } from "#base/layers"
|
|
11
|
+
import { createTerrainDEMSource, HillshadeTileSetID } from "#base/terrain"
|
|
10
12
|
import {
|
|
11
13
|
LayerSpecificationList,
|
|
12
14
|
type LayerSpecificationListInput,
|
|
13
15
|
type LayerSpecificationListItem,
|
|
14
|
-
} from "
|
|
15
|
-
import type { TileSetSourceRecord } from "
|
|
16
|
-
import { BaseLayers } from "./layers.ts"
|
|
17
|
-
import { createTerrainDEMSource, HillshadeTileSetID } from "./terrain.ts"
|
|
16
|
+
} from "#styles/layers"
|
|
17
|
+
import type { TileSetSourceRecord } from "#styles/sources"
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
20
20
|
|
|
@@ -100,8 +100,8 @@ export class StyleSpecificationComposer {
|
|
|
100
100
|
// Sprite must match the basemap schema version — v4 sprites carry the icons referenced
|
|
101
101
|
// by the v4 theme spec. Currently upstream URLs; we mirror these to nexus-assets/{fonts,
|
|
102
102
|
// sprites/v4}/ for self-hosting, but no public route fronts that bucket yet.
|
|
103
|
-
glyphs: "https://public.
|
|
104
|
-
sprite: "https://public.
|
|
103
|
+
glyphs: "https://public.mailwoman.ai/protomaps/fonts/{fontstack}/{range}.pbf",
|
|
104
|
+
sprite: "https://public.mailwoman.ai/protomaps/sprites/v4/light",
|
|
105
105
|
light: createLightSpec(this.light),
|
|
106
106
|
sky: createSkySpec(this.sky),
|
|
107
107
|
// terrain: this.terrain,
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import { layers } from "@protomaps/basemaps"
|
|
8
8
|
import type { LayerSpecification } from "maplibre-gl"
|
|
9
9
|
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
10
|
+
import { BuildingLayers } from "#base/buildings"
|
|
11
|
+
import { HillshadeTileSetID } from "#base/terrain"
|
|
12
|
+
import { MailwomanBaseFlavor, MailwomanBaseTileSetID } from "#base/theme"
|
|
13
|
+
import { LayerID } from "#styles/layers"
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Layer id for the hillshade raster, referenced by style definitions that draw terrain beneath the base map.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import type { RasterDEMSourceSpecification } from "@maplibre/maplibre-gl-style-spec"
|
|
8
8
|
|
|
9
|
-
import { TileSetSourceID } from "
|
|
9
|
+
import { TileSetSourceID } from "#styles/sources"
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Creates a raster DEM source specification for terrain data.
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
import { type Flavor, namedFlavor } from "@protomaps/basemaps"
|
|
8
8
|
|
|
9
|
-
import { TileSetSourceID } from "
|
|
9
|
+
import { TileSetSourceID } from "#styles/sources"
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Identifier for the Mailwoman base tileset. Matches the R2 object basename (`nexus-assets/tiles/basemap-v4.pmtiles`) —
|
|
13
|
-
* `tiles.
|
|
14
|
-
*
|
|
13
|
+
* `tiles.mailwoman.ai/basemap-v4.json` returns its tilejson, `tiles.mailwoman.ai/basemap-v4/{z}/{x}/{y}.mvt` returns
|
|
14
|
+
* vector tiles.
|
|
15
15
|
*/
|
|
16
16
|
export const MailwomanBaseTileSetID = TileSetSourceID("basemap-v4")
|
|
17
17
|
|
package/{bdc → lib/bdc}/index.ts
RENAMED
|
@@ -15,8 +15,8 @@ import type {
|
|
|
15
15
|
} from "@maplibre/maplibre-gl-style-spec"
|
|
16
16
|
import { interpolateTurbo } from "d3-scale-chromatic"
|
|
17
17
|
|
|
18
|
-
import type { LayerSpecificationListInput } from "
|
|
19
|
-
import { TileSetSourceID } from "
|
|
18
|
+
import type { LayerSpecificationListInput } from "#styles/layers"
|
|
19
|
+
import { TileSetSourceID } from "#styles/sources"
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Identifier for the Broadband Data Collection tile set.
|
|
@@ -46,17 +46,28 @@ export type BaseBDCLayerSpecification<T> = T extends BDCLayerSpecificationInput
|
|
|
46
46
|
? Omit<T, "source-layer" | "source">
|
|
47
47
|
: never
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
/**
|
|
50
|
+
* The three builders below take a spec WITHOUT the source fields and return one with them filled in.
|
|
51
|
+
*
|
|
52
|
+
* They are not generic, and the assertion each ends with is single rather than through `unknown`, both for the same
|
|
53
|
+
* reason: TypeScript cannot verify that `Omit<T, K>` plus the omitted keys reconstitutes `T`, so a builder declared
|
|
54
|
+
* `<T>(…): T` can only reach its return type by defeating the checker entirely — which then covers the `id`, `minzoom`
|
|
55
|
+
* and `maxzoom` values too. Nothing wanted the narrowing: the sole consumer, {@linkcode BroadbandDataCollectionLayers},
|
|
56
|
+
* annotates the union.
|
|
57
|
+
*/
|
|
58
|
+
type BDCLayerBuilderInput = BaseBDCLayerSpecification<BDCLayerSpecificationInput>
|
|
59
|
+
|
|
60
|
+
function createBDCBlockLayer(spec: BDCLayerBuilderInput): BDCLayerSpecificationInput {
|
|
50
61
|
return {
|
|
51
62
|
...spec,
|
|
52
63
|
id: `bdc_${TIGERLevel.Block}_${spec.id}`,
|
|
53
64
|
source: BDCTileSetID,
|
|
54
65
|
"source-layer": `bdc_${TIGERLevel.Block}`,
|
|
55
66
|
minzoom: 12,
|
|
56
|
-
} as
|
|
67
|
+
} as BDCLayerSpecificationInput
|
|
57
68
|
}
|
|
58
69
|
|
|
59
|
-
function createBDCTractLayer
|
|
70
|
+
function createBDCTractLayer(spec: BDCLayerBuilderInput): BDCLayerSpecificationInput {
|
|
60
71
|
return {
|
|
61
72
|
...spec,
|
|
62
73
|
id: `bdc_${TIGERLevel.Tract}_${spec.id}`,
|
|
@@ -64,10 +75,10 @@ function createBDCTractLayer<T extends BDCLayerSpecificationInput>(spec: BaseBDC
|
|
|
64
75
|
"source-layer": `bdc_${TIGERLevel.Tract}`,
|
|
65
76
|
maxzoom: 12,
|
|
66
77
|
minzoom: 9,
|
|
67
|
-
} as
|
|
78
|
+
} as BDCLayerSpecificationInput
|
|
68
79
|
}
|
|
69
80
|
|
|
70
|
-
function createBDCCountyLayer
|
|
81
|
+
function createBDCCountyLayer(spec: BDCLayerBuilderInput): BDCLayerSpecificationInput {
|
|
71
82
|
return {
|
|
72
83
|
...spec,
|
|
73
84
|
id: `bdc_${TIGERLevel.County}_${spec.id}`,
|
|
@@ -75,11 +86,11 @@ function createBDCCountyLayer<T extends BDCLayerSpecificationInput>(spec: BaseBD
|
|
|
75
86
|
"source-layer": `bdc_${TIGERLevel.County}`,
|
|
76
87
|
maxzoom: 9,
|
|
77
88
|
minzoom: 2,
|
|
78
|
-
} as
|
|
89
|
+
} as BDCLayerSpecificationInput
|
|
79
90
|
}
|
|
80
91
|
|
|
81
|
-
export function createBDCLayer
|
|
82
|
-
return [createBDCBlockLayer(spec), createBDCTractLayer(spec), createBDCCountyLayer(spec)]
|
|
92
|
+
export function createBDCLayer(spec: BDCLayerBuilderInput): BDCLayerSpecificationInput[] {
|
|
93
|
+
return [createBDCBlockLayer(spec), createBDCTractLayer(spec), createBDCCountyLayer(spec)]
|
|
83
94
|
}
|
|
84
95
|
|
|
85
96
|
const GIGABIT_BROADBAND_SPEED = 1000
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
* demo's LayerToggleControl gives each its own checkbox — pick the reading you want, no extra UI.
|
|
19
19
|
*
|
|
20
20
|
* Served as XYZ vector tiles by the tile worker from `nexus-assets/tiles/coverage-v5.pmtiles` (same
|
|
21
|
-
* as `basemap-v4`); the consumer passes its TileJSON URL (`tiles.
|
|
21
|
+
* as `basemap-v4`); the consumer passes its TileJSON URL (`tiles.mailwoman.ai/coverage-v5.json`)
|
|
22
22
|
* to `createCoverageSource`.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import type { FillLayerSpecification, VectorSourceSpecification } from "@maplibre/maplibre-gl-style-spec"
|
|
26
26
|
|
|
27
|
-
import { TileSetSourceID } from "
|
|
27
|
+
import { TileSetSourceID } from "#styles/sources"
|
|
28
28
|
|
|
29
29
|
export const CoverageTileSetID = TileSetSourceID("coverage-v5")
|
|
30
30
|
|
|
@@ -55,7 +55,7 @@ export const CoverageLayerID = {
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Build the coverage source spec from the tile worker's TileJSON endpoint
|
|
58
|
-
* (`https://tiles.
|
|
58
|
+
* (`https://tiles.mailwoman.ai/coverage-v5.json`).
|
|
59
59
|
*/
|
|
60
60
|
export function createCoverageSource(url: string): VectorSourceSpecification {
|
|
61
61
|
return { type: "vector", url }
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
// import { LayerSpecificationListInput } from "
|
|
8
|
-
import { TileSetSourceID } from "
|
|
7
|
+
// import { LayerSpecificationListInput } from "#styles/layers"
|
|
8
|
+
import { TileSetSourceID } from "#styles/sources"
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Identifier for the Health Service Provider Access tile set.
|
package/lib/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export * from "#base/index"
|
|
8
|
+
export * from "#bdc/index"
|
|
9
|
+
export * from "#hspa/index"
|
|
10
|
+
export * from "#styles/index"
|
|
11
|
+
export * from "#tiger/index"
|
|
12
|
+
export * from "#tiles/index"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Same idiom as the coverage overlay.
|
|
16
16
|
*
|
|
17
17
|
* Served as XYZ vector tiles by the tile worker from `nexus-assets/tiles/race-dots-la.pmtiles`; the
|
|
18
|
-
* consumer passes its TileJSON URL (`tiles.
|
|
18
|
+
* consumer passes its TileJSON URL (`tiles.mailwoman.ai/race-dots-la.json`) to
|
|
19
19
|
* `createRaceDotsSource`.
|
|
20
20
|
*
|
|
21
21
|
* The dot is a _representation_, not a record: a random position inside the block, standing in for
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
import type { CircleLayerSpecification, VectorSourceSpecification } from "@maplibre/maplibre-gl-style-spec"
|
|
26
26
|
|
|
27
|
-
import { TileSetSourceID } from "
|
|
27
|
+
import { TileSetSourceID } from "#styles/sources"
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Tile set id for the dot-density race layer, one dot per N people (see `tiger/tools/race-dots.ts`).
|
|
@@ -18,7 +18,11 @@ export type TileSetSourceID<T extends string = string> = Tagged<string, "TileSet
|
|
|
18
18
|
* Declares a tileset identifier.
|
|
19
19
|
*/
|
|
20
20
|
export function TileSetSourceID<T extends string>(value: T): TileSetSourceID<T> {
|
|
21
|
-
|
|
21
|
+
// Widen to `string` before the tag: a generic `T` defers the comparability check and the assertion is refused,
|
|
22
|
+
// while `string` to the tagged type is the ordinary mint this function exists to be the only site of.
|
|
23
|
+
const raw: string = value
|
|
24
|
+
|
|
25
|
+
return raw as TileSetSourceID<T>
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
/**
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { HillsLayerID } from "
|
|
8
|
-
import type { LayerSpecificationListInput } from "
|
|
9
|
-
import { TileSetSourceID } from "
|
|
7
|
+
import { HillsLayerID } from "#base/layers"
|
|
8
|
+
import type { LayerSpecificationListInput } from "#styles/layers"
|
|
9
|
+
import { TileSetSourceID } from "#styles/sources"
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Tile set id for US Census tract polygons.
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import { APIClient, pluckResponseData } from "@mailwoman/core/api"
|
|
8
8
|
import type { VectorSourceSpecification } from "maplibre-gl"
|
|
9
9
|
|
|
10
|
-
import type { TileSetSourceID, TileSetSourceRecord } from "
|
|
11
|
-
import type { TileJSON } from "
|
|
10
|
+
import type { TileSetSourceID, TileSetSourceRecord } from "#styles/sources"
|
|
11
|
+
import type { TileJSON } from "#tiles/schema"
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* API Client for fetching Protomap tile data.
|
|
@@ -16,7 +16,7 @@ import type { TileJSON } from "./schema.ts"
|
|
|
16
16
|
export const TileAPI = new APIClient({
|
|
17
17
|
displayName: "TileAPI",
|
|
18
18
|
axios: {
|
|
19
|
-
baseURL: "https://tiles.
|
|
19
|
+
baseURL: "https://tiles.mailwoman.ai",
|
|
20
20
|
},
|
|
21
21
|
})
|
|
22
22
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildings.d.ts","sourceRoot":"","sources":["../../base/buildings.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAGX,kBAAkB,EAClB,MAAM,kCAAkC,CAAA;AA2CzC;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,kBAAkB,EAqE9C,CAAA"}
|
|
1
|
+
{"version":3,"file":"buildings.d.ts","sourceRoot":"","sources":["../../lib/base/buildings.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAGX,kBAAkB,EAClB,MAAM,kCAAkC,CAAA;AA2CzC;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,kBAAkB,EAqE9C,CAAA"}
|
package/out/base/buildings.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { MailwomanBaseTileSetID } from "#base/theme";
|
|
7
|
+
import { LayerID } from "#styles/layers";
|
|
8
8
|
const BuildingLayerID = LayerID.bind(null, "buildings");
|
|
9
9
|
/**
|
|
10
10
|
* Zoom where buildings start rising.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildings.js","sourceRoot":"","sources":["../../base/buildings.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"buildings.js","sourceRoot":"","sources":["../../lib/base/buildings.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;AAEvD;;GAEG;AACH,MAAM,SAAS,GAAG,IAAI,CAAA;AACtB;;GAEG;AACH,MAAM,OAAO,GAAG,EAAE,CAAA;AAClB;;GAEG;AACH,MAAM,QAAQ,GAAG,GAAG,CAAA;AACpB;;GAEG;AACH,MAAM,QAAQ,GAAG,CAAC,CAAA;AAElB,MAAM,cAAc,GAAG,CAAC,MAAM,GAAG,CAAC,EAA2B,EAAE,CAAC;IAC/D,GAAG;IACH,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC;IACzD,MAAM;CACN,CAAA;AAED;;GAEG;AACH,MAAM,SAAS,GAAG,CAAC,MAA+B,EAA2B,EAAE,CAAC;IAC/E,aAAa;IACb,CAAC,QAAQ,CAAC;IACV,CAA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
|
|
5
5
|
*/
|
|
6
6
|
import type { SourceSpecification } from "@maplibre/maplibre-gl-style-spec";
|
|
7
7
|
import type { LightSpecification, SkySpecification, StyleSpecification, TerrainSpecification } from "maplibre-gl";
|
|
8
|
-
import { LayerSpecificationList, type LayerSpecificationListInput, type LayerSpecificationListItem } from "
|
|
9
|
-
import type { TileSetSourceRecord } from "
|
|
8
|
+
import { LayerSpecificationList, type LayerSpecificationListInput, type LayerSpecificationListItem } from "#styles/layers";
|
|
9
|
+
import type { TileSetSourceRecord } from "#styles/sources";
|
|
10
10
|
export declare function createLightSpec(spec?: Partial<LightSpecification>): LightSpecification;
|
|
11
11
|
export declare function createSkySpec(spec?: Partial<SkySpecification>): SkySpecification;
|
|
12
12
|
export interface StyleSpecificationComposition {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../base/composition.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../lib/base/composition.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAIjH,OAAO,EACN,sBAAsB,EACtB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAM1D,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAYtF;AAED,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAUhF;AAMD,MAAM,WAAW,6BAA6B;IAC7C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;IAC5C,MAAM,CAAC,EAAE,2BAA2B,EAAE,CAAA;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;IACnC,GAAG,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAA;CACvC;AAED;;GAEG;AACH,qBAAa,0BAA0B;IACtC,UAAU,EAAE,sBAAsB,CAAA;IAClC,KAAK,EAAE,kBAAkB,CAAA;IACzB,GAAG,EAAE,gBAAgB,CAAA;IAErB,OAAO,EAAE,mBAAmB,CAAA;gBAEhB,IAAI,EAAE,6BAA6B;IAsB/C,IAAW,MAAM,IAAI,0BAA0B,EAAE,CAEhD;IAED,MAAM,IAAI,kBAAkB;IAkB5B,IAAI,IAAI,kBAAkB;CAG1B"}
|
package/out/base/composition.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { BaseLayers } from "#base/layers";
|
|
7
|
+
import { createTerrainDEMSource, HillshadeTileSetID } from "#base/terrain";
|
|
8
|
+
import { LayerSpecificationList, } from "#styles/layers";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region Spec Creators
|
|
11
11
|
export function createLightSpec(spec) {
|
|
@@ -67,8 +67,8 @@ export class StyleSpecificationComposer {
|
|
|
67
67
|
// Sprite must match the basemap schema version — v4 sprites carry the icons referenced
|
|
68
68
|
// by the v4 theme spec. Currently upstream URLs; we mirror these to nexus-assets/{fonts,
|
|
69
69
|
// sprites/v4}/ for self-hosting, but no public route fronts that bucket yet.
|
|
70
|
-
glyphs: "https://public.
|
|
71
|
-
sprite: "https://public.
|
|
70
|
+
glyphs: "https://public.mailwoman.ai/protomaps/fonts/{fontstack}/{range}.pbf",
|
|
71
|
+
sprite: "https://public.mailwoman.ai/protomaps/sprites/v4/light",
|
|
72
72
|
light: createLightSpec(this.light),
|
|
73
73
|
sky: createSkySpec(this.sky),
|
|
74
74
|
// terrain: this.terrain,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition.js","sourceRoot":"","sources":["../../base/composition.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,
|
|
1
|
+
{"version":3,"file":"composition.js","sourceRoot":"","sources":["../../lib/base/composition.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAC1E,OAAO,EACN,sBAAsB,GAGtB,MAAM,gBAAgB,CAAA;AAGvB,YAAY;AAEZ,uBAAuB;AAEvB,MAAM,UAAU,eAAe,CAAC,IAAkC;IACjE,OAAO;QACN,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE;YACT,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,YAAY;YAChB,CAAC,CAAC,EAAE,QAAQ;SACZ;QACD,GAAG,IAAI;KACP,CAAA;AACF,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAgC;IAC7D,OAAO;QACN,WAAW,EAAE,SAAS;QACtB,eAAe,EAAE,qBAAqB;QACtC,WAAW,EAAE,oBAAoB;QACjC,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,IAAI;QACzB,kBAAkB,EAAE,GAAG;QACvB,GAAG,IAAI;KACP,CAAA;AACF,CA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AI,CAAC,MAAM,EAAE,CAAA;IACrB,CAAC;CACD;AAED,YAAY"}
|
package/out/base/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
6
|
+
export * from "#base/buildings";
|
|
7
|
+
export * from "#base/composition";
|
|
8
|
+
export * from "#base/layers";
|
|
9
|
+
export * from "#base/theme";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/out/base/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../base/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/base/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
package/out/base/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
9
|
-
export * from "
|
|
6
|
+
export * from "#base/buildings";
|
|
7
|
+
export * from "#base/composition";
|
|
8
|
+
export * from "#base/layers";
|
|
9
|
+
export * from "#base/theme";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/out/base/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../base/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/base/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
package/out/base/layers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../../base/layers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAOrD;;GAEG;AACH,eAAO,MAAM,YAAY,+DAAuC,CAAA;AAYhE;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,kBAAkB,EA2B1C,CAAA"}
|
|
1
|
+
{"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../../lib/base/layers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAOrD;;GAEG;AACH,eAAO,MAAM,YAAY,+DAAuC,CAAA;AAYhE;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,kBAAkB,EA2B1C,CAAA"}
|
package/out/base/layers.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import { layers } from "@protomaps/basemaps";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { BuildingLayers } from "#base/buildings";
|
|
8
|
+
import { HillshadeTileSetID } from "#base/terrain";
|
|
9
|
+
import { MailwomanBaseFlavor, MailwomanBaseTileSetID } from "#base/theme";
|
|
10
|
+
import { LayerID } from "#styles/layers";
|
|
11
11
|
/**
|
|
12
12
|
* Layer id for the hillshade raster, referenced by style definitions that draw terrain beneath the base map.
|
|
13
13
|
*/
|
package/out/base/layers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layers.js","sourceRoot":"","sources":["../../base/layers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAG5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"layers.js","sourceRoot":"","sources":["../../lib/base/layers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAA;AAEhE;;;;GAIG;AACH,MAAM,aAAa,GAAG,MAAM,CAAC,sBAAsB,EAAE,mBAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;AACzF,MAAM,WAAW,GAAG,MAAM,CAAC,sBAAsB,EAAE,mBAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAA;AACzG,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAA;AACnE,MAAM,cAAc,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAA;AAEpF;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAyB;IAC/C,GAAG,cAAc;IACjB;QACC,EAAE,EAAE,OAAO,CAAC,sBAAsB,EAAE,eAAe,CAAC;QACpD,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,sBAAsB;QAC9B,cAAc,EAAE,OAAO;QACvB,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QAC1D,KAAK,EAAE;YACN,YAAY,EAAE,4BAA4B;YAC1C,YAAY,EAAE,CAAC;SACf;KACD;IACD;QACC,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,kBAAkB;QAC1B,OAAO,EAAE,CAAC;QACV,KAAK,EAAE;YACN,wBAAwB,EAAE,IAAI;YAC9B,wBAAwB,EAAE,sBAAsB;YAChD,wBAAwB,EAAE,qBAAqB;YAC/C,2BAA2B,EAAE,sBAAsB;SACnD;KACD;IACD,GAAG,cAAc;IACjB,GAAG,WAAW;CACd,CAAA"}
|
package/out/base/terrain.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import type { RasterDEMSourceSpecification } from "@maplibre/maplibre-gl-style-spec";
|
|
7
|
-
import { TileSetSourceID } from "
|
|
7
|
+
import { TileSetSourceID } from "#styles/sources";
|
|
8
8
|
/**
|
|
9
9
|
* Creates a raster DEM source specification for terrain data.
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terrain.d.ts","sourceRoot":"","sources":["../../base/terrain.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AAEpF,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"terrain.d.ts","sourceRoot":"","sources":["../../lib/base/terrain.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AAEpF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,4BAA4B,CAUrE;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,8BAA+B,CAAA"}
|
package/out/base/terrain.js
CHANGED
package/out/base/terrain.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terrain.js","sourceRoot":"","sources":["../../base/terrain.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"terrain.js","sourceRoot":"","sources":["../../lib/base/terrain.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACrC,MAAM,aAAa,GAAiC;QACnD,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,WAAW;QACrB,KAAK,EAAE,CAAC,yEAAyE,CAAC;QAClF,QAAQ,EAAE,GAAG;QACb,OAAO,EAAE,EAAE;KACX,CAAA;IAED,OAAO,aAAa,CAAA;AACrB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,WAAW,CAAC,CAAA"}
|
package/out/base/theme.d.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import { type Flavor } from "@protomaps/basemaps";
|
|
7
|
-
import { TileSetSourceID } from "
|
|
7
|
+
import { TileSetSourceID } from "#styles/sources";
|
|
8
8
|
/**
|
|
9
9
|
* Identifier for the Mailwoman base tileset. Matches the R2 object basename (`nexus-assets/tiles/basemap-v4.pmtiles`) —
|
|
10
|
-
* `tiles.
|
|
11
|
-
*
|
|
10
|
+
* `tiles.mailwoman.ai/basemap-v4.json` returns its tilejson, `tiles.mailwoman.ai/basemap-v4/{z}/{x}/{y}.mvt` returns
|
|
11
|
+
* vector tiles.
|
|
12
12
|
*/
|
|
13
13
|
export declare const MailwomanBaseTileSetID: TileSetSourceID<"basemap-v4">;
|
|
14
14
|
/**
|
package/out/base/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../base/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,qBAAqB,CAAA;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../lib/base/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,qBAAqB,CAAA;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,+BAAgC,CAAA;AAInE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAsGjC,CAAA"}
|
package/out/base/theme.js
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import { namedFlavor } from "@protomaps/basemaps";
|
|
7
|
-
import { TileSetSourceID } from "
|
|
7
|
+
import { TileSetSourceID } from "#styles/sources";
|
|
8
8
|
/**
|
|
9
9
|
* Identifier for the Mailwoman base tileset. Matches the R2 object basename (`nexus-assets/tiles/basemap-v4.pmtiles`) —
|
|
10
|
-
* `tiles.
|
|
11
|
-
*
|
|
10
|
+
* `tiles.mailwoman.ai/basemap-v4.json` returns its tilejson, `tiles.mailwoman.ai/basemap-v4/{z}/{x}/{y}.mvt` returns
|
|
11
|
+
* vector tiles.
|
|
12
12
|
*/
|
|
13
13
|
export const MailwomanBaseTileSetID = TileSetSourceID("basemap-v4");
|
|
14
14
|
const darkFlavor = namedFlavor("dark");
|
package/out/base/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../base/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAe,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../lib/base/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAe,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAE9D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAA;AAEnE,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAW;IAC1C,GAAG,UAAU;IAEb,cAAc;IACd,UAAU,EAAE,kBAAkB;IAC9B,KAAK,EAAE,kBAAkB;IAEzB,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,wBAAwB;IAEhC,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE,SAAS;IACrB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,8BAA8B;IACrC,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,SAAS;IAEjB,KAAK,EAAE,sBAAsB;IAE7B,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,SAAS;IACd,QAAQ,EAAE,SAAS;IAEnB,Y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AAa,EAAE,2BAA2B;IAC1C,aAAa,EAAE,sBAAsB;IACrC,kBAAkB,EAAE,sBAAsB;IAE1C,SAAS,EAAE;QACV,SAAS,EAAE,uBAAuB;QAClC,MAAM,EAAE,sBAAsB;QAC9B,QAAQ,EAAE,uBAAuB;QACjC,MAAM,EAAE,uBAAuB;QAC/B,OAAO,EAAE,sBAAsB;QAC/B,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,kBAAkB;KAC9B;CACD,CAAA"}
|
package/out/bdc/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import type { CircleLayerSpecification, FillExtrusionLayerSpecification, FillLayerSpecification, HeatmapLayerSpecification, LineLayerSpecification, SymbolLayerSpecification } from "@maplibre/maplibre-gl-style-spec";
|
|
7
|
-
import type { LayerSpecificationListInput } from "
|
|
8
|
-
import { TileSetSourceID } from "
|
|
7
|
+
import type { LayerSpecificationListInput } from "#styles/layers";
|
|
8
|
+
import { TileSetSourceID } from "#styles/sources";
|
|
9
9
|
/**
|
|
10
10
|
* Identifier for the Broadband Data Collection tile set.
|
|
11
11
|
*/
|
|
@@ -22,9 +22,20 @@ export type BDCLayerSpecificationInput = LayerSpecificationListInput<FillLayerSp
|
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
24
|
export type BaseBDCLayerSpecification<T> = T extends BDCLayerSpecificationInput ? Omit<T, "source-layer" | "source"> : never;
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* The three builders below take a spec WITHOUT the source fields and return one with them filled in.
|
|
27
|
+
*
|
|
28
|
+
* They are not generic, and the assertion each ends with is single rather than through `unknown`, both for the same
|
|
29
|
+
* reason: TypeScript cannot verify that `Omit<T, K>` plus the omitted keys reconstitutes `T`, so a builder declared
|
|
30
|
+
* `<T>(…): T` can only reach its return type by defeating the checker entirely — which then covers the `id`, `minzoom`
|
|
31
|
+
* and `maxzoom` values too. Nothing wanted the narrowing: the sole consumer, {@linkcode BroadbandDataCollectionLayers},
|
|
32
|
+
* annotates the union.
|
|
33
|
+
*/
|
|
34
|
+
type BDCLayerBuilderInput = BaseBDCLayerSpecification<BDCLayerSpecificationInput>;
|
|
35
|
+
export declare function createBDCLayer(spec: BDCLayerBuilderInput): BDCLayerSpecificationInput[];
|
|
26
36
|
/**
|
|
27
37
|
* Layer definitions for the FCC Broadband Data Collection overlay, styled by reported service tier.
|
|
28
38
|
*/
|
|
29
39
|
export declare const BroadbandDataCollectionLayers: BDCLayerSpecificationInput[];
|
|
40
|
+
export {};
|
|
30
41
|
//# sourceMappingURL=index.d.ts.map
|
package/out/bdc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../bdc/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,MAAM,kCAAkC,CAAA;AAGzC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/bdc/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,MAAM,kCAAkC,CAAA;AAGzC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,YAAY,wBAAyB,CAAA;AAElD;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,2BAA2B,CACjE,sBAAsB,GACtB,sBAAsB,GACtB,wBAAwB,GACxB,yBAAyB,GACzB,wBAAwB,GACxB,+BAA+B,CACjC,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,CAAC,CAAC,IAAI,CAAC,SAAS,0BAA0B,GAC5E,IAAI,CAAC,CAAC,EAAE,cAAc,GAAG,QAAQ,CAAC,GAClC,KAAK,CAAA;AAER;;;;;;;;GAQG;AACH,KAAK,oBAAoB,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA;AAkCjF,wBAAgB,cAAc,CAAC,IAAI,EAAE,oBAAoB,GAAG,0BAA0B,EAAE,CAEvF;AAID;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,0BAA0B,EAqTrE,CAAA"}
|
package/out/bdc/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { TIGERLevel } from "@mailwoman/tiger";
|
|
7
7
|
import { interpolateTurbo } from "d3-scale-chromatic";
|
|
8
|
-
import { TileSetSourceID } from "
|
|
8
|
+
import { TileSetSourceID } from "#styles/sources";
|
|
9
9
|
/**
|
|
10
10
|
* Identifier for the Broadband Data Collection tile set.
|
|
11
11
|
*/
|