From eac519038df7859bc6ecfd3b19a12f4b8458f399 Mon Sep 17 00:00:00 2001 From: parthpetkar Date: Sun, 19 Jan 2025 12:39:11 +0530 Subject: [PATCH] docs: update WMTS examples to use https for basemap.nationalmap.gov --- CHANGES.md | 1 + CONTRIBUTORS.md | 1 + .../engine/Source/Scene/WebMapTileServiceImageryProvider.js | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 60a35a7f0cfe..90a45fd41780 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -15,6 +15,7 @@ - Fixed type of `ImageryLayer.fromProviderAsync`, to correctly show that the param `options` is optional. [#12400](https://github.com/CesiumGS/cesium/pull/12400) - Fixed Draco decoding for vertex colors that are normalized `UNSIGNED_BYTE` or `UNSIGNED_SHORT`. [#12417](https://github.com/CesiumGS/cesium/pull/12417) - Fixed type error when setting `Viewer.selectedEntity` [#12303](https://github.com/CesiumGS/cesium/issues/12303) +- Fixed urls with https in the documentation `basemap.nationalmap.gov` [#12375](https://github.com/CesiumGS/cesium/issues/12375) ## 1.125 - 2025-01-02 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 17f5b0378540..d4edb27ca86d 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -422,3 +422,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu - [Isaac Young](https://github.com/ibreathebsb) - [Nick Crews](https://github.com/NickCrews) - [胡文康](https://github.com/XiaoHu1994) +- [Parth Petkar](https://github.com/parthpetkar) diff --git a/packages/engine/Source/Scene/WebMapTileServiceImageryProvider.js b/packages/engine/Source/Scene/WebMapTileServiceImageryProvider.js index 690a7ea59b13..45dccdb6668a 100644 --- a/packages/engine/Source/Scene/WebMapTileServiceImageryProvider.js +++ b/packages/engine/Source/Scene/WebMapTileServiceImageryProvider.js @@ -57,7 +57,7 @@ const defaultParameters = Object.freeze({ * @example * // Example 1. USGS shaded relief tiles (KVP) * const shadedRelief1 = new Cesium.WebMapTileServiceImageryProvider({ - * url : 'http://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS', + * url : 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS', * layer : 'USGSShadedReliefOnly', * style : 'default', * format : 'image/jpeg', @@ -71,7 +71,7 @@ const defaultParameters = Object.freeze({ * @example * // Example 2. USGS shaded relief tiles (RESTful) * const shadedRelief2 = new Cesium.WebMapTileServiceImageryProvider({ - * url : 'http://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS/tile/1.0.0/USGSShadedReliefOnly/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg', + * url : 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/WMTS/tile/1.0.0/USGSShadedReliefOnly/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg', * layer : 'USGSShadedReliefOnly', * style : 'default', * format : 'image/jpeg',