Skip to content

Commit 76f2044

Browse files
authored
Sentinel WMTS outdated API key removal (#879)
* Removed deprecated API key * Updated npm dependency * Added 'To Do' comment for future in-depth review of the example
1 parent aa13d8f commit 76f2044

File tree

2 files changed

+97
-69
lines changed

2 files changed

+97
-69
lines changed

apps/SentinelWMTS/SentinelWMTS.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,18 @@ define(['../../src/WorldWind',
4545
var wmtsCapabilities;
4646

4747
/*
48-
* The key to access Copernicus Sentinel data hosted on www.sentinel-hub.com is provided free-of-charge by
49-
* Sinergise for demonstration purposes only. You must obtain your own key at www.sentinel-hub.com before
50-
* using this layer in your application.
48+
* This example should be functional if a valid API key is provided.
49+
* Your own key to access Copernicus Sentinel data hosted on www.sentinel-hub.com must be
50+
* obtained by creating an account at https://www.sentinel-hub.com/create_account/
51+
* Trial keys as well as ESA-sponsored keys are available at https://www.sentinel-hub.com/Network-of-Resources/
5152
*/
52-
var wmtsServer = 'https://services.sentinel-hub.com/v1/wmts/56748ba2-4a88-4854-beea-86f9afc63e35';
5353

54-
$.get(wmtsServer + '?REQUEST=GetCapabilities&SERVICE=WMTS', function (response) {
54+
// TO DO: Verify proper functioning with up to date API key
55+
56+
var wmtsServer = 'https://services.sentinel-hub.com/v1/wmts/';
57+
var apiKey = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'; // Substitute with Sentinel Hub API key
58+
59+
$.get(wmtsServer + apiKey + '?REQUEST=GetCapabilities&SERVICE=WMTS', function (response) {
5560
wmtsCapabilities = new WorldWind.WmtsCapabilities(response);
5661
// console.log(wmtsCapabilities);
5762
}).done(function () {

package-lock.json

Lines changed: 87 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)