@basemaps/landing 7.15.0 → 7.16.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 (73) hide show
  1. package/build/__tests__/map.config.test.js +23 -0
  2. package/build/__tests__/map.config.test.js.map +1 -1
  3. package/build/components/debug.d.ts +3 -3
  4. package/build/components/debug.js +25 -9
  5. package/build/components/debug.js.map +1 -1
  6. package/build/components/layout.header.js +2 -2
  7. package/build/components/layout.header.js.map +1 -1
  8. package/build/components/map.js +3 -5
  9. package/build/components/map.js.map +1 -1
  10. package/build/components/map.label.js +9 -1
  11. package/build/components/map.label.js.map +1 -1
  12. package/build/components/map.switcher.js +3 -5
  13. package/build/components/map.switcher.js.map +1 -1
  14. package/build/config.map.js +9 -1
  15. package/build/config.map.js.map +1 -1
  16. package/build/tile.matrix.d.ts +1 -8
  17. package/build/tile.matrix.js +11 -40
  18. package/build/tile.matrix.js.map +1 -1
  19. package/dist/docs/404.html +285 -0
  20. package/dist/docs/configuration/index.html +93 -0
  21. package/dist/docs/deployment/index.html +93 -0
  22. package/dist/docs/developer-guide/cli-methods/bundle-the-basemaps-assets-archive/index.html +93 -0
  23. package/dist/docs/developer-guide/cli-methods/bundle-the-basemaps-config-file/index.html +93 -0
  24. package/dist/docs/developer-guide/index.html +93 -0
  25. package/dist/docs/developer-guide/run-basemaps-locally/index.html +93 -0
  26. package/dist/docs/developer-guide/server-methods/serve-basemaps-with-bundled-config-file/index.html +97 -4
  27. package/dist/docs/developer-guide/server-methods/serve-basemaps-with-collection-of-geotiff-files/index.html +93 -0
  28. package/dist/docs/examples/_overview/index.html +93 -0
  29. package/dist/docs/examples/leaflet.xyz.3857/index.html +93 -0
  30. package/dist/docs/examples/maplibre.opacity.3857/index.html +93 -0
  31. package/dist/docs/examples/maplibre.vector.3857/index.html +93 -0
  32. package/dist/docs/index.html +93 -0
  33. package/dist/docs/operator-guide/cog-quality/index.html +93 -0
  34. package/dist/docs/operator-guide/empty-tiles/index.html +93 -0
  35. package/dist/docs/operator-guide/gebco/index.html +93 -0
  36. package/dist/docs/operator-guide/index.html +93 -0
  37. package/dist/docs/operator-guide/quick-start/index.html +93 -0
  38. package/dist/docs/operator-guide/relief-shade/index.html +93 -0
  39. package/dist/docs/operator-guide/texture-shade/index.html +93 -0
  40. package/dist/docs/operator-guide/xyz-projection/index.html +93 -0
  41. package/dist/docs/quick-start/index.html +93 -0
  42. package/dist/docs/sitemap.xml +45 -25
  43. package/dist/docs/sitemap.xml.gz +0 -0
  44. package/dist/docs/user-guide/_get-started/index.html +93 -0
  45. package/dist/docs/user-guide/api-documentation/index.html +93 -0
  46. package/dist/docs/user-guide/technical-documentation/index.html +94 -0
  47. package/dist/docs/user-guide/use-in-esri-software/how-to-add-emergency-imagery-to-arcgis/index.html +587 -0
  48. package/dist/docs/user-guide/use-in-esri-software/how-to-add-emergency-imagery-to-arcgis/static/emergency-response-group.png +0 -0
  49. package/dist/docs/user-guide/use-in-esri-software/how-to-add-individual-linz-basemaps-layers-to-arcgis/index.html +635 -0
  50. package/dist/docs/user-guide/use-in-esri-software/how-to-add-individual-linz-basemaps-layers-to-arcgis/static/basemaps-menu-button.png +0 -0
  51. package/dist/docs/user-guide/use-in-esri-software/how-to-add-individual-linz-basemaps-layers-to-arcgis/static/copy-url-apikey.png +0 -0
  52. package/dist/docs/user-guide/use-in-esri-software/how-to-add-individual-linz-basemaps-layers-to-arcgis/static/custom-parameters.png +0 -0
  53. package/dist/docs/user-guide/use-in-esri-software/how-to-add-individual-linz-basemaps-layers-to-arcgis/static/layer-search.png +0 -0
  54. package/dist/docs/user-guide/use-in-esri-software/how-to-add-individual-linz-basemaps-layers-to-arcgis/static/layer-selector.png +0 -0
  55. package/dist/docs/user-guide/use-in-esri-software/how-to-add-individual-linz-basemaps-layers-to-arcgis/static/move-apikey-info.png +0 -0
  56. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-aerial-imagery-basemaps-to-arcgis-online/index.html +610 -0
  57. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-aerial-imagery-basemaps-to-arcgis-online/static/step-1-agol-map-viewer.png +0 -0
  58. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-aerial-imagery-basemaps-to-arcgis-online/static/step-2-layers-panel.png +0 -0
  59. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-aerial-imagery-basemaps-to-arcgis-online/static/step-3-browse-layers-option.png +0 -0
  60. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-aerial-imagery-basemaps-to-arcgis-online/static/step-4-agol-option.png +0 -0
  61. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-aerial-imagery-basemaps-to-arcgis-online/static/step-5-search-box.png +0 -0
  62. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-aerial-imagery-basemaps-to-arcgis-online/static/step-6-desired-layer-on-map.png +0 -0
  63. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-basemaps-to-arcgis-online-basemaps/index.html +595 -0
  64. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-basemaps-to-arcgis-online-basemaps/static/LINZ-basemaps-group.png +0 -0
  65. package/dist/docs/user-guide/use-in-esri-software/how-to-add-linz-basemaps-to-arcgis-online-basemaps/static/basemaps-in-esri-chooser.png +0 -0
  66. package/dist/docs/user-guide/use-in-esri-software/index.html +586 -0
  67. package/dist/examples/index.openlayers.attribution.wmts.3857.html +1 -1
  68. package/dist/{index-7.15.0-fa646f15e30d9536.js → index-7.16.0-a9f27b12f162b78d.js} +61 -53
  69. package/dist/index.html +2 -2
  70. package/dist/index.js +61 -53
  71. package/package.json +7 -7
  72. /package/dist/{index-7.15.0-c5e57c4593cca04a.css → index-7.16.0-c5e57c4593cca04a.css} +0 -0
  73. /package/dist/lib/{attribution-7.15.0-ec5888ef78974d9c.js → attribution-7.16.0-ec5888ef78974d9c.js} +0 -0
@@ -56940,7 +56940,15 @@ function toQueryString(r2) {
56940
56940
  }
56941
56941
 
56942
56942
  // src/components/map.label.tsx
56943
- var LabelsDisabledLayers = /* @__PURE__ */ new Set(["topographic", "topolite", "topo-raster"]);
56943
+ var LabelsDisabledLayers = /* @__PURE__ */ new Set([
56944
+ "labels",
56945
+ "labels-v2",
56946
+ "topographic",
56947
+ "topographic-v2",
56948
+ "topolite",
56949
+ "topolite-v2",
56950
+ "topo-raster"
56951
+ ]);
56944
56952
  var MapLabelControl = class {
56945
56953
  constructor() {
56946
56954
  __publicField(this, "map");
@@ -57087,35 +57095,16 @@ var WindowUrl = {
57087
57095
  };
57088
57096
 
57089
57097
  // src/tile.matrix.ts
57090
- var TileGrid = class {
57091
- constructor(tileMatrix, extraZoomLevels = 0) {
57092
- __publicField(this, "tileMatrix");
57093
- __publicField(this, "extraZoomLevels");
57094
- this.tileMatrix = tileMatrix;
57095
- this.extraZoomLevels = extraZoomLevels;
57096
- }
57097
- getStyle(cfg) {
57098
- return WindowUrl.toTileUrl({
57099
- urlType: "style" /* Style */,
57100
- tileMatrix: this.tileMatrix,
57101
- layerId: cfg.layerId,
57102
- style: cfg.style,
57103
- config: cfg.config ?? Config.map.config,
57104
- terrain: cfg.terrain ?? Config.map.terrain,
57105
- labels: cfg.labels ?? Config.map.labels
57106
- });
57107
- }
57108
- };
57109
- var Nztm2000TileGrid = new TileGrid(Nztm2000Tms, 2);
57110
- var Nztm2000QuadTileGrid = new TileGrid(Nztm2000QuadTms);
57111
- var GoogleTileGrid = new TileGrid(GoogleTms);
57112
- var Grids = [Nztm2000TileGrid, Nztm2000QuadTileGrid, GoogleTileGrid];
57113
- function getTileGrid(id2) {
57114
- for (const g of Grids) {
57115
- if (id2 === g.tileMatrix.identifier)
57116
- return g;
57117
- }
57118
- 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
+ });
57119
57108
  }
57120
57109
  function isGoogle(tms) {
57121
57110
  return tms.identifier === GoogleTms.identifier;
@@ -57483,7 +57472,15 @@ function addDefaultLayers(output) {
57483
57472
  },
57484
57473
  {
57485
57474
  id: "elevation",
57486
- title: "Elevation",
57475
+ title: "Elevation DEM",
57476
+ projections: /* @__PURE__ */ new Set([EpsgCode.Google]),
57477
+ category: "Basemaps",
57478
+ pipeline: "terrain-rgb",
57479
+ imageFormat: "png"
57480
+ },
57481
+ {
57482
+ id: "elevation-dsm",
57483
+ title: "Elevation DSM",
57487
57484
  projections: /* @__PURE__ */ new Set([EpsgCode.Google]),
57488
57485
  category: "Basemaps",
57489
57486
  pipeline: "terrain-rgb",
@@ -57527,11 +57524,11 @@ var Config = {
57527
57524
  return "";
57528
57525
  },
57529
57526
  get Version() {
57530
- return "v7.14.0-9-ga2fa0faa";
57527
+ return "v7.15.1-10-g25fa7659";
57531
57528
  },
57532
57529
  /** Github buildId */
57533
57530
  get BuildId() {
57534
- return "13911363896-1";
57531
+ return "14319632927-1";
57535
57532
  },
57536
57533
  map: new MapConfig()
57537
57534
  };
@@ -64165,7 +64162,8 @@ var DebugMap = class {
64165
64162
  var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
64166
64163
  var HillShadeLayerId = "debug-hillshade";
64167
64164
  var HillShadePrefix = "__hillshade-";
64168
- var elevationProdId = "LINZ-Terrain-Prod";
64165
+ var elevationDemProdId = "LINZ-Elevation-DEM-Prod";
64166
+ var elevationDsmProdId = "LINZ-Elevation-DSM-Prod";
64169
64167
  function debugSourceDropdown(ctx) {
64170
64168
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "debug__info", children: [
64171
64169
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("label", { className: "debug__label", children: ctx.label }),
@@ -64359,8 +64357,8 @@ var Debug = class extends import_react12.Component {
64359
64357
  this.renderCaptureAreaToggle(),
64360
64358
  this.renderTileToggle(),
64361
64359
  this.renderRasterSourceDropdown(),
64362
- this.renderDemSourceDropdown(demSources),
64363
- this.renderDemHillShadeSourceDropdown(demSources)
64360
+ this.renderElevationSourceDropdown(demSources),
64361
+ this.renderHillShadeSourceDropdown(demSources)
64364
64362
  ] });
64365
64363
  }
64366
64364
  getWMTSLink() {
@@ -64445,11 +64443,11 @@ var Debug = class extends import_react12.Component {
64445
64443
  });
64446
64444
  }
64447
64445
  /**
64448
- * Add a terrain source that points to production elevation data for debug
64446
+ * Add terrain sources that point to production elevation tilesets
64449
64447
  */
64450
64448
  ensureElevationProd() {
64451
64449
  const map = this.props.map;
64452
- if (map.getSource(elevationProdId) == null) {
64450
+ if (map.getSource(elevationDemProdId) == null) {
64453
64451
  const url = WindowUrl.toTileUrl({
64454
64452
  urlType: "raster" /* TileRaster */,
64455
64453
  tileMatrix: Config.map.tileMatrix,
@@ -64457,7 +64455,21 @@ var Debug = class extends import_react12.Component {
64457
64455
  pipeline: "terrain-rgb",
64458
64456
  imageFormat: "png"
64459
64457
  });
64460
- map.addSource(elevationProdId, {
64458
+ map.addSource(elevationDemProdId, {
64459
+ type: "raster-dem",
64460
+ tiles: [url],
64461
+ tileSize: 256
64462
+ });
64463
+ }
64464
+ if (map.getSource(elevationDsmProdId) == null) {
64465
+ const url = WindowUrl.toTileUrl({
64466
+ urlType: "raster" /* TileRaster */,
64467
+ tileMatrix: Config.map.tileMatrix,
64468
+ layerId: "elevation-dsm",
64469
+ pipeline: "terrain-rgb",
64470
+ imageFormat: "png"
64471
+ });
64472
+ map.addSource(elevationDsmProdId, {
64461
64473
  type: "raster-dem",
64462
64474
  tiles: [url],
64463
64475
  tileSize: 256
@@ -64563,7 +64575,7 @@ var Debug = class extends import_react12.Component {
64563
64575
  options: [...sourceIds, "off"]
64564
64576
  });
64565
64577
  }
64566
- renderDemSourceDropdown(sourceIds) {
64578
+ renderElevationSourceDropdown(sourceIds) {
64567
64579
  if (sourceIds.length === 0)
64568
64580
  return;
64569
64581
  return debugSourceDropdown({
@@ -64573,7 +64585,7 @@ var Debug = class extends import_react12.Component {
64573
64585
  options: ["off", ...sourceIds]
64574
64586
  });
64575
64587
  }
64576
- renderDemHillShadeSourceDropdown(sourceIds) {
64588
+ renderHillShadeSourceDropdown(sourceIds) {
64577
64589
  if (sourceIds.length === 0)
64578
64590
  return;
64579
64591
  return debugSourceDropdown({
@@ -64751,8 +64763,7 @@ var MapSwitcher = class extends import_react13.Component {
64751
64763
  const target = this.getStyleType();
64752
64764
  const styleId = `${target.layerId}::${target.style}`;
64753
64765
  if (this.currentStyle !== styleId) {
64754
- const tileGrid = getTileGrid(Config.map.tileMatrix.identifier);
64755
- const style = tileGrid.getStyle({ layerId: target.layerId, style: target.style });
64766
+ const style = getTileGridStyle(Config.map.tileMatrix, { layerId: target.layerId, style: target.style });
64756
64767
  this.currentStyle = styleId;
64757
64768
  this.map.setStyle(style);
64758
64769
  }
@@ -64776,10 +64787,9 @@ var MapSwitcher = class extends import_react13.Component {
64776
64787
  if (this.el == null)
64777
64788
  return;
64778
64789
  const cfg = Config.map;
64779
- const tileGrid = getTileGrid(cfg.tileMatrix.identifier);
64780
64790
  const target = this.getStyleType();
64781
64791
  this.currentStyle = `${target.layerId}::${target.style}`;
64782
- const style = tileGrid.getStyle({ layerId: target.layerId, style: target.style });
64792
+ const style = getTileGridStyle(cfg.tileMatrix, { layerId: target.layerId, style: target.style });
64783
64793
  const location2 = cfg.transformedLocation;
64784
64794
  this.map = new import_maplibre_gl.default.Map({
64785
64795
  container: this.el,
@@ -64879,8 +64889,7 @@ var Basemaps = class extends import_react14.Component {
64879
64889
  this.ensureGeoControl();
64880
64890
  this.ensureScaleControl();
64881
64891
  this.ensureElevationControl();
64882
- const tileGrid = getTileGrid(Config.map.tileMatrix.identifier);
64883
- const style = tileGrid.getStyle(Config.map);
64892
+ const style = getTileGridStyle(Config.map.tileMatrix, Config.map);
64884
64893
  this.map.setStyle(style);
64885
64894
  if (Config.map.tileMatrix !== GoogleTms) {
64886
64895
  this.map.setMaxBounds([-179.9, -85, 179.9, 85]);
@@ -64965,8 +64974,7 @@ var Basemaps = class extends import_react14.Component {
64965
64974
  if (this.el == null)
64966
64975
  throw new Error("Unable to find #map element");
64967
64976
  const cfg = Config.map;
64968
- const tileGrid = getTileGrid(cfg.tileMatrix.identifier);
64969
- const style = tileGrid.getStyle(Config.map);
64977
+ const style = getTileGridStyle(Config.map.tileMatrix, Config.map);
64970
64978
  const location2 = locationTransform(cfg.location, cfg.tileMatrix, GoogleTms);
64971
64979
  this.map = new import_maplibre_gl2.default.Map({
64972
64980
  container: this.el,
@@ -65471,7 +65479,7 @@ Your Service/App URL:
65471
65479
  children: [
65472
65480
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(LayerSwitcherDropdown, {}),
65473
65481
  this.renderLinks(),
65474
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "Developer API Keys" }),
65482
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "Developer API keys" }),
65475
65483
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "Contact us for free API keys with better support for public web and mobile apps." }),
65476
65484
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "lui-button lui-button-primary contact-us", onClick: this.contactUs, children: "Contact us" }),
65477
65485
  this.renderAbout()
@@ -65522,9 +65530,9 @@ Your Service/App URL:
65522
65530
  }
65523
65531
  renderLinks() {
65524
65532
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react16.Fragment, { children: [
65525
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "90 day API keys" }),
65526
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "API keys expire after 90 days, if a longer duration is needed please request a developer API key" }),
65527
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Copyable, { header: "Api Key", value: Config.ApiKey }),
65533
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "Individual API keys" }),
65534
+ /* @__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." }),
65535
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Copyable, { header: "API Key", value: Config.ApiKey }),
65528
65536
  this.renderLinksTiles()
65529
65537
  ] });
65530
65538
  }
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.15.0-c5e57c4593cca04a.css" integrity="xeV8RZPMoEppgmSq1caqemmc8O5k7UmFLbdR/DCeOSP1XmotpTTisZTePLihKxDlJIXbfdkKwskYljWnxYN4tA==" />
14
+ <link rel="stylesheet" href="index-7.16.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.15.0-fa646f15e30d9536.js" integrity="sha512-+mRvFeMNlTb/FjlInrU0g4lU7vFNf/iW+dkkYX83se6JOI5fxp0k6nDkt4d8SaC/5JqoVZ+HieQbPgOj14x/CA=="></script>
21
+ <script src="index-7.16.0-a9f27b12f162b78d.js" integrity="sha512-qfJ7EvFit41Xajf+Qbpc/4qUgRaiX3aFLT+QPe882e5I1N5lLLNM6ZyBZ2+bEhV06HQd4ZuJQ/oOYa0S/J54iA=="></script>
22
22
  </body>
23
23
 
24
24
  </html>
package/dist/index.js CHANGED
@@ -56940,7 +56940,15 @@ function toQueryString(r2) {
56940
56940
  }
56941
56941
 
56942
56942
  // src/components/map.label.tsx
56943
- var LabelsDisabledLayers = /* @__PURE__ */ new Set(["topographic", "topolite", "topo-raster"]);
56943
+ var LabelsDisabledLayers = /* @__PURE__ */ new Set([
56944
+ "labels",
56945
+ "labels-v2",
56946
+ "topographic",
56947
+ "topographic-v2",
56948
+ "topolite",
56949
+ "topolite-v2",
56950
+ "topo-raster"
56951
+ ]);
56944
56952
  var MapLabelControl = class {
56945
56953
  constructor() {
56946
56954
  __publicField(this, "map");
@@ -57087,35 +57095,16 @@ var WindowUrl = {
57087
57095
  };
57088
57096
 
57089
57097
  // src/tile.matrix.ts
57090
- var TileGrid = class {
57091
- constructor(tileMatrix, extraZoomLevels = 0) {
57092
- __publicField(this, "tileMatrix");
57093
- __publicField(this, "extraZoomLevels");
57094
- this.tileMatrix = tileMatrix;
57095
- this.extraZoomLevels = extraZoomLevels;
57096
- }
57097
- getStyle(cfg) {
57098
- return WindowUrl.toTileUrl({
57099
- urlType: "style" /* Style */,
57100
- tileMatrix: this.tileMatrix,
57101
- layerId: cfg.layerId,
57102
- style: cfg.style,
57103
- config: cfg.config ?? Config.map.config,
57104
- terrain: cfg.terrain ?? Config.map.terrain,
57105
- labels: cfg.labels ?? Config.map.labels
57106
- });
57107
- }
57108
- };
57109
- var Nztm2000TileGrid = new TileGrid(Nztm2000Tms, 2);
57110
- var Nztm2000QuadTileGrid = new TileGrid(Nztm2000QuadTms);
57111
- var GoogleTileGrid = new TileGrid(GoogleTms);
57112
- var Grids = [Nztm2000TileGrid, Nztm2000QuadTileGrid, GoogleTileGrid];
57113
- function getTileGrid(id2) {
57114
- for (const g of Grids) {
57115
- if (id2 === g.tileMatrix.identifier)
57116
- return g;
57117
- }
57118
- 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
+ });
57119
57108
  }
57120
57109
  function isGoogle(tms) {
57121
57110
  return tms.identifier === GoogleTms.identifier;
@@ -57483,7 +57472,15 @@ function addDefaultLayers(output) {
57483
57472
  },
57484
57473
  {
57485
57474
  id: "elevation",
57486
- title: "Elevation",
57475
+ title: "Elevation DEM",
57476
+ projections: /* @__PURE__ */ new Set([EpsgCode.Google]),
57477
+ category: "Basemaps",
57478
+ pipeline: "terrain-rgb",
57479
+ imageFormat: "png"
57480
+ },
57481
+ {
57482
+ id: "elevation-dsm",
57483
+ title: "Elevation DSM",
57487
57484
  projections: /* @__PURE__ */ new Set([EpsgCode.Google]),
57488
57485
  category: "Basemaps",
57489
57486
  pipeline: "terrain-rgb",
@@ -57527,11 +57524,11 @@ var Config = {
57527
57524
  return "";
57528
57525
  },
57529
57526
  get Version() {
57530
- return "v7.14.0-9-ga2fa0faa";
57527
+ return "v7.15.1-10-g25fa7659";
57531
57528
  },
57532
57529
  /** Github buildId */
57533
57530
  get BuildId() {
57534
- return "13911363896-1";
57531
+ return "14319632927-1";
57535
57532
  },
57536
57533
  map: new MapConfig()
57537
57534
  };
@@ -64165,7 +64162,8 @@ var DebugMap = class {
64165
64162
  var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
64166
64163
  var HillShadeLayerId = "debug-hillshade";
64167
64164
  var HillShadePrefix = "__hillshade-";
64168
- var elevationProdId = "LINZ-Terrain-Prod";
64165
+ var elevationDemProdId = "LINZ-Elevation-DEM-Prod";
64166
+ var elevationDsmProdId = "LINZ-Elevation-DSM-Prod";
64169
64167
  function debugSourceDropdown(ctx) {
64170
64168
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "debug__info", children: [
64171
64169
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("label", { className: "debug__label", children: ctx.label }),
@@ -64359,8 +64357,8 @@ var Debug = class extends import_react12.Component {
64359
64357
  this.renderCaptureAreaToggle(),
64360
64358
  this.renderTileToggle(),
64361
64359
  this.renderRasterSourceDropdown(),
64362
- this.renderDemSourceDropdown(demSources),
64363
- this.renderDemHillShadeSourceDropdown(demSources)
64360
+ this.renderElevationSourceDropdown(demSources),
64361
+ this.renderHillShadeSourceDropdown(demSources)
64364
64362
  ] });
64365
64363
  }
64366
64364
  getWMTSLink() {
@@ -64445,11 +64443,11 @@ var Debug = class extends import_react12.Component {
64445
64443
  });
64446
64444
  }
64447
64445
  /**
64448
- * Add a terrain source that points to production elevation data for debug
64446
+ * Add terrain sources that point to production elevation tilesets
64449
64447
  */
64450
64448
  ensureElevationProd() {
64451
64449
  const map = this.props.map;
64452
- if (map.getSource(elevationProdId) == null) {
64450
+ if (map.getSource(elevationDemProdId) == null) {
64453
64451
  const url = WindowUrl.toTileUrl({
64454
64452
  urlType: "raster" /* TileRaster */,
64455
64453
  tileMatrix: Config.map.tileMatrix,
@@ -64457,7 +64455,21 @@ var Debug = class extends import_react12.Component {
64457
64455
  pipeline: "terrain-rgb",
64458
64456
  imageFormat: "png"
64459
64457
  });
64460
- map.addSource(elevationProdId, {
64458
+ map.addSource(elevationDemProdId, {
64459
+ type: "raster-dem",
64460
+ tiles: [url],
64461
+ tileSize: 256
64462
+ });
64463
+ }
64464
+ if (map.getSource(elevationDsmProdId) == null) {
64465
+ const url = WindowUrl.toTileUrl({
64466
+ urlType: "raster" /* TileRaster */,
64467
+ tileMatrix: Config.map.tileMatrix,
64468
+ layerId: "elevation-dsm",
64469
+ pipeline: "terrain-rgb",
64470
+ imageFormat: "png"
64471
+ });
64472
+ map.addSource(elevationDsmProdId, {
64461
64473
  type: "raster-dem",
64462
64474
  tiles: [url],
64463
64475
  tileSize: 256
@@ -64563,7 +64575,7 @@ var Debug = class extends import_react12.Component {
64563
64575
  options: [...sourceIds, "off"]
64564
64576
  });
64565
64577
  }
64566
- renderDemSourceDropdown(sourceIds) {
64578
+ renderElevationSourceDropdown(sourceIds) {
64567
64579
  if (sourceIds.length === 0)
64568
64580
  return;
64569
64581
  return debugSourceDropdown({
@@ -64573,7 +64585,7 @@ var Debug = class extends import_react12.Component {
64573
64585
  options: ["off", ...sourceIds]
64574
64586
  });
64575
64587
  }
64576
- renderDemHillShadeSourceDropdown(sourceIds) {
64588
+ renderHillShadeSourceDropdown(sourceIds) {
64577
64589
  if (sourceIds.length === 0)
64578
64590
  return;
64579
64591
  return debugSourceDropdown({
@@ -64751,8 +64763,7 @@ var MapSwitcher = class extends import_react13.Component {
64751
64763
  const target = this.getStyleType();
64752
64764
  const styleId = `${target.layerId}::${target.style}`;
64753
64765
  if (this.currentStyle !== styleId) {
64754
- const tileGrid = getTileGrid(Config.map.tileMatrix.identifier);
64755
- const style = tileGrid.getStyle({ layerId: target.layerId, style: target.style });
64766
+ const style = getTileGridStyle(Config.map.tileMatrix, { layerId: target.layerId, style: target.style });
64756
64767
  this.currentStyle = styleId;
64757
64768
  this.map.setStyle(style);
64758
64769
  }
@@ -64776,10 +64787,9 @@ var MapSwitcher = class extends import_react13.Component {
64776
64787
  if (this.el == null)
64777
64788
  return;
64778
64789
  const cfg = Config.map;
64779
- const tileGrid = getTileGrid(cfg.tileMatrix.identifier);
64780
64790
  const target = this.getStyleType();
64781
64791
  this.currentStyle = `${target.layerId}::${target.style}`;
64782
- const style = tileGrid.getStyle({ layerId: target.layerId, style: target.style });
64792
+ const style = getTileGridStyle(cfg.tileMatrix, { layerId: target.layerId, style: target.style });
64783
64793
  const location2 = cfg.transformedLocation;
64784
64794
  this.map = new import_maplibre_gl.default.Map({
64785
64795
  container: this.el,
@@ -64879,8 +64889,7 @@ var Basemaps = class extends import_react14.Component {
64879
64889
  this.ensureGeoControl();
64880
64890
  this.ensureScaleControl();
64881
64891
  this.ensureElevationControl();
64882
- const tileGrid = getTileGrid(Config.map.tileMatrix.identifier);
64883
- const style = tileGrid.getStyle(Config.map);
64892
+ const style = getTileGridStyle(Config.map.tileMatrix, Config.map);
64884
64893
  this.map.setStyle(style);
64885
64894
  if (Config.map.tileMatrix !== GoogleTms) {
64886
64895
  this.map.setMaxBounds([-179.9, -85, 179.9, 85]);
@@ -64965,8 +64974,7 @@ var Basemaps = class extends import_react14.Component {
64965
64974
  if (this.el == null)
64966
64975
  throw new Error("Unable to find #map element");
64967
64976
  const cfg = Config.map;
64968
- const tileGrid = getTileGrid(cfg.tileMatrix.identifier);
64969
- const style = tileGrid.getStyle(Config.map);
64977
+ const style = getTileGridStyle(Config.map.tileMatrix, Config.map);
64970
64978
  const location2 = locationTransform(cfg.location, cfg.tileMatrix, GoogleTms);
64971
64979
  this.map = new import_maplibre_gl2.default.Map({
64972
64980
  container: this.el,
@@ -65471,7 +65479,7 @@ Your Service/App URL:
65471
65479
  children: [
65472
65480
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(LayerSwitcherDropdown, {}),
65473
65481
  this.renderLinks(),
65474
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "Developer API Keys" }),
65482
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "Developer API keys" }),
65475
65483
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "Contact us for free API keys with better support for public web and mobile apps." }),
65476
65484
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { className: "lui-button lui-button-primary contact-us", onClick: this.contactUs, children: "Contact us" }),
65477
65485
  this.renderAbout()
@@ -65522,9 +65530,9 @@ Your Service/App URL:
65522
65530
  }
65523
65531
  renderLinks() {
65524
65532
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react16.Fragment, { children: [
65525
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "90 day API keys" }),
65526
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: "API keys expire after 90 days, if a longer duration is needed please request a developer API key" }),
65527
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Copyable, { header: "Api Key", value: Config.ApiKey }),
65533
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h6", { children: "Individual API keys" }),
65534
+ /* @__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." }),
65535
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Copyable, { header: "API Key", value: Config.ApiKey }),
65528
65536
  this.renderLinksTiles()
65529
65537
  ] });
65530
65538
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basemaps/landing",
3
- "version": "7.15.0",
3
+ "version": "7.16.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/linz/basemaps.git",
@@ -28,11 +28,11 @@
28
28
  "last 2 Chrome versions"
29
29
  ],
30
30
  "devDependencies": {
31
- "@basemaps/attribution": "^7.15.0",
32
- "@basemaps/config": "^7.15.0",
33
- "@basemaps/geo": "^7.15.0",
34
- "@basemaps/infra": "^7.15.0",
35
- "@basemaps/shared": "^7.15.0",
31
+ "@basemaps/attribution": "^7.16.0",
32
+ "@basemaps/config": "^7.16.0",
33
+ "@basemaps/geo": "^7.16.0",
34
+ "@basemaps/infra": "^7.16.0",
35
+ "@basemaps/shared": "^7.16.0",
36
36
  "@linzjs/lui": "^21.46.0",
37
37
  "@servie/events": "^3.0.0",
38
38
  "@types/proj4": "^2.5.2",
@@ -113,5 +113,5 @@
113
113
  }
114
114
  }
115
115
  ],
116
- "gitHead": "a2fa0faa57e5591a50900fd469dbb9637b7d9c8e"
116
+ "gitHead": "25fa7659b84a40205ceacda8b2ca5f48e1dc6f7b"
117
117
  }