# OpenLayers Snap Grid Example

# Snap Grid Example

snap grid
Use a PointGrid layer and a Snapping control to snap to a grid of regularly spaced points
Grid rotation:
Grid spacing:
Max points:

This example demonstrates feature editing with snapping to a regular grid. The map is configured with a `OpenLayers.Layer.PointGrid` layer and a `OpenLayers.Control.Snapping` agent. For the best performance, the point grid layer should not made visible. Snapping still works with layers that are not visible.

See the snap-grid.js source to see how this is done.