Skip to content

Commit dcfa832

Browse files
authored
Merge pull request #111107 from stevemunk/update-sdk-version
Update mapcontrol version
2 parents 4beefa7 + fd97e36 commit dcfa832

11 files changed

+55
-55
lines changed

articles/azure-maps/how-to-secure-spa-users.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Create the web application in Azure AD for users to sign in. The web application
4040
6. Copy the Azure AD app ID and the Azure AD tenant ID from the app registration to use in the Web SDK. Add the Azure AD app registration details and the `x-ms-client-id` from the Azure Map account to the Web SDK.
4141

4242
```javascript
43-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
44-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js" />
43+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
44+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js" />
4545
<script>
4646
var map = new atlas.Map("map", {
4747
center: [-122.33, 47.64],

articles/azure-maps/how-to-use-indoor-module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ Your file should now look similar to the following HTML:
213213
<meta name="viewport" content="width=device-width, user-scalable=no" />
214214
<title>Indoor Maps App</title>
215215

216-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
216+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
217217
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/indoor/0.2/atlas-indoor.min.css" type="text/css"/>
218218

219-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
219+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
220220
<script src="https://atlas.microsoft.com/sdk/javascript/indoor/0.2/atlas-indoor.min.js"></script>
221221

222222
<style>

articles/azure-maps/how-to-use-map-control.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ You can embed a map in a web page by using the Map Control client-side JavaScrip
3535
* Use the globally hosted CDN version of the Azure Maps Web SDK by adding references to the JavaScript and `stylesheet` in the `<head>` element of the HTML file:
3636

3737
```html
38-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css">
39-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
38+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css">
39+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
4040
```
4141

4242
* Load the Azure Maps Web SDK source code locally using the [azure-maps-control] npm package and host it with your app. This package also includes TypeScript definitions.
@@ -46,7 +46,7 @@ You can embed a map in a web page by using the Map Control client-side JavaScrip
4646
Then add references to the Azure Maps `stylesheet` to the `<head>` element of the file:
4747

4848
```html
49-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
49+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
5050
```
5151

5252
> [!NOTE]
@@ -153,8 +153,8 @@ You can embed a map in a web page by using the Map Control client-side JavaScrip
153153
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
154154

155155
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
156-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css">
157-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
156+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css">
157+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
158158

159159

160160
<script type="text/javascript">

articles/azure-maps/how-to-use-spatial-io-module.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ You can load the Azure Maps spatial IO module using one of the two options:
8484
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
8585

8686
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
87-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
88-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.js"></script>
87+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
88+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.js"></script>
8989

9090
<script type='text/javascript'>
9191
@@ -162,8 +162,8 @@ You can load the Azure Maps spatial IO module using one of the two options:
162162
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
163163

164164
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
165-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
166-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.js"></script>
165+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
166+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.js"></script>
167167

168168
<!-- Add reference to the Azure Maps Spatial IO module. -->
169169
<script src="https://atlas.microsoft.com/sdk/javascript/spatial/0/atlas-spatial.js"></script>

articles/azure-maps/map-create.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ In the following code, the first code block creates a map and sets the enter and
124124
<head>
125125

126126
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
127-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
128-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
127+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
128+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
129129

130130

131131
<script type="text/javascript">

articles/azure-maps/migrate-from-bing-maps-web-app.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ The following code shows how to load a map with the same view in Azure Maps alon
197197
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
198198

199199
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
200-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
201-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
200+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
201+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
202202

203203
<script type='text/javascript'>
204204
var map;
@@ -405,8 +405,8 @@ When using a Symbol layer, the data must be added to a data source, and the data
405405
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
406406

407407
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
408-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
409-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
408+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
409+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
410410

411411
<script type='text/javascript'>
412412
var map, datasource;
@@ -525,8 +525,8 @@ Symbol layers in Azure Maps support custom images as well, but the image needs t
525525
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
526526

527527
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
528-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
529-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
528+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
529+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
530530

531531
<script type='text/javascript'>
532532
var map, datasource;
@@ -935,8 +935,8 @@ GeoJSON data can be directly imported in Azure Maps using the `importDataFromUrl
935935
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
936936

937937
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
938-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
939-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
938+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
939+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
940940

941941
<script type='text/javascript'>
942942
var map, datasource;
@@ -1101,8 +1101,8 @@ In Azure Maps, load the GeoJSON data into a data source and connect the data sou
11011101
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
11021102

11031103
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1104-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
1105-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
1104+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
1105+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
11061106

11071107
<script type='text/javascript'>
11081108
var map;
@@ -1312,8 +1312,8 @@ In Azure Maps, georeferenced images can be overlaid using the `atlas.layer.Image
13121312
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
13131313

13141314
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1315-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
1316-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
1315+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
1316+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
13171317

13181318
<script type='text/javascript'>
13191319
var map;
@@ -1431,8 +1431,8 @@ In Azure Maps, GeoJSON is the main data format used in the web SDK, more spatial
14311431
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
14321432

14331433
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1434-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
1435-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
1434+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
1435+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
14361436

14371437
<!-- Add reference to the Azure Maps Spatial IO module. -->
14381438
<script src="https://atlas.microsoft.com/sdk/javascript/spatial/0/atlas-spatial.js"></script>
@@ -1583,8 +1583,8 @@ In Azure Maps, the drawing tools module needs to be loaded by loading the JavaSc
15831583
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
15841584

15851585
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1586-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
1587-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
1586+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
1587+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
15881588

15891589
<!-- Add references to the Azure Maps Map Drawing Tools JavaScript and CSS files. -->
15901590
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/drawing/0/atlas-drawing.min.css" type="text/css" />

articles/azure-maps/migrate-from-google-maps-web-app.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ Load a map with the same view in Azure Maps along with a map style control and z
182182
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
183183

184184
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
185-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
186-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
185+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
186+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
187187

188188
<script type='text/javascript'>
189189
var map;
@@ -381,8 +381,8 @@ For a Symbol layer, add the data to a data source. Attach the data source to the
381381
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
382382

383383
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
384-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
385-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
384+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
385+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
386386

387387
<script type='text/javascript'>
388388
var map, datasource;
@@ -505,8 +505,8 @@ Symbol layers in Azure Maps support custom images as well. First, load the image
505505
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
506506

507507
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
508-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
509-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
508+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
509+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
510510

511511
<script type='text/javascript'>
512512
var map, datasource;
@@ -884,8 +884,8 @@ GeoJSON is the base data type in Azure Maps. Import it into a data source using
884884
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
885885

886886
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
887-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
888-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
887+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
888+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
889889

890890
<script type='text/javascript'>
891891
var map;
@@ -1064,8 +1064,8 @@ Directly import GeoJSON data using the `importDataFromUrl` function on the `Data
10641064
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
10651065

10661066
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1067-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
1068-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
1067+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
1068+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
10691069

10701070
<script type='text/javascript'>
10711071
var map, datasource;
@@ -1244,8 +1244,8 @@ Load the GeoJSON data into a data source and connect the data source to a heat m
12441244
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
12451245

12461246
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1247-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
1248-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
1247+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
1248+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
12491249

12501250
<script type='text/javascript'>
12511251
var map;
@@ -1459,8 +1459,8 @@ Use the `atlas.layer.ImageLayer` class to overlay georeferenced images. This cla
14591459
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
14601460

14611461
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1462-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
1463-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
1462+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
1463+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
14641464

14651465
<script type='text/javascript'>
14661466
var map;
@@ -1566,8 +1566,8 @@ In Azure Maps, GeoJSON is the main data format used in the web SDK, more spatial
15661566
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
15671567

15681568
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
1569-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css" />
1570-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
1569+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
1570+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
15711571

15721572
<!-- Add reference to the Azure Maps Spatial IO module. -->
15731573
<script src="https://atlas.microsoft.com/sdk/javascript/spatial/0/atlas-spatial.js"></script>

articles/azure-maps/tutorial-create-store-locator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ To create the HTML:
169169

170170
```HTML
171171
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
172-
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.css" type="text/css">
173-
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>
172+
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css">
173+
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
174174
```
175175

176176
3. Next, add a reference to the Azure Maps Services module. This module is a JavaScript library that wraps the Azure Maps REST services, making them easy to use in JavaScript. The Services module is useful for powering search functionality.

0 commit comments

Comments
 (0)