@basemaps/landing 7.15.1 → 7.17.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/build/components/debug.d.ts +3 -3
- package/build/components/debug.js +25 -9
- package/build/components/debug.js.map +1 -1
- package/build/components/layer.switcher.dropdown.js +4 -2
- package/build/components/layer.switcher.dropdown.js.map +1 -1
- package/build/components/layout.header.js +2 -2
- package/build/components/layout.header.js.map +1 -1
- package/build/components/map.js +3 -5
- package/build/components/map.js.map +1 -1
- package/build/components/map.switcher.js +3 -5
- package/build/components/map.switcher.js.map +1 -1
- package/build/config.map.js +27 -7
- package/build/config.map.js.map +1 -1
- package/build/tile.matrix.d.ts +1 -8
- package/build/tile.matrix.js +11 -40
- package/build/tile.matrix.js.map +1 -1
- package/dist/docs/sitemap.xml +30 -30
- package/dist/docs/sitemap.xml.gz +0 -0
- package/dist/examples/index.openlayers.attribution.wmts.3857.html +1 -1
- package/dist/{index-7.15.1-32175f157bbe5191.js → index-7.17.0-cc7beb7d4c8d8216.js} +75 -60
- package/dist/index.html +2 -2
- package/dist/index.js +75 -60
- package/package.json +7 -7
- /package/dist/{index-7.15.1-c5e57c4593cca04a.css → index-7.17.0-c5e57c4593cca04a.css} +0 -0
- /package/dist/lib/{attribution-7.15.1-ec5888ef78974d9c.js → attribution-7.17.0-ec5888ef78974d9c.js} +0 -0
package/build/tile.matrix.js
CHANGED
|
@@ -1,45 +1,16 @@
|
|
|
1
|
-
import { GoogleTms,
|
|
1
|
+
import { GoogleTms, Projection } from '@basemaps/geo';
|
|
2
2
|
import { Config } from './config.js';
|
|
3
3
|
import { WindowUrl } from './url.js';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
configurable: true,
|
|
15
|
-
writable: true,
|
|
16
|
-
value: void 0
|
|
17
|
-
});
|
|
18
|
-
this.tileMatrix = tileMatrix;
|
|
19
|
-
this.extraZoomLevels = extraZoomLevels;
|
|
20
|
-
}
|
|
21
|
-
getStyle(cfg) {
|
|
22
|
-
return WindowUrl.toTileUrl({
|
|
23
|
-
urlType: "style" /* MapOptionType.Style */,
|
|
24
|
-
tileMatrix: this.tileMatrix,
|
|
25
|
-
layerId: cfg.layerId,
|
|
26
|
-
style: cfg.style,
|
|
27
|
-
config: cfg.config ?? Config.map.config,
|
|
28
|
-
terrain: cfg.terrain ?? Config.map.terrain,
|
|
29
|
-
labels: cfg.labels ?? Config.map.labels,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
const Nztm2000TileGrid = new TileGrid(Nztm2000Tms, 2);
|
|
34
|
-
const Nztm2000QuadTileGrid = new TileGrid(Nztm2000QuadTms);
|
|
35
|
-
const GoogleTileGrid = new TileGrid(GoogleTms);
|
|
36
|
-
const Grids = [Nztm2000TileGrid, Nztm2000QuadTileGrid, GoogleTileGrid];
|
|
37
|
-
export function getTileGrid(id) {
|
|
38
|
-
for (const g of Grids) {
|
|
39
|
-
if (id === g.tileMatrix.identifier)
|
|
40
|
-
return g;
|
|
41
|
-
}
|
|
42
|
-
return GoogleTileGrid;
|
|
4
|
+
export function getTileGridStyle(tileMatrixSet, cfg) {
|
|
5
|
+
return WindowUrl.toTileUrl({
|
|
6
|
+
urlType: "style" /* MapOptionType.Style */,
|
|
7
|
+
tileMatrix: tileMatrixSet,
|
|
8
|
+
layerId: cfg.layerId,
|
|
9
|
+
style: cfg.style,
|
|
10
|
+
config: cfg.config ?? Config.map.config,
|
|
11
|
+
terrain: cfg.terrain ?? Config.map.terrain,
|
|
12
|
+
labels: cfg.labels ?? Config.map.labels,
|
|
13
|
+
});
|
|
43
14
|
}
|
|
44
15
|
function isGoogle(tms) {
|
|
45
16
|
return tms.identifier === GoogleTms.identifier;
|
package/build/tile.matrix.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tile.matrix.js","sourceRoot":"","sources":["../src/tile.matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"tile.matrix.js","sourceRoot":"","sources":["../src/tile.matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAiB,MAAM,eAAe,CAAC;AAGrE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAA8B,SAAS,EAAE,MAAM,UAAU,CAAC;AAUjE,MAAM,UAAU,gBAAgB,CAAC,aAA4B,EAAE,GAAkB;IAC/E,OAAO,SAAS,CAAC,SAAS,CAAC;QACzB,OAAO,mCAAqB;QAC5B,UAAU,EAAE,aAAa;QACzB,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,MAAM,EAAE,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;QACvC,OAAO,EAAE,GAAG,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,OAAO;QAC1C,MAAM,EAAE,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;KACxC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,QAAQ,CAAC,GAAkB;IAClC,OAAO,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,UAAU,CAAC;AACjD,CAAC;AACD;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,QAAqB,EACrB,UAAyB,EACzB,gBAA+B;IAE/B,IAAI,UAAU,CAAC,UAAU,KAAK,gBAAgB,CAAC,UAAU;QAAE,OAAO,QAAQ,CAAC;IAC3E,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;QACzD,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,CAAC;IACD,+D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Q,CAAC,IAAI,gBAAgB,CAAC,CAAC;IAC7E,CAAC;AACH,CAAC"}
|
package/dist/docs/sitemap.xml
CHANGED
|
@@ -2,122 +2,122 @@
|
|
|
2
2
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
3
3
|
<url>
|
|
4
4
|
<loc>http://localhost:8000/docs/</loc>
|
|
5
|
-
<lastmod>2025-
|
|
5
|
+
<lastmod>2025-04-09</lastmod>
|
|
6
6
|
</url>
|
|
7
7
|
<url>
|
|
8
8
|
<loc>http://localhost:8000/docs/configuration/</loc>
|
|
9
|
-
<lastmod>2025-
|
|
9
|
+
<lastmod>2025-04-09</lastmod>
|
|
10
10
|
</url>
|
|
11
11
|
<url>
|
|
12
12
|
<loc>http://localhost:8000/docs/deployment/</loc>
|
|
13
|
-
<lastmod>2025-
|
|
13
|
+
<lastmod>2025-04-09</lastmod>
|
|
14
14
|
</url>
|
|
15
15
|
<url>
|
|
16
16
|
<loc>http://localhost:8000/docs/quick-start/</loc>
|
|
17
|
-
<lastmod>2025-
|
|
17
|
+
<lastmod>2025-04-09</lastmod>
|
|
18
18
|
</url>
|
|
19
19
|
<url>
|
|
20
20
|
<loc>http://localhost:8000/docs/developer-guide/</loc>
|
|
21
|
-
<lastmod>2025-
|
|
21
|
+
<lastmod>2025-04-09</lastmod>
|
|
22
22
|
</url>
|
|
23
23
|
<url>
|
|
24
24
|
<loc>http://localhost:8000/docs/developer-guide/run-basemaps-locally/</loc>
|
|
25
|
-
<lastmod>2025-
|
|
25
|
+
<lastmod>2025-04-09</lastmod>
|
|
26
26
|
</url>
|
|
27
27
|
<url>
|
|
28
28
|
<loc>http://localhost:8000/docs/developer-guide/cli-methods/bundle-the-basemaps-assets-archive/</loc>
|
|
29
|
-
<lastmod>2025-
|
|
29
|
+
<lastmod>2025-04-09</lastmod>
|
|
30
30
|
</url>
|
|
31
31
|
<url>
|
|
32
32
|
<loc>http://localhost:8000/docs/developer-guide/cli-methods/bundle-the-basemaps-config-file/</loc>
|
|
33
|
-
<lastmod>2025-
|
|
33
|
+
<lastmod>2025-04-09</lastmod>
|
|
34
34
|
</url>
|
|
35
35
|
<url>
|
|
36
36
|
<loc>http://localhost:8000/docs/developer-guide/server-methods/serve-basemaps-with-bundled-config-file/</loc>
|
|
37
|
-
<lastmod>2025-
|
|
37
|
+
<lastmod>2025-04-09</lastmod>
|
|
38
38
|
</url>
|
|
39
39
|
<url>
|
|
40
40
|
<loc>http://localhost:8000/docs/developer-guide/server-methods/serve-basemaps-with-collection-of-geotiff-files/</loc>
|
|
41
|
-
<lastmod>2025-
|
|
41
|
+
<lastmod>2025-04-09</lastmod>
|
|
42
42
|
</url>
|
|
43
43
|
<url>
|
|
44
44
|
<loc>http://localhost:8000/docs/examples/_overview/</loc>
|
|
45
|
-
<lastmod>2025-
|
|
45
|
+
<lastmod>2025-04-09</lastmod>
|
|
46
46
|
</url>
|
|
47
47
|
<url>
|
|
48
48
|
<loc>http://localhost:8000/docs/examples/leaflet.xyz.3857/</loc>
|
|
49
|
-
<lastmod>2025-
|
|
49
|
+
<lastmod>2025-04-09</lastmod>
|
|
50
50
|
</url>
|
|
51
51
|
<url>
|
|
52
52
|
<loc>http://localhost:8000/docs/examples/maplibre.opacity.3857/</loc>
|
|
53
|
-
<lastmod>2025-
|
|
53
|
+
<lastmod>2025-04-09</lastmod>
|
|
54
54
|
</url>
|
|
55
55
|
<url>
|
|
56
56
|
<loc>http://localhost:8000/docs/examples/maplibre.vector.3857/</loc>
|
|
57
|
-
<lastmod>2025-
|
|
57
|
+
<lastmod>2025-04-09</lastmod>
|
|
58
58
|
</url>
|
|
59
59
|
<url>
|
|
60
60
|
<loc>http://localhost:8000/docs/operator-guide/</loc>
|
|
61
|
-
<lastmod>2025-
|
|
61
|
+
<lastmod>2025-04-09</lastmod>
|
|
62
62
|
</url>
|
|
63
63
|
<url>
|
|
64
64
|
<loc>http://localhost:8000/docs/operator-guide/cog-quality/</loc>
|
|
65
|
-
<lastmod>2025-
|
|
65
|
+
<lastmod>2025-04-09</lastmod>
|
|
66
66
|
</url>
|
|
67
67
|
<url>
|
|
68
68
|
<loc>http://localhost:8000/docs/operator-guide/empty-tiles/</loc>
|
|
69
|
-
<lastmod>2025-
|
|
69
|
+
<lastmod>2025-04-09</lastmod>
|
|
70
70
|
</url>
|
|
71
71
|
<url>
|
|
72
72
|
<loc>http://localhost:8000/docs/operator-guide/gebco/</loc>
|
|
73
|
-
<lastmod>2025-
|
|
73
|
+
<lastmod>2025-04-09</lastmod>
|
|
74
74
|
</url>
|
|
75
75
|
<url>
|
|
76
76
|
<loc>http://localhost:8000/docs/operator-guide/quick-start/</loc>
|
|
77
|
-
<lastmod>2025-
|
|
77
|
+
<lastmod>2025-04-09</lastmod>
|
|
78
78
|
</url>
|
|
79
79
|
<url>
|
|
80
80
|
<loc>http://localhost:8000/docs/operator-guide/relief-shade/</loc>
|
|
81
|
-
<lastmod>2025-
|
|
81
|
+
<lastmod>2025-04-09</lastmod>
|
|
82
82
|
</url>
|
|
83
83
|
<url>
|
|
84
84
|
<loc>http://localhost:8000/docs/operator-guide/texture-shade/</loc>
|
|
85
|
-
<lastmod>2025-
|
|
85
|
+
<lastmod>2025-04-09</lastmod>
|
|
86
86
|
</url>
|
|
87
87
|
<url>
|
|
88
88
|
<loc>http://localhost:8000/docs/operator-guide/xyz-projection/</loc>
|
|
89
|
-
<lastmod>2025-
|
|
89
|
+
<lastmod>2025-04-09</lastmod>
|
|
90
90
|
</url>
|
|
91
91
|
<url>
|
|
92
92
|
<loc>http://localhost:8000/docs/user-guide/_get-started/</loc>
|
|
93
|
-
<lastmod>2025-
|
|
93
|
+
<lastmod>2025-04-09</lastmod>
|
|
94
94
|
</url>
|
|
95
95
|
<url>
|
|
96
96
|
<loc>http://localhost:8000/docs/user-guide/api-documentation/</loc>
|
|
97
|
-
<lastmod>2025-
|
|
97
|
+
<lastmod>2025-04-09</lastmod>
|
|
98
98
|
</url>
|
|
99
99
|
<url>
|
|
100
100
|
<loc>http://localhost:8000/docs/user-guide/technical-documentation/</loc>
|
|
101
|
-
<lastmod>2025-
|
|
101
|
+
<lastmod>2025-04-09</lastmod>
|
|
102
102
|
</url>
|
|
103
103
|
<url>
|
|
104
104
|
<loc>http://localhost:8000/docs/user-guide/use-in-esri-software/</loc>
|
|
105
|
-
<lastmod>2025-
|
|
105
|
+
<lastmod>2025-04-09</lastmod>
|
|
106
106
|
</url>
|
|
107
107
|
<url>
|
|
108
108
|
<loc>http://localhost:8000/docs/user-guide/use-in-esri-software/how-to-add-emergency-imagery-to-arcgis/</loc>
|
|
109
|
-
<lastmod>2025-
|
|
109
|
+
<lastmod>2025-04-09</lastmod>
|
|
110
110
|
</url>
|
|
111
111
|
<url>
|
|
112
112
|
<loc>http://localhost:8000/docs/user-guide/use-in-esri-software/how-to-add-individual-linz-basemaps-layers-to-arcgis/</loc>
|
|
113
|
-
<lastmod>2025-
|
|
113
|
+
<lastmod>2025-04-09</lastmod>
|
|
114
114
|
</url>
|
|
115
115
|
<url>
|
|
116
116
|
<loc>http://localhost:8000/docs/user-guide/use-in-esri-software/how-to-add-linz-aerial-imagery-basemaps-to-arcgis-online/</loc>
|
|
117
|
-
<lastmod>2025-
|
|
117
|
+
<lastmod>2025-04-09</lastmod>
|
|
118
118
|
</url>
|
|
119
119
|
<url>
|
|
120
120
|
<loc>http://localhost:8000/docs/user-guide/use-in-esri-software/how-to-add-linz-basemaps-to-arcgis-online-basemaps/</loc>
|
|
121
|
-
<lastmod>2025-
|
|
121
|
+
<lastmod>2025-04-09</lastmod>
|
|
122
122
|
</url>
|
|
123
123
|
</urlset>
|
package/dist/docs/sitemap.xml.gz
CHANGED
|
Binary file
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/css/ol.css"
|
|
8
8
|
type="text/css" />
|
|
9
9
|
<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/build/ol.js"></script>
|
|
10
|
-
<script src="../lib/attribution-7.
|
|
10
|
+
<script src="../lib/attribution-7.17.0-ec5888ef78974d9c.js" integrity="sha512-7FiI73iXTZyNdPO/4uVt2gL3ZWxLerInsw3EJflvJtqgZTG6aoHrZWOW270tyE+PEeTQEda3wB9Gi7elYbf2BQ=="></script>
|
|
11
11
|
</head>
|
|
12
12
|
|
|
13
13
|
<body>
|
|
@@ -57095,35 +57095,16 @@ var WindowUrl = {
|
|
|
57095
57095
|
};
|
|
57096
57096
|
|
|
57097
57097
|
// src/tile.matrix.ts
|
|
57098
|
-
|
|
57099
|
-
|
|
57100
|
-
|
|
57101
|
-
|
|
57102
|
-
|
|
57103
|
-
|
|
57104
|
-
|
|
57105
|
-
|
|
57106
|
-
|
|
57107
|
-
|
|
57108
|
-
tileMatrix: this.tileMatrix,
|
|
57109
|
-
layerId: cfg.layerId,
|
|
57110
|
-
style: cfg.style,
|
|
57111
|
-
config: cfg.config ?? Config.map.config,
|
|
57112
|
-
terrain: cfg.terrain ?? Config.map.terrain,
|
|
57113
|
-
labels: cfg.labels ?? Config.map.labels
|
|
57114
|
-
});
|
|
57115
|
-
}
|
|
57116
|
-
};
|
|
57117
|
-
var Nztm2000TileGrid = new TileGrid(Nztm2000Tms, 2);
|
|
57118
|
-
var Nztm2000QuadTileGrid = new TileGrid(Nztm2000QuadTms);
|
|
57119
|
-
var GoogleTileGrid = new TileGrid(GoogleTms);
|
|
57120
|
-
var Grids = [Nztm2000TileGrid, Nztm2000QuadTileGrid, GoogleTileGrid];
|
|
57121
|
-
function getTileGrid(id2) {
|
|
57122
|
-
for (const g of Grids) {
|
|
57123
|
-
if (id2 === g.tileMatrix.identifier)
|
|
57124
|
-
return g;
|
|
57125
|
-
}
|
|
57126
|
-
return GoogleTileGrid;
|
|
57098
|
+
function getTileGridStyle(tileMatrixSet, cfg) {
|
|
57099
|
+
return WindowUrl.toTileUrl({
|
|
57100
|
+
urlType: "style" /* Style */,
|
|
57101
|
+
tileMatrix: tileMatrixSet,
|
|
57102
|
+
layerId: cfg.layerId,
|
|
57103
|
+
style: cfg.style,
|
|
57104
|
+
config: cfg.config ?? Config.map.config,
|
|
57105
|
+
terrain: cfg.terrain ?? Config.map.terrain,
|
|
57106
|
+
labels: cfg.labels ?? Config.map.labels
|
|
57107
|
+
});
|
|
57127
57108
|
}
|
|
57128
57109
|
function isGoogle(tms) {
|
|
57129
57110
|
return tms.identifier === GoogleTms.identifier;
|
|
@@ -57471,6 +57452,12 @@ function addDefaultLayers(output) {
|
|
|
57471
57452
|
projections: /* @__PURE__ */ new Set([EpsgCode.Nztm2000, EpsgCode.Google]),
|
|
57472
57453
|
category: "Basemaps"
|
|
57473
57454
|
},
|
|
57455
|
+
{
|
|
57456
|
+
id: "topo-raster::topo-raster",
|
|
57457
|
+
title: "NZ Topo Gridless Maps",
|
|
57458
|
+
projections: /* @__PURE__ */ new Set([EpsgCode.Nztm2000, EpsgCode.Google]),
|
|
57459
|
+
category: "Basemaps"
|
|
57460
|
+
},
|
|
57474
57461
|
{
|
|
57475
57462
|
id: "topographic::topographic",
|
|
57476
57463
|
title: "Topographic",
|
|
@@ -57484,16 +57471,30 @@ function addDefaultLayers(output) {
|
|
|
57484
57471
|
category: "Basemaps"
|
|
57485
57472
|
},
|
|
57486
57473
|
{
|
|
57487
|
-
id: "
|
|
57488
|
-
title: "
|
|
57474
|
+
id: "hillshade-igor",
|
|
57475
|
+
title: "Hillshade Igor",
|
|
57489
57476
|
projections: /* @__PURE__ */ new Set([EpsgCode.Nztm2000, EpsgCode.Google]),
|
|
57490
|
-
category: "Basemaps"
|
|
57477
|
+
category: "Basemaps - Hillshade"
|
|
57478
|
+
},
|
|
57479
|
+
{
|
|
57480
|
+
id: "hillshade",
|
|
57481
|
+
title: "Hillshade Standard",
|
|
57482
|
+
projections: /* @__PURE__ */ new Set([EpsgCode.Nztm2000, EpsgCode.Google]),
|
|
57483
|
+
category: "Basemaps - Hillshade"
|
|
57491
57484
|
},
|
|
57492
57485
|
{
|
|
57493
57486
|
id: "elevation",
|
|
57494
|
-
title: "Elevation",
|
|
57487
|
+
title: "Elevation DEM",
|
|
57495
57488
|
projections: /* @__PURE__ */ new Set([EpsgCode.Google]),
|
|
57496
|
-
category: "Basemaps",
|
|
57489
|
+
category: "Basemaps - Elevation",
|
|
57490
|
+
pipeline: "terrain-rgb",
|
|
57491
|
+
imageFormat: "png"
|
|
57492
|
+
},
|
|
57493
|
+
{
|
|
57494
|
+
id: "elevation-dsm",
|
|
57495
|
+
title: "Elevation DSM",
|
|
57496
|
+
projections: /* @__PURE__ */ new Set([EpsgCode.Google]),
|
|
57497
|
+
category: "Basemaps - Elevation",
|
|
57497
57498
|
pipeline: "terrain-rgb",
|
|
57498
57499
|
imageFormat: "png"
|
|
57499
57500
|
},
|
|
@@ -57501,13 +57502,13 @@ function addDefaultLayers(output) {
|
|
|
57501
57502
|
id: "scanned-aerial-imagery-pre-1990-01-01",
|
|
57502
57503
|
title: "Scanned Aerial Imagery pre 1 January 1990",
|
|
57503
57504
|
projections: /* @__PURE__ */ new Set([EpsgCode.Nztm2000, EpsgCode.Google]),
|
|
57504
|
-
category: "Scanned Aerial Imagery
|
|
57505
|
+
category: "Basemaps - Scanned Aerial Imagery"
|
|
57505
57506
|
},
|
|
57506
57507
|
{
|
|
57507
57508
|
id: "scanned-aerial-imagery-post-1989-12-31",
|
|
57508
57509
|
title: "Scanned Aerial Imagery post 31 December 1989",
|
|
57509
57510
|
projections: /* @__PURE__ */ new Set([EpsgCode.Nztm2000, EpsgCode.Google]),
|
|
57510
|
-
category: "Scanned Aerial Imagery
|
|
57511
|
+
category: "Basemaps - Scanned Aerial Imagery"
|
|
57511
57512
|
}
|
|
57512
57513
|
];
|
|
57513
57514
|
for (const l of layers)
|
|
@@ -57535,11 +57536,11 @@ var Config = {
|
|
|
57535
57536
|
return "";
|
|
57536
57537
|
},
|
|
57537
57538
|
get Version() {
|
|
57538
|
-
return "v7.
|
|
57539
|
+
return "v7.16.0-2-g8d563866";
|
|
57539
57540
|
},
|
|
57540
57541
|
/** Github buildId */
|
|
57541
57542
|
get BuildId() {
|
|
57542
|
-
return "
|
|
57543
|
+
return "14346900594-1";
|
|
57543
57544
|
},
|
|
57544
57545
|
map: new MapConfig()
|
|
57545
57546
|
};
|
|
@@ -64173,7 +64174,8 @@ var DebugMap = class {
|
|
|
64173
64174
|
var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
|
|
64174
64175
|
var HillShadeLayerId = "debug-hillshade";
|
|
64175
64176
|
var HillShadePrefix = "__hillshade-";
|
|
64176
|
-
var
|
|
64177
|
+
var elevationDemProdId = "LINZ-Elevation-DEM-Prod";
|
|
64178
|
+
var elevationDsmProdId = "LINZ-Elevation-DSM-Prod";
|
|
64177
64179
|
function debugSourceDropdown(ctx) {
|
|
64178
64180
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "debug__info", children: [
|
|
64179
64181
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("label", { className: "debug__label", children: ctx.label }),
|
|
@@ -64367,8 +64369,8 @@ var Debug = class extends import_react12.Component {
|
|
|
64367
64369
|
this.renderCaptureAreaToggle(),
|
|
64368
64370
|
this.renderTileToggle(),
|
|
64369
64371
|
this.renderRasterSourceDropdown(),
|
|
64370
|
-
this.
|
|
64371
|
-
this.
|
|
64372
|
+
this.renderElevationSourceDropdown(demSources),
|
|
64373
|
+
this.renderHillShadeSourceDropdown(demSources)
|
|
64372
64374
|
] });
|
|
64373
64375
|
}
|
|
64374
64376
|
getWMTSLink() {
|
|
@@ -64453,11 +64455,11 @@ var Debug = class extends import_react12.Component {
|
|
|
64453
64455
|
});
|
|
64454
64456
|
}
|
|
64455
64457
|
/**
|
|
64456
|
-
* Add
|
|
64458
|
+
* Add terrain sources that point to production elevation tilesets
|
|
64457
64459
|
*/
|
|
64458
64460
|
ensureElevationProd() {
|
|
64459
64461
|
const map = this.props.map;
|
|
64460
|
-
if (map.getSource(
|
|
64462
|
+
if (map.getSource(elevationDemProdId) == null) {
|
|
64461
64463
|
const url = WindowUrl.toTileUrl({
|
|
64462
64464
|
urlType: "raster" /* TileRaster */,
|
|
64463
64465
|
tileMatrix: Config.map.tileMatrix,
|
|
@@ -64465,7 +64467,21 @@ var Debug = class extends import_react12.Component {
|
|
|
64465
64467
|
pipeline: "terrain-rgb",
|
|
64466
64468
|
imageFormat: "png"
|
|
64467
64469
|
});
|
|
64468
|
-
map.addSource(
|
|
64470
|
+
map.addSource(elevationDemProdId, {
|
|
64471
|
+
type: "raster-dem",
|
|
64472
|
+
tiles: [url],
|
|
64473
|
+
tileSize: 256
|
|
64474
|
+
});
|
|
64475
|
+
}
|
|
64476
|
+
if (map.getSource(elevationDsmProdId) == null) {
|
|
64477
|
+
const url = WindowUrl.toTileUrl({
|
|
64478
|
+
urlType: "raster" /* TileRaster */,
|
|
64479
|
+
tileMatrix: Config.map.tileMatrix,
|
|
64480
|
+
layerId: "elevation-dsm",
|
|
64481
|
+
pipeline: "terrain-rgb",
|
|
64482
|
+
imageFormat: "png"
|
|
64483
|
+
});
|
|
64484
|
+
map.addSource(elevationDsmProdId, {
|
|
64469
64485
|
type: "raster-dem",
|
|
64470
64486
|
tiles: [url],
|
|
64471
64487
|
tileSize: 256
|
|
@@ -64571,7 +64587,7 @@ var Debug = class extends import_react12.Component {
|
|
|
64571
64587
|
options: [...sourceIds, "off"]
|
|
64572
64588
|
});
|
|
64573
64589
|
}
|
|
64574
|
-
|
|
64590
|
+
renderElevationSourceDropdown(sourceIds) {
|
|
64575
64591
|
if (sourceIds.length === 0)
|
|
64576
64592
|
return;
|
|
64577
64593
|
return debugSourceDropdown({
|
|
@@ -64581,7 +64597,7 @@ var Debug = class extends import_react12.Component {
|
|
|
64581
64597
|
options: ["off", ...sourceIds]
|
|
64582
64598
|
});
|
|
64583
64599
|
}
|
|
64584
|
-
|
|
64600
|
+
renderHillShadeSourceDropdown(sourceIds) {
|
|
64585
64601
|
if (sourceIds.length === 0)
|
|
64586
64602
|
return;
|
|
64587
64603
|
return debugSourceDropdown({
|
|
@@ -64759,8 +64775,7 @@ var MapSwitcher = class extends import_react13.Component {
|
|
|
64759
64775
|
const target = this.getStyleType();
|
|
64760
64776
|
const styleId = `${target.layerId}::${target.style}`;
|
|
64761
64777
|
if (this.currentStyle !== styleId) {
|
|
64762
|
-
const
|
|
64763
|
-
const style = tileGrid.getStyle({ layerId: target.layerId, style: target.style });
|
|
64778
|
+
const style = getTileGridStyle(Config.map.tileMatrix, { layerId: target.layerId, style: target.style });
|
|
64764
64779
|
this.currentStyle = styleId;
|
|
64765
64780
|
this.map.setStyle(style);
|
|
64766
64781
|
}
|
|
@@ -64784,10 +64799,9 @@ var MapSwitcher = class extends import_react13.Component {
|
|
|
64784
64799
|
if (this.el == null)
|
|
64785
64800
|
return;
|
|
64786
64801
|
const cfg = Config.map;
|
|
64787
|
-
const tileGrid = getTileGrid(cfg.tileMatrix.identifier);
|
|
64788
64802
|
const target = this.getStyleType();
|
|
64789
64803
|
this.currentStyle = `${target.layerId}::${target.style}`;
|
|
64790
|
-
const style =
|
|
64804
|
+
const style = getTileGridStyle(cfg.tileMatrix, { layerId: target.layerId, style: target.style });
|
|
64791
64805
|
const location2 = cfg.transformedLocation;
|
|
64792
64806
|
this.map = new import_maplibre_gl.default.Map({
|
|
64793
64807
|
container: this.el,
|
|
@@ -64887,8 +64901,7 @@ var Basemaps = class extends import_react14.Component {
|
|
|
64887
64901
|
this.ensureGeoControl();
|
|
64888
64902
|
this.ensureScaleControl();
|
|
64889
64903
|
this.ensureElevationControl();
|
|
64890
|
-
const
|
|
64891
|
-
const style = tileGrid.getStyle(Config.map);
|
|
64904
|
+
const style = getTileGridStyle(Config.map.tileMatrix, Config.map);
|
|
64892
64905
|
this.map.setStyle(style);
|
|
64893
64906
|
if (Config.map.tileMatrix !== GoogleTms) {
|
|
64894
64907
|
this.map.setMaxBounds([-179.9, -85, 179.9, 85]);
|
|
@@ -64973,8 +64986,7 @@ var Basemaps = class extends import_react14.Component {
|
|
|
64973
64986
|
if (this.el == null)
|
|
64974
64987
|
throw new Error("Unable to find #map element");
|
|
64975
64988
|
const cfg = Config.map;
|
|
64976
|
-
const
|
|
64977
|
-
const style = tileGrid.getStyle(Config.map);
|
|
64989
|
+
const style = getTileGridStyle(Config.map.tileMatrix, Config.map);
|
|
64978
64990
|
const location2 = locationTransform(cfg.location, cfg.tileMatrix, GoogleTms);
|
|
64979
64991
|
this.map = new import_maplibre_gl2.default.Map({
|
|
64980
64992
|
container: this.el,
|
|
@@ -65200,7 +65212,9 @@ var MapAttribution = class {
|
|
|
65200
65212
|
var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
|
|
65201
65213
|
var Categories = [
|
|
65202
65214
|
"Basemaps",
|
|
65203
|
-
"
|
|
65215
|
+
"Basemaps - Hillshade",
|
|
65216
|
+
"Basemaps - Elevation",
|
|
65217
|
+
"Basemaps - Scanned Aerial Imagery",
|
|
65204
65218
|
"Satellite Imagery",
|
|
65205
65219
|
"Urban Aerial Photos",
|
|
65206
65220
|
"Rural Aerial Photos",
|
|
@@ -65318,7 +65332,8 @@ var LayerSwitcherDropdown = class extends import_react15.Component {
|
|
|
65318
65332
|
onChange: this.onLayerChange,
|
|
65319
65333
|
value: ret.current,
|
|
65320
65334
|
classNamePrefix: "layer-selector",
|
|
65321
|
-
id: "layer-selector"
|
|
65335
|
+
id: "layer-selector",
|
|
65336
|
+
maxMenuHeight: 520
|
|
65322
65337
|
}
|
|
65323
65338
|
),
|
|
65324
65339
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
@@ -65479,7 +65494,7 @@ Your Service/App URL:
|
|
|
65479
65494
|
children: [
|
|
65480
65495
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(LayerSwitcherDropdown, {}),
|
|
65481
65496
|
this.renderLinks(),
|
|
65482
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "Developer API
|
|
65497
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "Developer API keys" }),
|
|
65483
65498
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "Contact us for free API keys with better support for public web and mobile apps." }),
|
|
65484
65499
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "lui-button lui-button-primary contact-us", onClick: this.contactUs, children: "Contact us" }),
|
|
65485
65500
|
this.renderAbout()
|
|
@@ -65530,9 +65545,9 @@ Your Service/App URL:
|
|
|
65530
65545
|
}
|
|
65531
65546
|
renderLinks() {
|
|
65532
65547
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react16.Fragment, { children: [
|
|
65533
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "
|
|
65534
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "API keys
|
|
65535
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Copyable, { header: "
|
|
65548
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "Individual API keys" }),
|
|
65549
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "These API keys are for individual users. For use in shared or public maps, apps or tools, please request a free Developer API key." }),
|
|
65550
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Copyable, { header: "API Key", value: Config.ApiKey }),
|
|
65536
65551
|
this.renderLinksTiles()
|
|
65537
65552
|
] });
|
|
65538
65553
|
}
|
package/dist/index.html
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
<meta name="twitter:image" property="og:image" content="/basemaps-card.jpeg" />
|
|
12
12
|
<meta name="twitter:description" property="og:description" content="NZ’s authoritative and open digital basemap service for LINZ and the public." />
|
|
13
13
|
|
|
14
|
-
<link rel="stylesheet" href="index-7.
|
|
14
|
+
<link rel="stylesheet" href="index-7.17.0-c5e57c4593cca04a.css" integrity="xeV8RZPMoEppgmSq1caqemmc8O5k7UmFLbdR/DCeOSP1XmotpTTisZTePLihKxDlJIXbfdkKwskYljWnxYN4tA==" />
|
|
15
15
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet" />
|
|
16
16
|
<title>Basemaps | Land Information New Zealand (LINZ)</title>
|
|
17
17
|
</head>
|
|
18
18
|
|
|
19
19
|
<body class="checker-board">
|
|
20
20
|
<main id="main"></main>
|
|
21
|
-
<script src="index-7.
|
|
21
|
+
<script src="index-7.17.0-cc7beb7d4c8d8216.js" integrity="sha512-zHvrfUyNghYZ3UY2lhW5w/Pjs0odFGo9v6uqtD1FUOquqCrAXvUFxoH5Fw+op8vbajv3LLHmDaxfcOFI7nec9A=="></script>
|
|
22
22
|
</body>
|
|
23
23
|
|
|
24
24
|
</html>
|