Skip to content

Commit c5d2c31

Browse files
committed
add azure maps to default options in imagery layer picker
1 parent e2e7245 commit c5d2c31

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

packages/widgets/Source/BaseLayerPicker/createDefaultImageryProviderViewModels.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,48 @@ of the world.\nhttp://www.openstreetmap.org",
375375
}),
376376
);
377377

378+
providerViewModels.push(
379+
new ProviderViewModel({
380+
name: "Azure Maps Aerial",
381+
iconUrl: buildModuleUrl(
382+
"Widgets/Images/ImageryProviders/azureAerial.png",
383+
),
384+
tooltip: "Imagery from Azure Maps",
385+
category: "Cesium ion",
386+
creationFunction: function () {
387+
return IonImageryProvider.fromAssetId(3891168);
388+
},
389+
}),
390+
);
391+
392+
providerViewModels.push(
393+
new ProviderViewModel({
394+
name: "Azure Maps Roads",
395+
iconUrl: buildModuleUrl("Widgets/Images/ImageryProviders/azureRoads.png"),
396+
tooltip:
397+
"Labeled roads and other features on a base landscape from Azure Maps",
398+
category: "Cesium ion",
399+
creationFunction: function () {
400+
return IonImageryProvider.fromAssetId(3891169);
401+
},
402+
}),
403+
);
404+
405+
providerViewModels.push(
406+
new ProviderViewModel({
407+
name: "Azure Maps Labels Only",
408+
iconUrl: buildModuleUrl(
409+
"Widgets/Images/ImageryProviders/azureLabels.png",
410+
),
411+
tooltip:
412+
"Place labels from Azure Maps to combine with other imagery such as Sentinel-2",
413+
category: "Cesium ion",
414+
creationFunction: function () {
415+
return IonImageryProvider.fromAssetId(3891170);
416+
},
417+
}),
418+
);
419+
378420
return providerViewModels;
379421
}
380422
export default createDefaultImageryProviderViewModels;
31.7 KB
Loading
14.7 KB
Loading
24.6 KB
Loading

0 commit comments

Comments
 (0)