azure-maps-control
TypeScript icon, indicating that this package has built-in type declarations

3.5.0 • Public • Published

Azure Maps Web Control

The Azure Maps Web Control lets you customize interactive maps with your own content and imagery for display in your web or mobile applications. This control makes use of WebGL, allowing you to render large data sets with high performance. Develop with the control using JavaScript or TypeScript.

How to Install

You can embed the Azure Maps V3 Web Control source code into your app by installing the NPM package:

NPM

npm install azure-maps-control

This package includes a minified version of the source code, CSS stylesheet, as well as the TypeScript definitions for the Azure Maps Web Control.

You would also need to embed the CSS stylesheet for various controls and popups to show correctly. You may find it under /node_modules/azure-maps-control/dist/atlas.min.css. If you are using a javascript bundler to bundle the dependencies and package your code, refer to your bundler's documentation on how this is done.

Webpack

For webpack, it is commonly done via a combination of style-loader and css-loader with documentation available at style-loader.

To begin, install style-loader and css-loader:

npm install --save-dev style-loader css-loader

Inside your source file, import atlas.min.css:

src/index.ts:

require('../node_modules/azure-maps-control/dist/atlas.min.css');

then add loaders to the module rules portion of the webpack config:

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: ["style-loader", "css-loader"],
      },
    ],
  },
};

Additional notes

If you are using MapControl inside create-react-app based project, make sure your browserlist settings do not include IE11, since it is no longer supported (not ie 11).

CDN

Alternatively, you can also reference the hosted version of the Azure Maps V3 Web Control by adding the following script tags directly to your application.

<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>

Developer Resources

Related Packages

release note

Please refer to release note for more information.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.5.02,458latest
3.2.197next

Version History

VersionDownloads (Last 7 Days)Published
3.5.02,458
3.4.01,820
3.3.01,481
3.2.197
3.2.061
2.3.72,192
3.1.22,890
3.1.1101
3.1.039
2.3.6270
3.0.3271
2.3.5106
3.0.2297
2.3.446
3.0.1317
2.3.380
3.0.0274
2.3.2500
3.0.0-preview.100
3.0.0-preview.90
2.3.131
2.3.0182
3.0.0-preview.80
2.2.7702
3.0.0-preview.70
2.2.639
3.0.0-preview.60
2.2.585
3.0.0-preview.50
2.2.423
3.0.0-preview.40
2.2.3180
3.0.0-preview.31
3.0.0-preview.21
2.2.2103
3.0.0-preview.10
2.2.0100
2.1.17160
2.1.16275
2.1.1523
2.1.140
2.1.130
2.1.120
2.1.10880
2.1.91
2.1.8144
2.1.628
2.1.513
2.1.487
2.1.32
2.1.212
2.1.14
2.1.064
2.0.323,262
2.0.31162
2.0.3017
2.0.294
2.0.283
2.0.2721
2.0.260
2.0.2553
2.0.240
2.0.230
2.0.221
2.0.210
2.0.200
2.0.191
2.0.180
2.0.170
2.0.161
2.0.1521
2.0.1410
2.0.130
2.0.124
2.0.118
2.0.106
2.0.96
2.0.80
2.0.71
2.0.60
2.0.51
2.0.43
2.0.30
2.0.21
2.0.10
2.0.09
1.3.100
1.3.92
1.3.80
1.3.70
1.3.40
1.3.30
1.3.20
1.3.13
1.2.30
1.2.20
1.2.10
1.2.00

Package Sidebar

Install

npm i azure-maps-control

Weekly Downloads

19,701

Version

3.5.0

License

SEE LICENSE.TXT

Unpacked Size

28.3 MB

Total Files

19

Last publish

Collaborators

  • azuremaps