@basemaps/landing 7.4.0 → 7.5.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.
Files changed (46) hide show
  1. package/build/__tests__/geojson.test.js +3 -2
  2. package/build/__tests__/geojson.test.js.map +1 -1
  3. package/build/__tests__/map.config.test.js +0 -14
  4. package/build/__tests__/map.config.test.js.map +1 -1
  5. package/build/attribution.js +2 -2
  6. package/build/attribution.js.map +1 -1
  7. package/build/components/copyable.js +2 -2
  8. package/build/components/copyable.js.map +1 -1
  9. package/build/components/debug.d.ts +1 -1
  10. package/build/components/debug.js +15 -8
  11. package/build/components/debug.js.map +1 -1
  12. package/build/components/layer.switcher.dropdown.js +4 -4
  13. package/build/components/layer.switcher.dropdown.js.map +1 -1
  14. package/build/components/layout.header.js +1 -1
  15. package/build/components/layout.header.js.map +1 -1
  16. package/build/components/map.d.ts +2 -5
  17. package/build/components/map.js +22 -41
  18. package/build/components/map.js.map +1 -1
  19. package/build/components/map.switcher.js +1 -1
  20. package/build/components/map.switcher.js.map +1 -1
  21. package/build/config.debug.js.map +1 -1
  22. package/build/config.layer.js +1 -1
  23. package/build/config.layer.js.map +1 -1
  24. package/build/config.map.d.ts +9 -5
  25. package/build/config.map.js +35 -19
  26. package/build/config.map.js.map +1 -1
  27. package/build/debug.map.js +3 -1
  28. package/build/debug.map.js.map +1 -1
  29. package/build/index.js +9 -9
  30. package/build/index.js.map +1 -1
  31. package/build/tile.matrix.d.ts +1 -1
  32. package/build/tile.matrix.js +2 -1
  33. package/build/tile.matrix.js.map +1 -1
  34. package/build/url.d.ts +2 -1
  35. package/build/url.js +7 -1
  36. package/build/url.js.map +1 -1
  37. package/build/webp.js +3 -1
  38. package/build/webp.js.map +1 -1
  39. package/dist/docs/sitemap.xml +19 -19
  40. package/dist/docs/sitemap.xml.gz +0 -0
  41. package/dist/docs/user-guide/api-documentation/index.html +1 -1
  42. package/dist/docs/user-guide/api-documentation/{swagger-8800ca34.html → swagger-ece63452.html} +1 -1
  43. package/package.json +8 -8
  44. package/build/components/daterange.d.ts +0 -17
  45. package/build/components/daterange.js +0 -50
  46. package/build/components/daterange.js.map +0 -1
@@ -2,97 +2,97 @@
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>2024-06-13</lastmod>
5
+ <lastmod>2024-07-02</lastmod>
6
6
  <changefreq>daily</changefreq>
7
7
  </url>
8
8
  <url>
9
9
  <loc>http://localhost:8000/docs/configuration/</loc>
10
- <lastmod>2024-06-13</lastmod>
10
+ <lastmod>2024-07-02</lastmod>
11
11
  <changefreq>daily</changefreq>
12
12
  </url>
13
13
  <url>
14
14
  <loc>http://localhost:8000/docs/deployment/</loc>
15
- <lastmod>2024-06-13</lastmod>
15
+ <lastmod>2024-07-02</lastmod>
16
16
  <changefreq>daily</changefreq>
17
17
  </url>
18
18
  <url>
19
19
  <loc>http://localhost:8000/docs/quick-start/</loc>
20
- <lastmod>2024-06-13</lastmod>
20
+ <lastmod>2024-07-02</lastmod>
21
21
  <changefreq>daily</changefreq>
22
22
  </url>
23
23
  <url>
24
24
  <loc>http://localhost:8000/docs/developer-guide/</loc>
25
- <lastmod>2024-06-13</lastmod>
25
+ <lastmod>2024-07-02</lastmod>
26
26
  <changefreq>daily</changefreq>
27
27
  </url>
28
28
  <url>
29
29
  <loc>http://localhost:8000/docs/examples/_overview/</loc>
30
- <lastmod>2024-06-13</lastmod>
30
+ <lastmod>2024-07-02</lastmod>
31
31
  <changefreq>daily</changefreq>
32
32
  </url>
33
33
  <url>
34
34
  <loc>http://localhost:8000/docs/examples/leaflet.xyz.3857/</loc>
35
- <lastmod>2024-06-13</lastmod>
35
+ <lastmod>2024-07-02</lastmod>
36
36
  <changefreq>daily</changefreq>
37
37
  </url>
38
38
  <url>
39
39
  <loc>http://localhost:8000/docs/examples/maplibre.opacity.3857/</loc>
40
- <lastmod>2024-06-13</lastmod>
40
+ <lastmod>2024-07-02</lastmod>
41
41
  <changefreq>daily</changefreq>
42
42
  </url>
43
43
  <url>
44
44
  <loc>http://localhost:8000/docs/examples/maplibre.vector.3857/</loc>
45
- <lastmod>2024-06-13</lastmod>
45
+ <lastmod>2024-07-02</lastmod>
46
46
  <changefreq>daily</changefreq>
47
47
  </url>
48
48
  <url>
49
49
  <loc>http://localhost:8000/docs/operator-guide/</loc>
50
- <lastmod>2024-06-13</lastmod>
50
+ <lastmod>2024-07-02</lastmod>
51
51
  <changefreq>daily</changefreq>
52
52
  </url>
53
53
  <url>
54
54
  <loc>http://localhost:8000/docs/operator-guide/cog-quality/</loc>
55
- <lastmod>2024-06-13</lastmod>
55
+ <lastmod>2024-07-02</lastmod>
56
56
  <changefreq>daily</changefreq>
57
57
  </url>
58
58
  <url>
59
59
  <loc>http://localhost:8000/docs/operator-guide/empty-tiles/</loc>
60
- <lastmod>2024-06-13</lastmod>
60
+ <lastmod>2024-07-02</lastmod>
61
61
  <changefreq>daily</changefreq>
62
62
  </url>
63
63
  <url>
64
64
  <loc>http://localhost:8000/docs/operator-guide/gebco/</loc>
65
- <lastmod>2024-06-13</lastmod>
65
+ <lastmod>2024-07-02</lastmod>
66
66
  <changefreq>daily</changefreq>
67
67
  </url>
68
68
  <url>
69
69
  <loc>http://localhost:8000/docs/operator-guide/quick-start/</loc>
70
- <lastmod>2024-06-13</lastmod>
70
+ <lastmod>2024-07-02</lastmod>
71
71
  <changefreq>daily</changefreq>
72
72
  </url>
73
73
  <url>
74
74
  <loc>http://localhost:8000/docs/operator-guide/relief-shade/</loc>
75
- <lastmod>2024-06-13</lastmod>
75
+ <lastmod>2024-07-02</lastmod>
76
76
  <changefreq>daily</changefreq>
77
77
  </url>
78
78
  <url>
79
79
  <loc>http://localhost:8000/docs/operator-guide/texture-shade/</loc>
80
- <lastmod>2024-06-13</lastmod>
80
+ <lastmod>2024-07-02</lastmod>
81
81
  <changefreq>daily</changefreq>
82
82
  </url>
83
83
  <url>
84
84
  <loc>http://localhost:8000/docs/user-guide/_get-started/</loc>
85
- <lastmod>2024-06-13</lastmod>
85
+ <lastmod>2024-07-02</lastmod>
86
86
  <changefreq>daily</changefreq>
87
87
  </url>
88
88
  <url>
89
89
  <loc>http://localhost:8000/docs/user-guide/api-documentation/</loc>
90
- <lastmod>2024-06-13</lastmod>
90
+ <lastmod>2024-07-02</lastmod>
91
91
  <changefreq>daily</changefreq>
92
92
  </url>
93
93
  <url>
94
94
  <loc>http://localhost:8000/docs/user-guide/technical-documentation/</loc>
95
- <lastmod>2024-06-13</lastmod>
95
+ <lastmod>2024-07-02</lastmod>
96
96
  <changefreq>daily</changefreq>
97
97
  </url>
98
98
  </urlset>
Binary file
@@ -313,7 +313,7 @@
313
313
  <article class="md-content__inner md-typeset">
314
314
  <h1 id="api-documentation">API documentation</h1>
315
315
  <p>This page provide examples of Basemaps APIs that allow you to programmatically access LINZ map tile services to integrate into your mobile, web.</p>
316
- <p><iframe class="swagger-ui-iframe" frameborder="0" id="8800ca34" src="swagger-8800ca34.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
316
+ <p><iframe class="swagger-ui-iframe" frameborder="0" id="ece63452" src="swagger-ece63452.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
317
317
  </article>
318
318
  </div>
319
319
  </div>
@@ -67,7 +67,7 @@
67
67
  }
68
68
 
69
69
  const resize_ob = new ResizeObserver(function(entries) {
70
- parent.update_swagger_ui_iframe_height("8800ca34");
70
+ parent.update_swagger_ui_iframe_height("ece63452");
71
71
  });
72
72
 
73
73
  // start observing for resizing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/landing",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/linz/basemaps.git",
@@ -28,16 +28,16 @@
28
28
  "last 2 Chrome versions"
29
29
  ],
30
30
  "devDependencies": {
31
- "@basemaps/attribution": "^7.4.0",
32
- "@basemaps/config": "^7.4.0",
33
- "@basemaps/geo": "^7.4.0",
34
- "@basemaps/infra": "^7.4.0",
35
- "@basemaps/shared": "^7.4.0",
31
+ "@basemaps/attribution": "^7.5.0",
32
+ "@basemaps/config": "^7.5.0",
33
+ "@basemaps/geo": "^7.5.0",
34
+ "@basemaps/infra": "^7.5.0",
35
+ "@basemaps/shared": "^7.5.0",
36
36
  "@linzjs/lui": "^21.12.1",
37
37
  "@servie/events": "^3.0.0",
38
38
  "@types/proj4": "^2.5.2",
39
39
  "@types/react-dom": "^18.0.6",
40
- "maplibre-gl": "^4.1.0",
40
+ "maplibre-gl": "^4.5.0",
41
41
  "mime-types": "^2.1.35",
42
42
  "proj4": "^2.8.0",
43
43
  "react": "^18.2.0",
@@ -103,5 +103,5 @@
103
103
  }
104
104
  }
105
105
  ],
106
- "gitHead": "4302f0ced0baff4b2c3240029c3b3a7bae062d7c"
106
+ "gitHead": "6563870f6d1a848a81e9275df30e64146ff782c7"
107
107
  }
@@ -1,17 +0,0 @@
1
- import { Attribution } from '@basemaps/attribution';
2
- import { AttributionBounds } from '@basemaps/attribution/build/attribution.js';
3
- import { Component, ReactNode } from 'react';
4
- export declare const MinDate = "1950-01-01T00:00:00.000Z";
5
- export declare const MaxDate: string;
6
- export interface DateRangeState {
7
- attribution?: Attribution | null;
8
- filtered?: AttributionBounds[] | null;
9
- }
10
- export declare class DateRange extends Component<{
11
- map: maplibregl.Map;
12
- }, DateRangeState> {
13
- handleAttributionBounds: () => void;
14
- getFilteredAttrs(): AttributionBounds[] | null;
15
- componentDidMount(): void;
16
- render(): ReactNode;
17
- }
@@ -1,50 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { clsx } from 'clsx';
3
- import { Component } from 'react';
4
- import { MapAttributionState, MapAttrState } from '../attribution.js';
5
- import { Config } from '../config.js';
6
- export const MinDate = '1950-01-01T00:00:00.000Z';
7
- export const MaxDate = `${new Date().getFullYear().toString()}-12-31T23:59:59.999Z`;
8
- export class DateRange extends Component {
9
- constructor() {
10
- super(...arguments);
11
- Object.defineProperty(this, "handleAttributionBounds", {
12
- enumerable: true,
13
- configurable: true,
14
- writable: true,
15
- value: () => {
16
- this.setState({ filtered: this.getFilteredAttrs() });
17
- }
18
- });
19
- }
20
- getFilteredAttrs() {
21
- if (this.state == null || this.state.attribution == null)
22
- return null;
23
- const zoom = Math.round(this.props.map.getZoom() ?? 0);
24
- const extent = MapAttributionState.mapboxBoundToBbox(this.props.map.getBounds(), zoom, Config.map.tileMatrix);
25
- return this.state.attribution.filter({ extent, zoom });
26
- }
27
- componentDidMount() {
28
- this.props.map.on('moveend', this.handleAttributionBounds);
29
- Config.map.on('filter', this.handleAttributionBounds);
30
- MapAttrState.getCurrentAttribution().then((attribution) => this.setState({ attribution }));
31
- }
32
- render() {
33
- if (this.state == null)
34
- return;
35
- const filtered = this.state.filtered;
36
- if (filtered == null)
37
- return;
38
- // Filter it by map bounds
39
- const attrsByYear = MapAttrState.getAttributionByYear(filtered);
40
- const allAttrs = [...attrsByYear.entries()];
41
- allAttrs.sort((a, b) => a[0] - b[0]);
42
- const dateBefore = Config.map.filter.date.before;
43
- return (_jsx("div", { className: "date-range", children: allAttrs.map((el) => {
44
- const [year, attrs] = el;
45
- const isSelected = dateBefore?.startsWith(String(year));
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));
47
- }) }));
48
- }
49
- }
50
- //# sourceMappingURL=daterange.js.map
@@ -1 +0,0 @@
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,E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