azure-maps-control 3.0.0-preview.1 → 3.0.0-preview.10

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,39 +1,86 @@
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
-
14
- Alternatively, you can also reference the hosted version of the Azure Maps Web Control by adding the following script tags to your application.
15
-
16
- ```html
17
- <link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
18
- <script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
19
- ```
20
-
21
- ## Developer Resources
22
-
23
- * [Quickstart Guide](https://docs.microsoft.com/azure/azure-maps/quick-demo-map-app)
24
- * [Setup your Azure Maps account](https://docs.microsoft.com/azure/azure-maps/how-to-manage-account-keys)
25
- * [Tutorials](https://docs.microsoft.com/azure/azure-maps/tutorial-search-location)
26
- * [How-to Documentation](https://docs.microsoft.com/azure/azure-maps/how-to-use-map-control)
27
- * [API Reference Documentation](https://docs.microsoft.com/javascript/api/azure-maps-control/)
28
- * [Code Samples](https://aka.ms/azuremapssamples)
29
- * [Videos](https://aka.ms/AzureMapsVideos)
30
-
31
- ## Related Packages
32
-
33
- * [Azure Maps Search 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.
34
- * [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.
35
- * [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.
36
-
37
- ## Changelog
38
-
39
- Please refer to [CHANGELOG.md](https://github.com/MicrosoftDocs/azure-iot-docs-sdk-typescript/blob/main/CHANGELOG.md)
1
+ # Azure Maps Web Control (3.0.0-preview.10)
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
+ #### Additional notes
53
+
54
+ If you are using `MapControl` inside [create-react-app](https://create-react-app.dev/) based project, make sure your browserlist settings do not include IE11, since it is no longer supported (`not ie 11`).
55
+
56
+
57
+ ### CDN
58
+
59
+ 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.
60
+
61
+ ```html
62
+ <link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3.0.0-preview.10/atlas.min.css" type="text/css" />
63
+ <script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3.0.0-preview.10/atlas.min.js"></script>
64
+ ```
65
+
66
+ ## Developer Resources
67
+
68
+ * [Quickstart Guide](https://docs.microsoft.com/azure/azure-maps/quick-demo-map-app)
69
+ * [Setup your Azure Maps account](https://docs.microsoft.com/azure/azure-maps/how-to-manage-account-keys)
70
+ * [Tutorials](https://docs.microsoft.com/azure/azure-maps/tutorial-search-location)
71
+ * [How-to Documentation](https://docs.microsoft.com/azure/azure-maps/how-to-use-map-control)
72
+ * [API Reference Documentation](https://docs.microsoft.com/javascript/api/azure-maps-control/)
73
+ * [Code Samples](https://aka.ms/azuremapssamples)
74
+ * [Videos](https://aka.ms/AzureMapsVideos)
75
+
76
+ ## Related Packages
77
+
78
+ * [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.
79
+ * [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.
80
+ * [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.
81
+ * [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.
82
+ * [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.
83
+
84
+ ## release note
85
+
86
+ Please refer to [release note](https://learn.microsoft.com/azure/azure-maps/release-notes-map-control) for more information.