Snap grid options

This sample shows how the different options of the snap grid manager modify how the snapping experience works.
Enabled:
Remove duplicates:
Resolution:
15
Show grid:
Simplify:

Edit the grid line styles by retrieving the underlying line layer using the getGridLayer function. The following is an example of how to edit the stroke color.
Stroke Color: