Skip to content

Commit c7908a2

Browse files
committed
Added links to sample source code in articles: map-create.md, map-events.md & map-extruded-polygon.md
1 parent fec12f9 commit c7908a2

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

articles/azure-maps/map-create.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This article shows you ways to create a map and animate a map.
1616

1717
To load a map, create a new instance of the [Map class](/javascript/api/azure-maps-control/atlas.map). When initializing the map, pass a DIV element ID to render the map and pass a set of options to use when loading the map. If default authentication information isn't specified on the `atlas` namespace, this information needs to be specified in the map options when loading the map. The map loads several resources asynchronously for performance. As such, after creating the map instance, attach a `ready` or `load` event to the map and then add any additional code that interacts with the map to the event handler. The `ready` event fires as soon as the map has enough resources loaded to be interacted with programmatically. The `load` event fires after the initial map view has finished loading completely.
1818

19-
You can also load multiple maps on the same page, for sample code that demonstrates loading multiple maps on the same page, see [Multiple Maps] in the [Azure Maps Samples].
19+
You can also load multiple maps on the same page, for sample code that demonstrates loading multiple maps on the same page, see [Multiple Maps] in the [Azure Maps Samples]. For the source code for this sample, see [Multiple Maps source code].
2020

2121
:::image type="content" source="./media/map-create/multiple-maps.png"alt-text="A screenshot that shows the snap grid on map.":::
2222

@@ -283,5 +283,6 @@ See code examples to add functionality to your app:
283283
> [!div class="nextstepaction"]
284284
> [Code samples](/samples/browse/?products=azure-maps)
285285

286-
[Multiple Maps]: https://samples.azuremaps.com/map/multiple-maps
287286
[Azure Maps Samples]: https://samples.azuremaps.com
287+
[Multiple Maps]: https://samples.azuremaps.com/map/multiple-maps
288+
[Multiple Maps source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Map/Multiple%20Maps/Multiple%20Maps.html

articles/azure-maps/map-events.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This article shows you how to use [map events class](/javascript/api/azure-maps-
1414

1515
## Interact with the map
1616

17-
The [Map Events] sample highlights the name of the events that are firing as you interact with the map.
17+
The [Map Events] sample highlights the name of the events that are firing as you interact with the map. For the source code for this sample, see [Map Events source code].
1818

1919
:::image type="content" source="./media/map-events/map-events.png"alt-text="A screenshot showing a map with a list of map events that are highlighted anytime your actions on the map trigger that event.":::
2020

@@ -25,7 +25,7 @@ The [Map Events] sample highlights the name of the events that are firing as you
2525

2626
## Interact with map layers
2727

28-
The [Layer Events] sample highlights the name of the events that are firing as you interact with the Symbol Layer. The symbol, bubble, line, and polygon layer all support the same set of events. The heat map and tile layers don't support any of these events.
28+
The [Layer Events] sample highlights the name of the events that are firing as you interact with the Symbol Layer. The symbol, bubble, line, and polygon layer all support the same set of events. The heat map and tile layers don't support any of these events. For the source code for this sample, see [Layer Events source code].
2929

3030
:::image type="content" source="./media/map-events/layer-events.png"alt-text="A screenshot showing a map with a list of layer events that are highlighted anytime you interact with the Symbol Layer.":::
3131

@@ -36,7 +36,7 @@ The [Layer Events] sample highlights the name of the events that are firing as y
3636

3737
## Interact with HTML Marker
3838

39-
The [HTML marker layer events] sample highlights the name of the events that are firing as you interact with the HTML marker layer.
39+
The [HTML marker layer events] sample highlights the name of the events that are firing as you interact with the HTML marker layer. For the source code for this sample, see [HTML marker layer Events source code].
4040

4141
:::image type="content" source="./media/map-events/html-marker-layer-events.png"alt-text="A screenshot showing a map with a list of HTML marker layer events that are highlighted anytime your actions on the map trigger that event.":::
4242

@@ -119,3 +119,7 @@ See the following articles for full code examples:
119119
[Map Events]: https://samples.azuremaps.com/map/map-events
120120
[Layer Events]: https://samples.azuremaps.com/symbol-layer/symbol-layer-events
121121
[HTML marker layer events]: https://samples.azuremaps.com/html-markers/html-marker-layer-events
122+
123+
[Map Events source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Map/Map%20Events/Map%20Events.html
124+
[Layer Events source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Symbol%20Layer/Symbol%20layer%20events/Symbol%20layer%20events.html
125+
[HTML marker layer events source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/HTML%20Markers/HTML%20marker%20layer%20events/HTML%20marker%20layer%20events.html

articles/azure-maps/map-extruded-polygon.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function InitMap()
112112

113113
A choropleth map can be rendered using the polygon extrusion layer. Set the `height` and `fillColor` properties of the extrusion layer to the measurement of the statistical variable in the `Polygon` and `MultiPolygon` feature geometries.
114114

115-
The [Create a Choropleth Map] sample shows an extruded choropleth map of the United States based on the measurement of the population density by state.
115+
The [Create a Choropleth Map] sample shows an extruded choropleth map of the United States based on the measurement of the population density by state. For the source code for this sample, see [Create a Choropleth Map source code].
116116

117117
:::image type="content" source="./media/map-extruded-polygon/choropleth-map.png"alt-text="A screenshot of a map showing a choropleth map rendered using the polygon extrusion layer.":::
118118

@@ -193,7 +193,7 @@ function InitMap()
193193

194194
## Customize a polygon extrusion layer
195195

196-
The Polygon Extrusion layer has several styling options. The [Polygon Extrusion Layer Options] sample is a tool to try them out.
196+
The Polygon Extrusion layer has several styling options. The [Polygon Extrusion Layer Options] sample is a tool to try them out. For the source code for this sample, see [Polygon Extrusion Layer Options source code].
197197

198198
:::image type="content" source="./media/map-extruded-polygon/polygon-extrusion-layer-options.png"alt-text="A screenshot of the Azure Maps code sample that shows how the different options of the polygon extrusion layer affect rendering.":::
199199
<!------------------------------------------------------------
@@ -217,3 +217,6 @@ Additional resources:
217217
218218
[Create a Choropleth Map]: https://samples.azuremaps.com/?sample=create-a-choropleth-map
219219
[Polygon Extrusion Layer Options]: https://samples.azuremaps.com/?sample=polygon-extrusion-layer-options
220+
221+
[Create a Choropleth Map source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Demos/Create%20a%20Choropleth%20Map/Create%20a%20Choropleth%20Map.html
222+
[Polygon Extrusion Layer Options source code]: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Polygons/Polygon%20Extrusion%20Layer%20Options/Polygon%20Extrusion%20Layer%20Options.html

0 commit comments

Comments
 (0)