@basemaps/landing 7.0.0 → 7.1.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/README.md +2 -2
- package/build/__tests__/config.debug.test.d.ts +0 -1
- package/build/__tests__/config.debug.test.js +11 -10
- package/build/__tests__/config.debug.test.js.map +1 -1
- package/build/__tests__/config.test.d.ts +0 -1
- package/build/__tests__/config.test.js +5 -4
- package/build/__tests__/config.test.js.map +1 -1
- package/build/__tests__/geojson.test.d.ts +0 -1
- package/build/__tests__/geojson.test.js +6 -5
- package/build/__tests__/geojson.test.js.map +1 -1
- package/build/__tests__/map.config.test.d.ts +0 -1
- package/build/__tests__/map.config.test.js +66 -65
- package/build/__tests__/map.config.test.js.map +1 -1
- package/build/__tests__/tile.matrix.test.d.ts +0 -1
- package/build/__tests__/tile.matrix.test.js +11 -10
- package/build/__tests__/tile.matrix.test.js.map +1 -1
- package/build/attribution.d.ts +8 -11
- package/build/attribution.js +145 -66
- package/build/attribution.js.map +1 -1
- package/build/components/copyable.d.ts +1 -2
- package/build/components/copyable.js +27 -18
- package/build/components/copyable.js.map +1 -1
- package/build/components/daterange.d.ts +0 -1
- package/build/components/daterange.js +11 -7
- package/build/components/daterange.js.map +1 -1
- package/build/components/debug.d.ts +13 -2
- package/build/components/debug.js +273 -78
- package/build/components/debug.js.map +1 -1
- package/build/components/layer.switcher.dropdown.d.ts +1 -2
- package/build/components/layer.switcher.dropdown.js +43 -29
- package/build/components/layer.switcher.dropdown.js.map +1 -1
- package/build/components/layout.footer.d.ts +0 -1
- package/build/components/layout.footer.js +7 -2
- package/build/components/layout.footer.js.map +1 -1
- package/build/components/layout.header.d.ts +1 -2
- package/build/components/layout.header.js +44 -23
- package/build/components/layout.header.js.map +1 -1
- package/build/components/link.d.ts +0 -1
- package/build/components/link.js +1 -1
- package/build/components/link.js.map +1 -1
- package/build/components/map.d.ts +14 -4
- package/build/components/map.js +221 -84
- package/build/components/map.js.map +1 -1
- package/build/components/map.switcher.d.ts +1 -2
- package/build/components/map.switcher.js +80 -31
- package/build/components/map.switcher.js.map +1 -1
- package/build/config.d.ts +0 -1
- package/build/config.debug.d.ts +6 -1
- package/build/config.debug.js +6 -0
- package/build/config.debug.js.map +1 -1
- package/build/config.js +4 -8
- package/build/config.js.map +1 -1
- package/build/config.layer.d.ts +31 -2
- package/build/config.layer.js +14 -6
- package/build/config.layer.js.map +1 -1
- package/build/config.map.d.ts +6 -6
- package/build/config.map.js +95 -29
- package/build/config.map.js.map +1 -1
- package/build/debug.map.d.ts +2 -3
- package/build/debug.map.js +57 -23
- package/build/debug.map.js.map +1 -1
- package/build/global.d.ts +3 -3
- package/build/index.d.ts +0 -1
- package/build/index.js.map +1 -1
- package/build/tile.matrix.d.ts +0 -1
- package/build/tile.matrix.js +12 -0
- package/build/tile.matrix.js.map +1 -1
- package/build/url.d.ts +4 -1
- package/build/url.js +10 -8
- package/build/url.js.map +1 -1
- package/build/webp.d.ts +0 -1
- package/build/webp.js.map +1 -1
- package/dist/docs/404.html +88 -63
- package/dist/docs/assets/javascripts/{bundle.cd18aaf1.min.js → bundle.6c14ae12.min.js} +6 -6
- package/dist/docs/assets/javascripts/{bundle.cd18aaf1.min.js.map → bundle.6c14ae12.min.js.map} +3 -3
- package/dist/docs/assets/javascripts/swagger-initializer.js +20 -0
- package/dist/docs/assets/javascripts/swagger-ui-bundle.js +3 -0
- package/dist/docs/assets/javascripts/swagger-ui-bundle.js.map +1 -0
- package/dist/docs/assets/javascripts/swagger-ui-es-bundle-core.js +3 -0
- package/dist/docs/assets/javascripts/swagger-ui-es-bundle-core.js.map +1 -0
- package/dist/docs/assets/javascripts/swagger-ui-es-bundle.js +3 -0
- package/dist/docs/assets/javascripts/swagger-ui-es-bundle.js.map +1 -0
- package/dist/docs/assets/javascripts/swagger-ui-standalone-preset.js +3 -0
- package/dist/docs/assets/javascripts/swagger-ui-standalone-preset.js.map +1 -0
- package/dist/docs/assets/stylesheets/swagger-ui-dark.css +833 -0
- package/dist/docs/assets/stylesheets/swagger-ui.css +3 -0
- package/dist/docs/assets/stylesheets/swagger-ui.css.map +1 -0
- package/dist/docs/assets/stylesheets/swagger-ui.js +2 -0
- package/dist/docs/assets/stylesheets/swagger-ui.js.map +1 -0
- package/dist/docs/assets/swagger-ui/oauth2-redirect.html +79 -0
- package/dist/docs/configuration/index.html +397 -875
- package/dist/docs/deployment/index.html +354 -829
- package/dist/docs/developer-guide/index.html +343 -793
- package/dist/docs/examples/_overview/index.html +335 -792
- package/dist/docs/examples/leaflet.xyz.3857/index.html +371 -827
- package/dist/docs/examples/maplibre.opacity.3857/index.html +548 -1004
- package/dist/docs/examples/maplibre.vector.3857/index.html +378 -834
- package/dist/docs/index.html +442 -960
- package/dist/docs/operator-guide/cog-quality/index.html +455 -968
- package/dist/docs/operator-guide/empty-tiles/index.html +354 -831
- package/dist/docs/operator-guide/gebco/index.html +479 -0
- package/dist/docs/operator-guide/index.html +331 -777
- package/dist/docs/operator-guide/quick-start/index.html +445 -938
- package/dist/docs/operator-guide/relief-shade/index.html +377 -858
- package/dist/docs/operator-guide/texture-shade/index.html +438 -915
- package/dist/docs/quick-start/index.html +332 -785
- package/dist/docs/sitemap.xml +32 -17
- package/dist/docs/sitemap.xml.gz +0 -0
- package/dist/docs/user-guide/_get-started/index.html +602 -0
- package/dist/docs/user-guide/api-documentation/index.html +409 -0
- package/dist/docs/user-guide/api-documentation/swagger-c1884237.html +120 -0
- package/dist/docs/user-guide/swagger-api.json +393 -0
- package/dist/docs/user-guide/technical-documentation/index.html +930 -0
- package/package.json +17 -17
- package/CHANGELOG.md +0 -1393
- package/build/__tests__/config.debug.test.d.ts.map +0 -1
- package/build/__tests__/config.test.d.ts.map +0 -1
- package/build/__tests__/geojson.test.d.ts.map +0 -1
- package/build/__tests__/map.config.test.d.ts.map +0 -1
- package/build/__tests__/tile.matrix.test.d.ts.map +0 -1
- package/build/attribution.d.ts.map +0 -1
- package/build/components/copyable.d.ts.map +0 -1
- package/build/components/daterange.d.ts.map +0 -1
- package/build/components/debug.d.ts.map +0 -1
- package/build/components/layer.switcher.dropdown.d.ts.map +0 -1
- package/build/components/layout.footer.d.ts.map +0 -1
- package/build/components/layout.header.d.ts.map +0 -1
- package/build/components/link.d.ts.map +0 -1
- package/build/components/map.d.ts.map +0 -1
- package/build/components/map.switcher.d.ts.map +0 -1
- package/build/config.d.ts.map +0 -1
- package/build/config.debug.d.ts.map +0 -1
- package/build/config.layer.d.ts.map +0 -1
- package/build/config.map.d.ts.map +0 -1
- package/build/debug.map.d.ts.map +0 -1
- package/build/global.d.ts.map +0 -1
- package/build/index.d.ts.map +0 -1
- package/build/tile.matrix.d.ts.map +0 -1
- package/build/url.d.ts.map +0 -1
- package/build/webp.d.ts.map +0 -1
- package/dist/docs/search/search_index.json +0 -1
- package/dist/docs/user-guide/index.html +0 -856
package/build/attribution.js
CHANGED
|
@@ -8,14 +8,29 @@ const Copyright = `© ${Stac.License} LINZ`;
|
|
|
8
8
|
export class MapAttributionState {
|
|
9
9
|
constructor() {
|
|
10
10
|
/** Cache the loading of attribution */
|
|
11
|
-
this
|
|
11
|
+
Object.defineProperty(this, "_attrs", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: new Map()
|
|
16
|
+
});
|
|
12
17
|
/** Rendering process needs synch access */
|
|
13
|
-
this
|
|
18
|
+
Object.defineProperty(this, "_attrsSync", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
writable: true,
|
|
22
|
+
value: new Map()
|
|
23
|
+
});
|
|
14
24
|
// Ignore DEMS from the attribution list
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
Object.defineProperty(this, "isIgnored", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: (attr) => {
|
|
30
|
+
const title = attr.collection.title.toLowerCase();
|
|
31
|
+
return title.startsWith('geographx') || title.includes(' dem ');
|
|
32
|
+
}
|
|
33
|
+
});
|
|
19
34
|
}
|
|
20
35
|
/** Load a attribution from a url, return a cached copy if we have one */
|
|
21
36
|
getCurrentAttribution() {
|
|
@@ -35,8 +50,7 @@ export class MapAttributionState {
|
|
|
35
50
|
}
|
|
36
51
|
/** Filter the attribution to the map bounding box */
|
|
37
52
|
filterAttributionToMap(attr, map) {
|
|
38
|
-
|
|
39
|
-
let zoom = Math.round((_a = map.getZoom()) !== null && _a !== void 0 ? _a : 0);
|
|
53
|
+
let zoom = Math.round(map.getZoom() ?? 0);
|
|
40
54
|
// Note that Mapbox rendering 512×512 image tiles are offset by one zoom level compared to 256×256 tiles.
|
|
41
55
|
// For example, 512×512 tiles at zoom level 4 are equivalent to 256×256 tiles at zoom level 5.
|
|
42
56
|
zoom += 1;
|
|
@@ -48,7 +62,6 @@ export class MapAttributionState {
|
|
|
48
62
|
});
|
|
49
63
|
}
|
|
50
64
|
getAttributionByYear(attribution) {
|
|
51
|
-
var _a;
|
|
52
65
|
const attrsByYear = new Map();
|
|
53
66
|
for (const a of attribution) {
|
|
54
67
|
if (!a.startDate || !a.endDate)
|
|
@@ -56,7 +69,7 @@ export class MapAttributionState {
|
|
|
56
69
|
const startYear = Number(a.startDate.slice(0, 4));
|
|
57
70
|
const endYear = Number(a.endDate.slice(0, 4));
|
|
58
71
|
for (let year = startYear; year <= endYear; year++) {
|
|
59
|
-
const attrs =
|
|
72
|
+
const attrs = attrsByYear.get(year) ?? [];
|
|
60
73
|
attrs.push(a);
|
|
61
74
|
attrsByYear.set(year, attrs);
|
|
62
75
|
}
|
|
@@ -80,70 +93,147 @@ export const MapAttrState = new MapAttributionState();
|
|
|
80
93
|
* Handles displaying attributions for the OpenLayers interface
|
|
81
94
|
*/
|
|
82
95
|
export class MapAttribution {
|
|
83
|
-
constructor(
|
|
96
|
+
constructor() {
|
|
97
|
+
/** handle for scheduleRender setTimeout */
|
|
98
|
+
Object.defineProperty(this, "_scheduled", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
configurable: true,
|
|
101
|
+
writable: true,
|
|
102
|
+
value: void 0
|
|
103
|
+
});
|
|
84
104
|
/** handle for scheduleRender requestAnimationFrame */
|
|
85
|
-
this
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
105
|
+
Object.defineProperty(this, "_raf", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
configurable: true,
|
|
108
|
+
writable: true,
|
|
109
|
+
value: 0
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(this, "bounds", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
configurable: true,
|
|
114
|
+
writable: true,
|
|
115
|
+
value: new maplibre.LngLatBounds([0, 0, 0, 0])
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(this, "zoom", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
configurable: true,
|
|
120
|
+
writable: true,
|
|
121
|
+
value: -1
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(this, "attrHtml", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
configurable: true,
|
|
126
|
+
writable: true,
|
|
127
|
+
value: void 0
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(this, "attrContainer", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
configurable: true,
|
|
132
|
+
writable: true,
|
|
133
|
+
value: void 0
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(this, "map", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
configurable: true,
|
|
138
|
+
writable: true,
|
|
139
|
+
value: void 0
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(this, "_events", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
configurable: true,
|
|
144
|
+
writable: true,
|
|
145
|
+
value: []
|
|
146
|
+
});
|
|
90
147
|
/**
|
|
91
148
|
* Trigger an attribution text update.
|
|
92
149
|
*/
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
150
|
+
Object.defineProperty(this, "resetAttribution", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
configurable: true,
|
|
153
|
+
writable: true,
|
|
154
|
+
value: () => {
|
|
155
|
+
this.updateAttribution();
|
|
156
|
+
}
|
|
157
|
+
});
|
|
97
158
|
/**
|
|
98
159
|
* Trigger an attribution text update, will not update if the attribution text not change.
|
|
99
160
|
* Will fetch attributions if needed
|
|
100
161
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
162
|
+
Object.defineProperty(this, "updateAttribution", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
configurable: true,
|
|
165
|
+
writable: true,
|
|
166
|
+
value: () => {
|
|
167
|
+
if (this.map == null)
|
|
168
|
+
return;
|
|
169
|
+
if (Config.map.isVector) {
|
|
170
|
+
for (const source of Object.values(this.map.style.sourceCaches)) {
|
|
171
|
+
const attr = source.getSource().attribution;
|
|
172
|
+
if (attr)
|
|
173
|
+
return this.setAttribution(attr);
|
|
174
|
+
}
|
|
175
|
+
return this.setAttribution('© Toitū Te Whenua');
|
|
176
|
+
}
|
|
177
|
+
const loader = MapAttrState.getCurrentAttribution();
|
|
178
|
+
loader.then(() => this.scheduleRender());
|
|
179
|
+
}
|
|
180
|
+
});
|
|
108
181
|
/**
|
|
109
182
|
* Set the attribution text if needed
|
|
110
183
|
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
184
|
+
Object.defineProperty(this, "renderAttribution", {
|
|
185
|
+
enumerable: true,
|
|
186
|
+
configurable: true,
|
|
187
|
+
writable: true,
|
|
188
|
+
value: () => {
|
|
189
|
+
if (this.map == null)
|
|
190
|
+
return;
|
|
191
|
+
this._raf = 0;
|
|
192
|
+
const attr = MapAttrState._attrsSync.get(Config.map.layerKeyTms);
|
|
193
|
+
if (attr == null)
|
|
194
|
+
return this.setAttribution('');
|
|
195
|
+
const filtered = MapAttrState.filterAttributionToMap(attr, this.map);
|
|
196
|
+
const filteredLayerIds = filtered.map((x) => x.collection.id).join('_');
|
|
197
|
+
Config.map.emit('visibleLayers', filteredLayerIds);
|
|
198
|
+
let attributionHTML = attr.renderList(filtered);
|
|
199
|
+
if (attributionHTML === '') {
|
|
200
|
+
attributionHTML = Copyright;
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
attributionHTML = Copyright + ' - ' + attributionHTML;
|
|
204
|
+
}
|
|
205
|
+
this.setAttribution(attributionHTML);
|
|
131
206
|
}
|
|
132
|
-
};
|
|
207
|
+
});
|
|
208
|
+
this.attrContainer = document.createElement('div');
|
|
209
|
+
this.attrContainer.className = 'maplibregl-ctrl maplibregl-ctrl-attrib';
|
|
210
|
+
this.attrHtml = document.createElement('div');
|
|
211
|
+
this.attrHtml.className = `maplibregl-ctrl-attrib-inner mapboxgl-ctrl-attrib-inner`;
|
|
212
|
+
this.attrContainer.appendChild(this.attrHtml);
|
|
213
|
+
}
|
|
214
|
+
onAdd(map) {
|
|
133
215
|
this.map = map;
|
|
134
216
|
map.on('move', this.updateAttribution);
|
|
135
|
-
|
|
136
|
-
Config.map.on('layer', this.resetAttribution);
|
|
137
|
-
onMapLoaded(this.map, () => {
|
|
217
|
+
onMapLoaded(map, () => {
|
|
138
218
|
this._events.push(Config.map.on('filter', this.updateAttribution));
|
|
139
219
|
this.resetAttribution();
|
|
140
220
|
});
|
|
221
|
+
this._events.push(Config.map.on('tileMatrix', this.resetAttribution));
|
|
222
|
+
this._events.push(Config.map.on('layer', this.resetAttribution));
|
|
223
|
+
return this.attrContainer;
|
|
224
|
+
}
|
|
225
|
+
onRemove(map) {
|
|
226
|
+
for (const evt of this._events)
|
|
227
|
+
evt();
|
|
228
|
+
this._events = [];
|
|
229
|
+
map.off('move', this.updateAttribution);
|
|
141
230
|
}
|
|
142
231
|
/**
|
|
143
232
|
* Only update attributions at most every 200ms
|
|
144
233
|
*/
|
|
145
234
|
scheduleRender() {
|
|
146
|
-
|
|
235
|
+
if (this.map == null)
|
|
236
|
+
return;
|
|
147
237
|
if (this._scheduled != null || this._raf !== 0)
|
|
148
238
|
return;
|
|
149
239
|
if (this.map.getZoom() === this.zoom) {
|
|
@@ -151,26 +241,15 @@ export class MapAttribution {
|
|
|
151
241
|
if (bounds === this.bounds)
|
|
152
242
|
return;
|
|
153
243
|
}
|
|
154
|
-
this.zoom =
|
|
244
|
+
this.zoom = this.map.getZoom() ?? 0;
|
|
155
245
|
this.bounds = this.map.getBounds();
|
|
156
246
|
this._scheduled = setTimeout(() => {
|
|
157
247
|
this._scheduled = undefined;
|
|
158
248
|
this._raf = requestAnimationFrame(this.renderAttribution);
|
|
159
249
|
}, 200);
|
|
160
250
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
return;
|
|
164
|
-
this.map.removeControl(this.attributionControl);
|
|
165
|
-
this.attributionControl = null;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Add attribution for vector map
|
|
169
|
-
*/
|
|
170
|
-
vectorAttribution() {
|
|
171
|
-
this.removeAttribution();
|
|
172
|
-
this.attributionControl = new maplibre.AttributionControl({ compact: false });
|
|
173
|
-
this.map.addControl(this.attributionControl, 'bottom-right');
|
|
251
|
+
setAttribution(text) {
|
|
252
|
+
this.attrHtml.innerText = text;
|
|
174
253
|
}
|
|
175
254
|
}
|
|
176
255
|
//# sourceMappingURL=attribution.js.map
|
package/build/attribution.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.js","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WA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AAE,CAAC;YACrC,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;YACpC,IAAI,MAAM,KAAK,IAAI,CAAC,MAAM;gBAAE,OAAO;QACrC,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,GAAG,EAAE;YAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;YAC5B,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC5D,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC;IAwBD,cAAc,CAAC,IAAY;QACzB,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC;IACjC,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import { Component, ReactNode } from 'react';
|
|
3
3
|
export interface CopyableProps {
|
|
4
4
|
header: string;
|
|
@@ -11,4 +11,3 @@ export declare class Copyable extends Component<CopyableProps, {
|
|
|
11
11
|
_copyTimeout: null | NodeJS.Timeout;
|
|
12
12
|
copy: () => void;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=copyable.d.ts.map
|
|
@@ -1,32 +1,41 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from 'clsx';
|
|
2
3
|
import { Component } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
4
|
import { Config, gaEvent } from '../config.js';
|
|
5
5
|
export class Copyable extends Component {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
|
-
this
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
Object.defineProperty(this, "_copyTimeout", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
configurable: true,
|
|
11
|
+
writable: true,
|
|
12
|
+
value: null
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(this, "copy", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value: () => {
|
|
19
|
+
/**
|
|
20
|
+
* Create a readablish name for the copy event
|
|
21
|
+
* @example `copy:topographic::basic:tilejson`
|
|
22
|
+
* @example `copy:aerial:wmts:nztm2000quad`
|
|
23
|
+
*/
|
|
24
|
+
gaEvent("Ui" /* GaEvent.Ui */, 'copy:' + Config.map.layerKey + ':' + this.props.header.replace(/ /g, '').toLowerCase());
|
|
25
|
+
navigator.clipboard.writeText(this.props.value);
|
|
26
|
+
this.setState({ copied: true });
|
|
27
|
+
if (this._copyTimeout != null)
|
|
28
|
+
clearTimeout(this._copyTimeout);
|
|
29
|
+
this._copyTimeout = setTimeout(() => this.setState({ copied: false }), 1000);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
22
32
|
}
|
|
23
33
|
render() {
|
|
24
|
-
var _a, _b;
|
|
25
34
|
return (_jsxs("div", { className: "LuiDeprecatedForms", children: [_jsx("label", { children: this.props.header }), _jsxs("div", { className: clsx({
|
|
26
35
|
'lui-menu-label': true,
|
|
27
36
|
'menu-copyable': true,
|
|
28
|
-
'menu-copyable-copied':
|
|
29
|
-
}), children: [_jsx("button", { className: "menu-copyable-icon-button", title: "Copy", onClick: this.copy, children: _jsx("i", { className: "material-icons-round", children:
|
|
37
|
+
'menu-copyable-copied': this.state?.copied,
|
|
38
|
+
}), children: [_jsx("button", { className: "menu-copyable-icon-button", title: "Copy", onClick: this.copy, children: _jsx("i", { className: "material-icons-round", children: this.state?.copied ? 'check' : 'content_copy' }) }), _jsx("input", { value: this.props.value, readOnly: true })] })] }));
|
|
30
39
|
}
|
|
31
40
|
}
|
|
32
41
|
//# sourceMappingURL=copyable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copyable.js","sourceRoot":"","sources":["../../src/components/copyable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"copyable.js","sourceRoot":"","sources":["../../src/components/copyable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAW,OAAO,EAAE,MAAM,cAAc,CAAC;AAOxD,MAAM,OAAO,QAAS,SAAQ,SAA6C;IAA3E;;QAqBE;;;;mBAAsC,IAAI;WAAC;QAC3C;;;;mBAAO,GAAS,EAAE;gBAChB;;;;mBAIG;gBACH,OAAO,wBAAa,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,GAAG,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;gBAC7G,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAChD,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;gBAChC,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI;oBAAE,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;gBAC/D,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,IAAK,CAAC,CAAC;YAChF,CAAC;WAAC;IACJ,CAAC;IAjCU,MAAM;QACb,OAAO,CACL,eAAK,SAAS,EAAC,oBAAoB,aACjC,0BAAQ,IAAI,CAAC,KAAK,CAAC,MAAM,GAAS,EAClC,eACE,SAAS,EAAE,IAAI,CAAC;wBACd,gBAAgB,EAAE,IAAI;wBACtB,eAAe,EAAE,IAAI;wBACrB,sBAAsB,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM;qBAC3C,CAAC,aAEF,iBAAQ,SAAS,EAAC,2BAA2B,EAAC,KAAK,EAAC,MAAM,EAAC,OAAO,EAAE,IAAI,CAAC,IAAI,YAC3E,YAAG,SAAS,EAAC,sBAAsB,YAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,GAAK,GAChF,EACT,gBAAO,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAI,IAC9C,IACF,CACP,CAAC;IACJ,CAAC;CAeF"}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from 'clsx';
|
|
2
3
|
import { Component } from 'react';
|
|
3
4
|
import { MapAttributionState, MapAttrState } from '../attribution.js';
|
|
4
5
|
import { Config } from '../config.js';
|
|
5
|
-
import clsx from 'clsx';
|
|
6
6
|
export const MinDate = '1950-01-01T00:00:00.000Z';
|
|
7
7
|
export const MaxDate = `${new Date().getFullYear().toString()}-12-31T23:59:59.999Z`;
|
|
8
8
|
export class DateRange extends Component {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
Object.defineProperty(this, "handleAttributionBounds", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: () => {
|
|
16
|
+
this.setState({ filtered: this.getFilteredAttrs() });
|
|
17
|
+
}
|
|
18
|
+
});
|
|
14
19
|
}
|
|
15
20
|
getFilteredAttrs() {
|
|
16
|
-
var _a;
|
|
17
21
|
if (this.state == null || this.state.attribution == null)
|
|
18
22
|
return null;
|
|
19
|
-
const zoom = Math.round(
|
|
23
|
+
const zoom = Math.round(this.props.map.getZoom() ?? 0);
|
|
20
24
|
const extent = MapAttributionState.mapboxBoundToBbox(this.props.map.getBounds(), zoom, Config.map.tileMatrix);
|
|
21
25
|
return this.state.attribution.filter({ extent, zoom });
|
|
22
26
|
}
|
|
@@ -38,7 +42,7 @@ export class DateRange extends Component {
|
|
|
38
42
|
const dateBefore = Config.map.filter.date.before;
|
|
39
43
|
return (_jsx("div", { className: "date-range", children: allAttrs.map((el) => {
|
|
40
44
|
const [year, attrs] = el;
|
|
41
|
-
const isSelected = dateBefore
|
|
45
|
+
const isSelected = dateBefore?.startsWith(String(year));
|
|
42
46
|
return (_jsxs("button", { title: attrs.map((f) => f.collection.title).join('\n'), onClick: () => Config.map.setFilterDateRange({ before: String(year) }), className: clsx({ 'date-range__year': true, 'date-range__year--selected': isSelected }), children: [year, " - ", attrs.length] }, year));
|
|
43
47
|
}) }));
|
|
44
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daterange.js","sourceRoot":"","sources":["../../src/components/daterange.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"daterange.js","sourceRoot":"","sources":["../../src/components/daterange.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,O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KF,CACV,CAAC;YACJ,CAAC,CAAC,GACE,CACP,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -16,7 +16,9 @@ export declare class Debug extends Component<{
|
|
|
16
16
|
map: maplibregl.Map;
|
|
17
17
|
}, DebugState> {
|
|
18
18
|
debugMap: DebugMap;
|
|
19
|
-
|
|
19
|
+
constructor(p: {
|
|
20
|
+
map: maplibregl.Map;
|
|
21
|
+
});
|
|
20
22
|
componentDidMount(): void;
|
|
21
23
|
waitForMap: () => void;
|
|
22
24
|
updateFromConfig(): void;
|
|
@@ -35,9 +37,18 @@ export declare class Debug extends Component<{
|
|
|
35
37
|
renderCogToggle(): ReactNode;
|
|
36
38
|
renderTileToggle(): ReactNode;
|
|
37
39
|
downloadSource: () => Promise<void>;
|
|
40
|
+
selectRasterSource: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
41
|
+
selectElevation: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
42
|
+
selectHillShade: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
43
|
+
setHillShadeShown(sourceId: string | null): void;
|
|
44
|
+
setTerrainShown(sourceId: string | null): void;
|
|
45
|
+
setVisibleSource(sourceId: string | null): void;
|
|
38
46
|
renderSourceToggle(): ReactNode;
|
|
47
|
+
getSourcesIds(type: string): string[];
|
|
48
|
+
renderRasterSourceDropdown(): ReactNode | null;
|
|
49
|
+
renderDemSourceDropdown(sourceIds: string[]): ReactNode | null;
|
|
50
|
+
renderDemHillShadeSourceDropdown(sourceIds: string[]): ReactNode | null;
|
|
39
51
|
renderSliders(): ReactNode | null;
|
|
40
52
|
trackMouseMove(layerId: string, type: 'source' | 'cog'): void;
|
|
41
53
|
setVectorShown(isShown: boolean, type: 'source' | 'cog'): void;
|
|
42
54
|
}
|
|
43
|
-
//# sourceMappingURL=debug.d.ts.map
|