Skip to content

Commit 36c8753

Browse files
authored
Merge pull request #42339 from jingjing-z/patch-24
Update map-add-shape.md
2 parents 06eb989 + 42cd0ca commit 36c8753

File tree

8 files changed

+43
-6
lines changed

8 files changed

+43
-6
lines changed

articles/azure-maps/map-accessibility.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ Learn more about the Popup class and its methods used in this article:
3434
* [remove](https://docs.microsoft.com/javascript/api/azure-maps-javascript/popup?view=azure-iot-typescript-latest#remove)
3535
* [open](https://docs.microsoft.com/javascript/api/azure-maps-javascript/popup?view=azure-iot-typescript-latest#open)
3636
* [close](https://docs.microsoft.com/javascript/api/azure-maps-javascript/popup?view=azure-iot-typescript-latest#close)
37+
38+
Check out our [code sample page](http://aka.ms/AzureMapsSamples) for more mapping scenarios.

articles/azure-maps/map-add-custom-html.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Add custom html in Azure Maps | Microsoft Docs
33
description: How to add custom html to a Javascript map
4-
author: jinzh-azureiot
4+
author: jingjing-z
55
ms.author: jinzh
66
ms.date: 05/07/2018
77
ms.topic: conceptual
@@ -31,3 +31,8 @@ The last block of code uses [addHtml](https://docs.microsoft.com/javascript/api/
3131
Learn more about the classes and methods used in this article:
3232
* [Map](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest)
3333
* [addHtml](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest#addhtml)
34+
35+
For more code examples to add to your maps, see the following articles:
36+
* [Show search results](./map-search-location.md)
37+
* [Get information from a coordinate](./map-get-information-from-coordinate.md)
38+

articles/azure-maps/map-add-shape.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Add a shape with Azure Maps | Microsoft Docs
33
description: How to add a shape to a Javascript map
4-
author: jinzh-azureiot
4+
author: jingjing-z
55
ms.author: jinzh
66
ms.date: 05/07/2018
77
ms.topic: conceptual
@@ -52,3 +52,10 @@ In the code above, the first block of code constructs a map object. You can see
5252
In the second block of code, a polygon is created. A polygon is a [Feature](https://docs.microsoft.com/javascript/api/azure-maps-javascript/feature?view=azure-iot-typescript-latest) of [Polygon](https://docs.microsoft.com/javascript/api/azure-maps-javascript/polygon?view=azure-iot-typescript-latest) with [PolygonProperties](https://docs.microsoft.com/javascript/api/azure-maps-javascript/polygonproperties?view=azure-iot-typescript-latest) as its Feature property. Use `new atlas.data.Feature(new atlas.data.Polygon())` to create a polygon and define its properties. Provide ordered coordinates of the polygon path in the polygon constructor.
5353

5454
A polygon layer is an array of polygons. The last block of code uses [addPolygons](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest#addpolygons) function of the map class to add the polygon layer to the map and define its properties. See properties of a polygon layer at [PolygonLayerOptions](https://docs.microsoft.com/javascript/api/azure-maps-javascript/polygonlayeroptions?view=azure-iot-typescript-latest).
55+
56+
## Next steps
57+
For more code examples to add to your maps, see the following articles:
58+
* [Add custom HTML](./map-add-custom-html.md)
59+
* [Show search results](./map-search-location.md)
60+
61+

articles/azure-maps/map-events.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Handle mouse events with Azure Maps | Microsoft Docs
33
description: How to make an interactive Javascript map with map events
4-
author: jinzh-azureiot
4+
author: jingjing-z
55
ms.author: jinzh
66
ms.date: 05/07/2018
77
ms.topic: conceptual
@@ -28,3 +28,8 @@ Learn more about the classes and methods used in this article:
2828

2929
* [Map](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest)
3030
* [addEventListener](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest#addeventlistener)
31+
32+
For more code examples to add to your maps, see the following article:
33+
* [Show search results](./map-search-location.md)
34+
35+
Check out our [code sample page](http://aka.ms/AzureMapsSamples) for more mapping scenarios.

articles/azure-maps/map-get-information-from-coordinate.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ Learn more about the classes and methods used in this article:
3838
* [setPopupOptions](https://docs.microsoft.com/javascript/api/azure-maps-javascript/popup?view=azure-iot-typescript-latest#setpopupoptions)
3939
* [open](https://docs.microsoft.com/javascript/api/azure-maps-javascript/popup?view=azure-iot-typescript-latest#open)
4040
* [close](https://docs.microsoft.com/javascript/api/azure-maps-javascript/popup?view=azure-iot-typescript-latest#close)
41+
42+
For more code examples to add to your maps, see the following articles:
43+
* [Show directions from A to B](./map-route.md)
44+
* [Show traffic](./map-show-traffic.md)

articles/azure-maps/map-route.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Show directions with Azure Maps | Microsoft Docs
33
description: How to display directions between two locations on a Javascript map
4-
author: jinzh-azureiot
4+
author: jingjing-z
55
ms.author: jinzh
66
ms.date: 05/07/2018
77
ms.topic: conceptual
@@ -38,3 +38,7 @@ Learn more about the classes and methods used in this article:
3838
* [setCameraBounds](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest#setcamerabounds)
3939
* [addLinestrings](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest#addlinestrings)
4040
* [addPins](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest#addpins)
41+
42+
For more code examples to add to your maps, see the following articles:
43+
* [Show traffic on the map](./map-show-traffic.md)
44+
* [Interacting with the map - mouse events](./map-events.md)

articles/azure-maps/map-search-location.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Show search results with Azure Maps | Microsoft Docs
33
description: How to perform a search request with Azure Maps then display the results on a Javascrip map
4-
author: jinzh-azureiot
4+
author: jingjing-z
55
ms.author: jinzh
66
ms.date: 05/07/2018
77
ms.topic: conceptual
@@ -36,3 +36,7 @@ Learn more about the classes and methods used in this article:
3636
* [Azure Maps Fuzzy Search API](https://docs.microsoft.com/rest/api/maps/search/getsearchfuzzy)
3737
* [Map](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest)
3838
* [addPins](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest#addpins)
39+
40+
For more code examples to add to your maps, see the following articles:
41+
* [Get information from a coordinate](./map-get-information-from-coordinate.md)
42+
* [Show directions from A to B](./map-route.md)

articles/azure-maps/map-show-traffic.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Show traffic with Azure Maps | Microsoft Docs
33
description: How to display traffic data on a Javascript map
4-
author: jinzh-azureiot
4+
author: jingjing-z
55
ms.author: jinzh
66
ms.date: 05/07/2018
77
ms.topic: conceptual
@@ -29,3 +29,9 @@ The second block of code uses [setTraffic](https://docs.microsoft.com/javascript
2929
Learn more about the classes and methods used in this article:
3030
* [Map](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest)
3131
* [setTraffic](https://docs.microsoft.com/javascript/api/azure-maps-javascript/map?view=azure-iot-typescript-latest#settraffic)
32+
33+
For more code examples to add to your maps, see the following articles:
34+
* [Interacting with the map – mouse events](./map-events.md)
35+
* [Building an accessible map](./map-accessibility.md)
36+
37+
Check out our [code sample page](http://aka.ms/AzureMapsSamples) for more mapping scenarios.

0 commit comments

Comments
 (0)