Skip to content

Commit

Permalink
Update map_settings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrundritt authored Oct 12, 2024
1 parent 1a3cc3e commit c32c6d9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/settings/map_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "<Your Azure Maps Key>"
authType: "subscriptionKey",
subscriptionKey: "<Your Azure Maps Key>"
},

//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.
Expand Down

0 comments on commit c32c6d9

Please sign in to comment.