Skip to content

Commit ba8b8f5

Browse files
authored
Merge pull request #285731 from stevemunk/attribute-update-websdk-map-add-shape
Updated images in article 'Add a polygon layer to the map' to show the new attribute and added lightbox to images.
2 parents d560b15 + abfa27f commit ba8b8f5

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ titleSuffix: Microsoft Azure Maps
44
description: Learn how to add polygons or circles to maps. See how to use the Azure Maps Web SDK to customize geometric shapes and make them easy to update and maintain.
55
author: sinnypan
66
ms.author: sipa
7-
ms.date: 06/07/2023
7+
ms.date: 08/28/2024
88
ms.topic: how-to
99
ms.service: azure-maps
1010
ms.subservice: web-sdk
@@ -64,7 +64,7 @@ function InitMap()
6464

6565
```
6666

67-
:::image type="content" source="./media/map-add-shape/polygon-layer.png" alt-text="A screenshot of map of New York City demonstrating the polygon layer that is covering Central Park with fill Color set to red and fill Opacity set to 0.7.":::
67+
:::image type="content" source="./media/map-add-shape/polygon-layer.png" lightbox="./media/map-add-shape/polygon-layer.png" alt-text="A screenshot of map of New York City demonstrating the polygon layer that is covering Central Park with fill Color set to red and fill Opacity set to 0.7.":::
6868

6969
<!--------------------------------------------------------------------------
7070
> [!VIDEO //codepen.io/azuremaps/embed/yKbOvZ/?height=500&theme-id=0&default-tab=js,result&embed-version=2&editable=true]
@@ -124,7 +124,7 @@ function InitMap()
124124
}
125125
```
126126

127-
:::image type="content" source="./media/map-add-shape/polygon-line-layer.png" alt-text="A screenshot of a map of New York City demonstrating a mostly transparent polygon layer covering all of Central Park, bordered with a red line.":::
127+
:::image type="content" source="./media/map-add-shape/polygon-line-layer.png" lightbox="./media/map-add-shape/polygon-line-layer.png" alt-text="A screenshot of a map of New York City demonstrating a mostly transparent polygon layer covering all of Central Park, bordered with a red line.":::
128128

129129
<!------------------------------------------------------------
130130
> [!VIDEO //codepen.io/azuremaps/embed/aRyEPy/?height=500&theme-id=0&default-tab=js,result&embed-version=2&editable=true]
@@ -136,7 +136,7 @@ In addition to filling a polygon with a color, you may use an image pattern to f
136136

137137
For a fully functional sample that shows how to use an image template as a fill pattern in a polygon layer, see [Fill polygon with built-in icon template] in the [Azure Maps Samples]. For the source code for this sample, see [Fill polygon with built-in icon template source code].
138138

139-
:::image type="content" source="./media/map-add-shape/fill-polygon-with-built-in-icon-template.png" alt-text="A screenshot of a map of the world with red dots forming a triangle in the center of the map.":::
139+
:::image type="content" source="./media/map-add-shape/fill-polygon-with-built-in-icon-template.png" lightbox="./media/map-add-shape/fill-polygon-with-built-in-icon-template.png" alt-text="A screenshot of a map of the world with red dots forming a triangle in the center of the map.":::
140140

141141
<!------------------------------------------------------------
142142
> [!VIDEO //codepen.io/azuremaps/embed/JzQpYX/?height=500&theme-id=0&default-tab=js,result]
@@ -149,7 +149,7 @@ For a fully functional sample that shows how to use an image template as a fill
149149

150150
The Polygon layer only has a few styling options. See the [Polygon Layer Options] sample map in the [Azure Maps Samples] to try them out. For the source code for this sample, see [Polygon Layer Options source code].
151151

152-
:::image type="content" source="./media/map-add-shape/polygon-layer-options.png" alt-text="A screenshot of the Polygon Layer Options tool.":::
152+
:::image type="content" source="./media/map-add-shape/polygon-layer-options.png" lightbox="./media/map-add-shape/polygon-layer-options.png" alt-text="A screenshot of the Polygon Layer Options tool.":::
153153

154154
<!------------------------------------------------------------
155155
> [!VIDEO //codepen.io/azuremaps/embed/LXvxpg/?height=700&theme-id=0&default-tab=result]
@@ -216,7 +216,7 @@ function InitMap()
216216
}
217217
```
218218

219-
:::image type="content" source="./media/map-add-shape/add-circle-to-map.png" alt-text="A screenshot of a map showing a partially transparent green circle in New York City. This demonstrates adding a circle to a map.":::
219+
:::image type="content" source="./media/map-add-shape/add-circle-to-map.png" lightbox="./media/map-add-shape/add-circle-to-map.png" alt-text="A screenshot of a map showing a partially transparent green circle in New York City. This demonstrates adding a circle to a map.":::
220220

221221
<!---------------------------------------------------------
222222
> [!VIDEO //codepen.io/azuremaps/embed/PRmzJX/?height=500&theme-id=0&default-tab=js,result&embed-version=2&editable=true]
1 MB
Loading
868 KB
Loading
15.2 KB
Loading
95.1 KB
Loading
735 KB
Loading
727 KB
Loading

0 commit comments

Comments
 (0)