azure-maps-control 2.2.2 → 3.0.0-preview.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ReadMe.md CHANGED
@@ -1,40 +1,81 @@
1
- # Azure Maps Web Control
2
-
3
- The [Azure Maps](https://azure.com/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.
4
-
5
- ## How to Install
6
-
7
- You can embed the Azure Maps Web Control source code into your app by installing the NPM package:
8
-
9
- > npm install azure-maps-control
10
-
11
- This package includes a minified version of the source code as well as the TypeScript definitions for the Azure Maps Web Control.
12
-
13
- Alternatively, you can also reference the hosted version of the Azure Maps Web Control by adding the following script tags to your application.
14
-
15
- ```html
16
- <link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
17
- <script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
18
- ```
19
-
20
- ## Developer Resources
21
-
22
- * [Quickstart Guide](https://docs.microsoft.com/azure/azure-maps/quick-demo-map-app)
23
- * [Setup your Azure Maps account](https://docs.microsoft.com/azure/azure-maps/how-to-manage-account-keys)
24
- * [Tutorials](https://docs.microsoft.com/azure/azure-maps/tutorial-search-location)
25
- * [How-to Documentation](https://docs.microsoft.com/azure/azure-maps/how-to-use-map-control)
26
- * [API Reference Documentation](https://docs.microsoft.com/javascript/api/azure-maps-control/)
27
- * [Code Samples](https://aka.ms/azuremapssamples)
28
- * [Videos](https://aka.ms/AzureMapsVideos)
29
-
30
- ## Related Packages
31
-
32
- * [Azure Maps Service Module](https://www.npmjs.com/package/azure-maps-rest) - A JavaScript library that makes it easy to work with the Azure Maps REST services in any web or NodeJS app.
33
- * [Azure Maps Drawing Tools Module](https://www.npmjs.com/package/azure-maps-drawing-tools) - A JavaScript library that adds drawing capabilities to the Azure Maps Web control.
34
- * [Azure Maps Spatial IO Module](https://www.npmjs.com/package/azure-maps-spatial-io) - A JavaScript library that makes it easy to integrate spatial data with the Azure Maps web SDK using JavaScript or TypeScript.
35
- * [Azure Maps Indoor Module](https://www.npmjs.com/package/azure-maps-indoor) - A JavaScript library that provides a set of tools for adding indoor maps built using Creator in the Azure Maps Web Control.
36
- * [AirMap plugin for Azure Maps](https://www.npmjs.com/package/js-azure-maps-plugin) - A plugin for the Azure Maps Web Control to view and interact with AirMap's Contextual Airspace Rules.
37
-
38
- ## Release Notes
39
-
40
- Please refer to [Release Notes](https://learn.microsoft.com/azure/azure-maps/release-notes-map-control) for more details.
1
+ # Azure Maps Web Control (3.0.0-preview.2)
2
+
3
+ The [Azure Maps](https://azure.com/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.
4
+
5
+ ## How to Install
6
+
7
+ You can embed the Azure Maps V3 Web Control source code into your app by installing the NPM package (under @next tag, since it is a preview release):
8
+
9
+ ### NPM
10
+
11
+ ```
12
+ npm install azure-maps-control@next
13
+ ```
14
+
15
+ This package includes a minified version of the source code, CSS stylesheet, as well as the TypeScript definitions for the Azure Maps Web Control.
16
+
17
+ 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.
18
+
19
+ #### Webpack
20
+
21
+ For [webpack](https://webpack.js.org/), it is commonly done via a combination of `style-loader` and `css-loader` with documentation available at [style-loader](https://webpack.js.org/loaders/style-loader/).
22
+
23
+ To begin, install `style-loader` and `css-loader`:
24
+
25
+ ```
26
+ npm install --save-dev style-loader css-loader
27
+ ```
28
+
29
+ Inside your source file, import `atlas.min.css`:
30
+
31
+ **src/index.ts**:
32
+
33
+ ```ts
34
+ require('../node_modules/azure-maps-control/dist/atlas.min.css');
35
+ ```
36
+
37
+ then add loaders to the module rules portion of the webpack config:
38
+
39
+ ```js
40
+ module.exports = {
41
+ module: {
42
+ rules: [
43
+ {
44
+ test: /\.css$/i,
45
+ use: ["style-loader", "css-loader"],
46
+ },
47
+ ],
48
+ },
49
+ };
50
+ ```
51
+
52
+ ### CDN
53
+
54
+ 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.
55
+
56
+ ```html
57
+ <link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3.0.0-preview.2/atlas.min.css" type="text/css" />
58
+ <script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3.0.0-preview.2/atlas.min.js"></script>
59
+ ```
60
+
61
+ ## Developer Resources
62
+
63
+ * [Quickstart Guide](https://docs.microsoft.com/azure/azure-maps/quick-demo-map-app)
64
+ * [Setup your Azure Maps account](https://docs.microsoft.com/azure/azure-maps/how-to-manage-account-keys)
65
+ * [Tutorials](https://docs.microsoft.com/azure/azure-maps/tutorial-search-location)
66
+ * [How-to Documentation](https://docs.microsoft.com/azure/azure-maps/how-to-use-map-control)
67
+ * [API Reference Documentation](https://docs.microsoft.com/javascript/api/azure-maps-control/)
68
+ * [Code Samples](https://aka.ms/azuremapssamples)
69
+ * [Videos](https://aka.ms/AzureMapsVideos)
70
+
71
+ ## Related Packages
72
+
73
+ * [Azure Maps Service Module](https://www.npmjs.com/package/azure-maps-rest) - A JavaScript library that makes it easy to work with the Azure Maps REST services in any web or NodeJS app.
74
+ * [Azure Maps Drawing Tools Module](https://www.npmjs.com/package/azure-maps-drawing-tools) - A JavaScript library that adds drawing capabilities to the Azure Maps Web control.
75
+ * [Azure Maps Spatial IO Module](https://www.npmjs.com/package/azure-maps-spatial-io) - A JavaScript library that makes it easy to integrate spatial data.
76
+ * [Azure Maps Indoor Module](https://www.npmjs.com/package/azure-maps-indoor) - A JavaScript library that provides a set of tools for adding indoor maps.
77
+ * [AirMap plugin for Azure Maps](https://www.npmjs.com/package/js-azure-maps-plugin) - A plugin for the Azure Maps Web Control to view and interact with AirMap's Contextual Airspace Rules.
78
+
79
+ ## Changelog
80
+
81
+ Please refer to [CHANGELOG.md](https://github.com/MicrosoftDocs/azure-iot-docs-sdk-typescript/blob/main/CHANGELOG.md)