From c32c6d9c228b20e70dae99aac07dfb2c4d0318b0 Mon Sep 17 00:00:00 2001 From: Ricky Brundritt Date: Sat, 12 Oct 2024 09:45:24 -0700 Subject: [PATCH] Update map_settings.js --- src/settings/map_settings.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/settings/map_settings.js b/src/settings/map_settings.js index e313d3c..dd1dd07 100644 --- a/src/settings/map_settings.js +++ b/src/settings/map_settings.js @@ -6,18 +6,18 @@ export let mapSettings = { azureMapsAuth: { //Option 1: Use Azure Active Directory authentication for secure access to Azure Maps. - authType: "anonymous", - clientId: "d069e722-70c3-4dd6-8532-a6f4b18c9bfb", //Your Azure Maps client id for accessing your Azure Maps account. - getToken: function (resolve, reject, map) { + //authType: "anonymous", + //clientId: "d069e722-70c3-4dd6-8532-a6f4b18c9bfb", //Your Azure Maps client id for accessing your Azure Maps account. + //getToken: function (resolve, reject, map) { // //URL to your authentication service that retrieves an Azure Active Directory Token. - var tokenServiceUrl = "https://spatial-annotation-tool-maps-auth2.azurewebsites.net/api/GetAzureMapsToken"; + // var tokenServiceUrl = "https://spatial-annotation-tool-maps-auth2.azurewebsites.net/api/GetAzureMapsToken"; - fetch(tokenServiceUrl).then(r => r.text()).then(token => resolve(token)); - } + // fetch(tokenServiceUrl).then(r => r.text()).then(token => resolve(token)); + //} //Option 2: Use an Azure Maps key. Get an Azure Maps key at https://azure.com/maps. NOTE: The primary key should be used as the key. - //authType: "subscriptionKey", - //subscriptionKey: "" + authType: "subscriptionKey", + subscriptionKey: "" }, //A URL to a CORs enabled proxy service that can be leveraged for cross domain requests. Cross domain URL would be appended to this proxy service URL.