Skip to content

Commit f5a87ea

Browse files
authored
Merge pull request #286029 from stevemunk/attribute-update-map-add-snap-grid
Updated images in article 'Add a snap grid to the map' to show the new attribute and added lightbox to image.
2 parents 5a183c2 + 9a445a0 commit f5a87ea

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

articles/azure-maps/map-add-snap-grid.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Add snap grid to the map | Microsoft Azure Maps
33
description: How to add a snap grid to a map using Azure Maps Web SDK
44
author: sinnypan
55
ms.author: sipa
6-
ms.date: 06/08/2023
6+
ms.date: 09/03/2024
77
ms.topic: how-to
88
ms.service: azure-maps
99
ms.subservice: web-sdk
@@ -19,9 +19,9 @@ The resolution of the snapping grid is in pixels. The grid is square and relativ
1919

2020
Create a snap grid using the `atlas.drawing.SnapGridManager` class and pass in a reference to the map you want to connect the manager to. Set the `showGrid` option to `true` if you want to make the grid visible. To snap a shape to the grid, pass it into the snap grid managers `snapShape` function. If you want to snap an array of positions, pass it into the `snapPositions` function.
2121

22-
The [Use a snapping grid] sample snaps an HTML marker to a grid when it's dragged. Drawing tools are used to snap drawn shapes to the grid when the `drawingcomplete` event fires. For the source code for this sample, see [Use a snapping grid source code].
22+
The [Use a snapping grid] sample snaps an HTML marker to a grid when dragged. Drawing tools are used to snap drawn shapes to the grid when the `drawingcomplete` event fires. For the source code for this sample, see [Use a snapping grid source code].
2323

24-
:::image type="content" source="./media/map-add-snap-grid/use-snapping-grid.png"alt-text="A screenshot that shows the snap grid on map.":::
24+
:::image type="content" source="./media/map-add-snap-grid/use-snapping-grid.png" lightbox="./media/map-add-snap-grid/use-snapping-grid.png" alt-text="A screenshot that shows the snap grid on map.":::
2525

2626
<!--------------------------------------------------
2727
> [!VIDEO https://codepen.io/azuremaps/embed/rNmzvXO?default-tab=js%2Cresult]
@@ -31,7 +31,7 @@ The [Use a snapping grid] sample snaps an HTML marker to a grid when it's dragge
3131

3232
The [Snap grid options] sample shows the different customization options available for the snap grid manager. The grid line styles can be customized by retrieving the underlying line layer using the snap grid managers `getGridLayer` function. For the source code for this sample, see [Snap grid options source code].
3333

34-
:::image type="content" source="./media/map-add-snap-grid/snap-grid-options.png"alt-text="A screenshot of map with snap grid enabled and an options panel on the left where you can set various options and see the results in the map.":::
34+
:::image type="content" source="./media/map-add-snap-grid/snap-grid-options.png" lightbox="./media/map-add-snap-grid/snap-grid-options.png" alt-text="A screenshot of map with snap grid enabled and an options panel on the side for setting various options that are updated in the map.":::
3535

3636
<!--------------------------------------------------
3737
> [!VIDEO https://codepen.io/azuremaps/embed/RwVZJry?default-tab=result]
394 KB
Loading
360 KB
Loading

0 commit comments

Comments
 (0)