You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-use-map-control.md
+169-1Lines changed: 169 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,9 @@ The Azure Maps Web SDK provides a [Map Control] that enables the customization o
17
17
18
18
This article uses the Azure Maps Web SDK, however the Azure Maps services work with any map control. For a list of third-party map control plug-ins, see [Azure Maps community - Open-source projects].
19
19
20
+
> [!IMPORTANT]
21
+
> If you have existing applications incorporating Azure Maps using version 2 of the [Map Control], it is recomended to start using version 3. Version 3 is backwards compatible and has several benifits including [WebGL 2 Compatibility], increased performance and support for [3D terrain tiles].
22
+
20
23
## Prerequisites
21
24
22
25
To use the Map Control in a web page, you must have one of the following prerequisites:
@@ -228,6 +231,168 @@ Here's an example of Azure Maps with the language set to "fr-FR" and the regiona
228
231
229
232
For a list of supported languages and regional views, see [Localization support in Azure Maps].
230
233
234
+
## WebGL 2 Compatibility
235
+
236
+
Beginning with Azure Maps Web SDK 3.0, the Web SDK includes full compatibility with [WebGL 2], a powerful graphics technology that enables hardware-accelerated rendering in modern web browsers. By using WebGL 2, developers can harness the capabilities of modern GPUs to render complex maps and visualizations more efficiently, resulting in improved performance and visual quality.
Beginning with Azure Maps Web SDK 3.0, developers can take advantage of 3D terrain visualizations. This feature allows you to incorporate elevation data into your maps, creating a more immersive experience for your users. Whether it's visualizing mountain ranges, valleys, or other geographical features, the 3D terrain support brings a new level of realism to your mapping applications.
333
+
334
+
The following code example demonstrates how to implement 3D terrain tiles.
// Get an Azure Maps key at https://azuremaps.com/.
370
+
authOptions: {
371
+
authType:"subscriptionKey",
372
+
subscriptionKey:"<Your Azure Maps Key>"
373
+
}
374
+
});
375
+
376
+
// Create a tile source for elevation data. For more information on creating
377
+
// elevation data & services using open data, see https://aka.ms/elevation
378
+
var elevationSource =newatlas.source.ElevationTileSource("elevation", {
379
+
url:"<tileSourceUrl>"
380
+
});
381
+
382
+
// Wait until the map resources are ready.
383
+
map.events.add("ready", (event) => {
384
+
385
+
// Add the elevation source to the map.
386
+
map.sources.add(elevationSource);
387
+
388
+
// Enable elevation on the map.
389
+
map.enableElevation(elevationSource);
390
+
});
391
+
</script>
392
+
</body>
393
+
</html>
394
+
```
395
+
231
396
## Azure Government cloud support
232
397
233
398
The Azure Maps Web SDK supports the Azure Government cloud. All JavaScript and CSS URLs used to access the Azure Maps Web SDK remain the same. The following tasks need to be done to connect to the Azure Government cloud version of the Azure Maps platform.
@@ -274,6 +439,7 @@ For a list of samples showing how to integrate Azure AD with Azure Maps, see:
274
439
> [!div class="nextstepaction"]
275
440
> [Azure AD authentication samples](https://github.com/Azure-Samples/Azure-Maps-AzureAD-Samples)
0 commit comments