@basemaps/landing 7.12.0 → 7.13.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 (92) hide show
  1. package/build/components/layer.switcher.dropdown.js +1 -0
  2. package/build/components/layer.switcher.dropdown.js.map +1 -1
  3. package/build/components/map.js +11 -13
  4. package/build/components/map.js.map +1 -1
  5. package/build/components/map.label.js +1 -1
  6. package/build/components/map.label.js.map +1 -1
  7. package/build/config.map.js +6 -0
  8. package/build/config.map.js.map +1 -1
  9. package/dist/android-chrome-192x192.png +0 -0
  10. package/dist/android-chrome-512x512.png +0 -0
  11. package/dist/apple-touch-icon.png +0 -0
  12. package/dist/assets/clear.svg +1 -0
  13. package/dist/assets/fonts/OpenSans-Bold.woff2 +0 -0
  14. package/dist/assets/fonts/OpenSans-Italic.woff2 +0 -0
  15. package/dist/assets/fonts/OpenSans-Light.woff2 +0 -0
  16. package/dist/assets/fonts/OpenSans-Regular.woff2 +0 -0
  17. package/dist/assets/fonts/OpenSans-SemiBold.woff2 +0 -0
  18. package/dist/assets/logo-linz.svg +124 -0
  19. package/dist/assets/logo-nz-govt.svg +196 -0
  20. package/dist/assets/whats_new_updates.svg +1 -0
  21. package/dist/basemaps-card.jpeg +0 -0
  22. package/dist/docs/404.html +71 -31
  23. package/dist/docs/assets/javascripts/bundle.83f73b43.min.js +16 -0
  24. package/dist/docs/assets/javascripts/bundle.83f73b43.min.js.map +7 -0
  25. package/dist/docs/assets/javascripts/swagger-ui-bundle.js +1 -2
  26. package/dist/docs/assets/javascripts/swagger-ui-bundle.js.map +1 -1
  27. package/dist/docs/assets/javascripts/swagger-ui-standalone-preset.js +1 -2
  28. package/dist/docs/assets/javascripts/swagger-ui-standalone-preset.js.map +1 -1
  29. package/dist/docs/assets/javascripts/workers/{search.f886a092.min.js → search.6ce7567c.min.js} +3 -3
  30. package/dist/docs/assets/javascripts/workers/{search.f886a092.min.js.map → search.6ce7567c.min.js.map} +2 -2
  31. package/dist/docs/assets/stylesheets/main.0253249f.min.css +1 -0
  32. package/dist/docs/assets/stylesheets/main.0253249f.min.css.map +1 -0
  33. package/dist/docs/assets/stylesheets/palette.06af60db.min.css +1 -0
  34. package/dist/docs/assets/stylesheets/palette.06af60db.min.css.map +1 -0
  35. package/dist/docs/assets/stylesheets/swagger-ui-dark.css +16 -0
  36. package/dist/docs/assets/stylesheets/swagger-ui.css +1 -1
  37. package/dist/docs/assets/stylesheets/swagger-ui.css.map +1 -1
  38. package/dist/docs/configuration/index.html +25 -17
  39. package/dist/docs/deployment/index.html +25 -17
  40. package/dist/docs/developer-guide/cli-methods/bundle-the-basemaps-assets-archive/index.html +748 -0
  41. package/dist/docs/developer-guide/cli-methods/bundle-the-basemaps-config-file/index.html +33 -26
  42. package/dist/docs/developer-guide/index.html +25 -17
  43. package/dist/docs/developer-guide/run-basemaps-locally/index.html +33 -18
  44. package/dist/docs/developer-guide/server-methods/serve-basemaps-with-bundled-config-file/index.html +98 -30
  45. package/dist/docs/developer-guide/server-methods/serve-basemaps-with-collection-of-geotiff-files/index.html +29 -22
  46. package/dist/docs/examples/_overview/index.html +25 -17
  47. package/dist/docs/examples/leaflet.xyz.3857/index.html +25 -17
  48. package/dist/docs/examples/maplibre.opacity.3857/index.html +25 -17
  49. package/dist/docs/examples/maplibre.vector.3857/index.html +25 -17
  50. package/dist/docs/index.html +25 -17
  51. package/dist/docs/operator-guide/cog-quality/index.html +25 -17
  52. package/dist/docs/operator-guide/empty-tiles/index.html +31 -19
  53. package/dist/docs/operator-guide/gebco/index.html +25 -17
  54. package/dist/docs/operator-guide/index.html +25 -17
  55. package/dist/docs/operator-guide/quick-start/index.html +25 -17
  56. package/dist/docs/operator-guide/relief-shade/index.html +25 -17
  57. package/dist/docs/operator-guide/texture-shade/index.html +25 -17
  58. package/dist/docs/operator-guide/xyz-projection/index.html +25 -17
  59. package/dist/docs/quick-start/index.html +25 -17
  60. package/dist/docs/sitemap.xml +28 -48
  61. package/dist/docs/sitemap.xml.gz +0 -0
  62. package/dist/docs/user-guide/_get-started/index.html +25 -17
  63. package/dist/docs/user-guide/api-documentation/index.html +26 -18
  64. package/dist/docs/user-guide/api-documentation/{swagger-ccf476ba.html → swagger-be89a08e.html} +1 -1
  65. package/dist/docs/user-guide/technical-documentation/index.html +25 -17
  66. package/dist/examples/index.html +34 -0
  67. package/dist/examples/index.leaflet.xyz.3857.html +43 -0
  68. package/dist/examples/index.maplibre.compare.3857.html +111 -0
  69. package/dist/examples/index.maplibre.elevation.3857.html +100 -0
  70. package/dist/examples/index.maplibre.opacity.3857.html +218 -0
  71. package/dist/examples/index.maplibre.vector.3857.html +48 -0
  72. package/dist/examples/index.openlayers.attribution.wmts.3857.html +55 -0
  73. package/dist/examples/index.openlayers.wmts.3857.html +49 -0
  74. package/dist/examples/index.openlayers.xyz.3857.html +49 -0
  75. package/dist/favicon-16x16.png +0 -0
  76. package/dist/favicon-32x32.png +0 -0
  77. package/dist/favicon.ico +0 -0
  78. package/dist/index-7.13.0-c5e57c4593cca04a.css +7686 -0
  79. package/dist/index-7.13.0-ee1085e6b02ac062.js +65655 -0
  80. package/dist/index.css +7686 -0
  81. package/dist/index.html +24 -0
  82. package/dist/index.js +65655 -0
  83. package/dist/json-schema/stac-basemaps-extension/1.0/schema.json +144 -0
  84. package/dist/lib/attribution-7.13.0-6b67bd96f9957d4a.js +10438 -0
  85. package/dist/lib/attribution.js +10438 -0
  86. package/package.json +3 -3
  87. package/dist/docs/assets/javascripts/bundle.6c14ae12.min.js +0 -29
  88. package/dist/docs/assets/javascripts/bundle.6c14ae12.min.js.map +0 -7
  89. package/dist/docs/assets/stylesheets/main.fad675c6.min.css +0 -1
  90. package/dist/docs/assets/stylesheets/main.fad675c6.min.css.map +0 -1
  91. package/dist/docs/assets/stylesheets/palette.356b1318.min.css +0 -1
  92. package/dist/docs/assets/stylesheets/palette.356b1318.min.css.map +0 -1
@@ -0,0 +1,48 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Maplibre WGS84 Topographic Vector Basemaps Demo</title>
6
+ <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
7
+ <script
8
+ src="https://unpkg.com/maplibre-gl@1.14.0-rc.1/dist/maplibre-gl.js"
9
+ integrity="sha384-YAsv3Nk7n9hAR/gbvgvtGvq2TV1hvEpFks3bGIs451f9D0jSn070rHje6Swuo7bL"
10
+ crossorigin="anonymous"
11
+ ></script>
12
+ <link href="https://unpkg.com/maplibre-gl@1.14.0-rc.1/dist/maplibre-gl.css" rel="stylesheet" />
13
+ <style>
14
+ body {
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+ #map {
19
+ position: absolute;
20
+ top: 0;
21
+ bottom: 0;
22
+ width: 100%;
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <div id="map"></div>
28
+ <script>
29
+ const apiKey = localStorage.getItem('api-key');
30
+ if (!apiKey) {
31
+ throw new Error('Missing api-key in localStorage');
32
+ }
33
+
34
+ const startPos = [173, -40.5];
35
+ const startZoom = 6;
36
+
37
+ // vector layers
38
+ const style =
39
+ 'https://basemaps.linz.govt.nz/v1/tiles/topographic/EPSG:3857/style/topographic.json?api=' + apiKey;
40
+ var map = new maplibregl.Map({
41
+ container: 'map', // container id
42
+ style: style, // style URL
43
+ center: startPos, // starting position [lng, lat]
44
+ zoom: startZoom, // starting zoom
45
+ });
46
+ </script>
47
+ </body>
48
+ </html>
@@ -0,0 +1,55 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <title>OpenLayers WMTS Basemaps Demo</title>
7
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/css/ol.css"
8
+ type="text/css" />
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.13.0-6b67bd96f9957d4a.js" integrity="sha512-a2e9lvmVfUreCIy++tRkJxKxl8Wr81q+koI+EvLG+iAGCs6ttiZyzkBkNzTBGI0eLR4AmxLfrNoKjgxVcDmBgQ=="></script>
11
+ </head>
12
+
13
+ <body>
14
+ <div id="map" style="width: 800px; height: 600px;"></div>
15
+ <script>
16
+ (async () => {
17
+ const apiKey = localStorage.getItem('api-key');
18
+ if (!apiKey) throw new Error('Missing api-key in localStorage');
19
+
20
+ const projection = 'EPSG:3857';
21
+ const baseUrl = 'https://basemaps.linz.govt.nz/v1/tiles/aerial/' + projection;
22
+ const loadingWmts = fetch(baseUrl + '/WMTSCapabilities.xml?api=' + apiKey);
23
+
24
+ const parser = new ol.format.WMTSCapabilities();
25
+ const wmtsXml = parser.read(await (await loadingWmts).text());
26
+ const options = ol.source.WMTS.optionsFromCapabilities(wmtsXml, {
27
+ layer: 'aerial',
28
+ matrixSet: projection,
29
+ });
30
+
31
+ const view = new ol.View({ center: [19467552, -5074414], zoom: 6, });
32
+
33
+ const source = new ol.source.WMTS(options);
34
+
35
+ const map = new ol.Map({
36
+ target: 'map',
37
+ layers: [new ol.layer.Tile({ source, projection })],
38
+ controls: ol.control.defaults({ attributionOptions: { collapsed: false, collapsible: false } }),
39
+ view,
40
+ });
41
+
42
+ const attributions = await BasemapsAttribution.load(baseUrl + '/attribution.json?api=' + apiKey);
43
+ // Ignore the hillshade layers from attribution
44
+ attributions.isIgnored = a => a.collection.title.toLowerCase().includes('geographx')
45
+ map.addEventListener('moveend', () => {
46
+ // Transform the extent into Lat/Long
47
+ const extent = ol.proj.transformExtent(view.calculateExtent(), projection, 'EPSG:4326');
48
+ const filtered = attributions.filter({ extent, zoom: view.getZoom() });
49
+ source.setAttributions(attributions.renderList(filtered));
50
+ });
51
+ })();
52
+ </script>
53
+ </body>
54
+
55
+ </html>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>OpenLayers WMTS Basemaps Demo</title>
6
+ <link
7
+ rel="stylesheet"
8
+ href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/css/ol.css"
9
+ type="text/css"
10
+ />
11
+ <script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/build/ol.js"></script>
12
+ </head>
13
+
14
+ <body>
15
+ <div id="map" style="width: 800px; height: 600px;"></div>
16
+ <script>
17
+ (async () => {
18
+ const apiKey = localStorage.getItem('api-key');
19
+ if (! apiKey) {
20
+ throw new Error('Missing api-key in localStorage');
21
+ }
22
+
23
+ const projection = 'EPSG:3857';
24
+ const baseUrl = 'https://basemaps.linz.govt.nz/v1/tiles/aerial/' + projection;
25
+ const loadingWmts = fetch(baseUrl+'/WMTSCapabilities.xml?api='+apiKey);
26
+
27
+ const parser = new ol.format.WMTSCapabilities();
28
+ const wmtsXml = parser.read(await (await loadingWmts).text());
29
+ const options = ol.source.WMTS.optionsFromCapabilities(wmtsXml, {
30
+ layer: 'aerial',
31
+ matrixSet: projection,
32
+ });
33
+
34
+ const source = new ol.source.WMTS(options);
35
+ source.setAttributions('<a href="https://www.linz.govt.nz/data/linz-data/linz-basemaps/data-attribution">LINZ CC BY 4.0 © Imagery Basemap contributors</a>');
36
+
37
+ new ol.Map({
38
+ target: 'map',
39
+ layers: [new ol.layer.Tile({ source, projection })],
40
+ controls: ol.control.defaults({ attributionOptions: { collapsed: false, collapsible: false } }),
41
+ view: new ol.View({
42
+ center: [19467552, -5074414],
43
+ zoom: 6,
44
+ }),
45
+ });
46
+ })();
47
+ </script>
48
+ </body>
49
+ </html>
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <title>OpenLayers WGS84 Basemaps Demo</title>
6
+ <link
7
+ rel="stylesheet"
8
+ href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/css/ol.css"
9
+ type="text/css"
10
+ />
11
+ <style>
12
+ html,
13
+ body {
14
+ height: 100%;
15
+ margin: 0;
16
+ }
17
+ </style>
18
+ <script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.3.1/build/ol.js"></script>
19
+ </head>
20
+
21
+ <body>
22
+ <div id="map" style="width: 500px; height: 500px;"></div>
23
+ <script>
24
+ const apiKey = localStorage.getItem('api-key');
25
+ if (! apiKey) {
26
+ throw new Error('Missing api-key in localStorage');
27
+ }
28
+
29
+ const url = 'https://basemaps.linz.govt.nz/v1/tiles/aerial/EPSG:3857/{z}/{x}/{y}.webp?api='+apiKey;
30
+ const attributions = '<a href="https://www.linz.govt.nz/data/linz-data/linz-basemaps/data-attribution">LINZ CC BY 4.0 © Imagery Basemap contributors</a>';
31
+
32
+ new ol.Map({
33
+ target: 'map',
34
+ layers: [
35
+ new ol.layer.Tile({
36
+ source: new ol.source.XYZ({
37
+ url,
38
+ attributions: [attributions]
39
+ })
40
+ })
41
+ ],
42
+ view: new ol.View({
43
+ center: [19467552, -5074414],
44
+ zoom: 6
45
+ }),
46
+ });
47
+ </script>
48
+ </body>
49
+ </html>
Binary file
Binary file
Binary file