Edit

Share via


Web SDK supported browsers

The Azure Maps Web SDK provides a helper function called atlas.isSupported. This function detects whether a web browser has the minimum set of WebGL features required to support loading and rendering the map control. Here's an example of how to use the function:

if (!atlas.isSupported()) {
    alert('Your browser is not supported by Azure Maps');
} else if (!atlas.isSupported(true)) {
    alert('Your browser is supported by Azure Maps, but may have major performance caveats.');
} else {
    // Your browser is supported. Add your map code here.
}

Desktop

The Azure Maps Web SDK supports the following desktop browsers:

  • Microsoft Edge (current and previous version)
  • Google Chrome (current and previous version)
  • Mozilla Firefox (current and previous version)
  • Apple Safari (macOS X) (current and previous version)

See also Target legacy browsers later in this article.

Node.js

The following Web SDK modules are also supported in Node.js:

Target legacy browsers

You might want to target older browsers that don't support WebGL or that have only limited support for it. In such cases, you can use Azure Maps services together with an open-source map control like Leaflet.

The Render Azure Maps in Leaflet Azure Maps sample shows how to render Azure Maps Raster Tiles in the Leaflet JS map control. This sample uses the open source Azure Maps Leaflet plugin. For the source code for this sample, see Render Azure Maps in Leaflet sample source code.

For more code samples using Azure Maps in Leaflet, see Azure Maps Samples.

Next steps

Learn more about the Azure Maps Web SDK: