You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/map-add-snap-grid.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Add snap grid to the map | Microsoft Azure Maps
3
3
description: How to add a snap grid to a map using Azure Maps Web SDK
4
4
author: sinnypan
5
5
ms.author: sipa
6
-
ms.date: 06/08/2023
6
+
ms.date: 09/03/2024
7
7
ms.topic: how-to
8
8
ms.service: azure-maps
9
9
ms.subservice: web-sdk
@@ -19,9 +19,9 @@ The resolution of the snapping grid is in pixels. The grid is square and relativ
19
19
20
20
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.
21
21
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].
23
23
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.":::
@@ -31,7 +31,7 @@ The [Use a snapping grid] sample snaps an HTML marker to a grid when it's dragge
31
31
32
32
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].
33
33
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.":::
0 commit comments