SnapGridManagerOptions interface

Options for the SnapGridManager.

Properties

enabled

Specifies if the snapping functions are enabled. If not, the original shapes and positions will be returned. Default: true

removeDuplicates

Specifies duplicate sequential positions should be removed when snapping. Default: true

resolution

Specifies the size of the snapping grid in pixels. The grid will be square and relative to the nearest integer zoom level. The grid will scale by a factor of 2 relative to physical real-world area with each zoom level. Default: 15

showGrid

Specifies if grid lines should be displayed on the map. Default: false

simplify

Specifies if a Douglas-Peucker simplification should occur while snapping to create smoother lines. Default: true

Property Details

enabled

Specifies if the snapping functions are enabled. If not, the original shapes and positions will be returned. Default: true

enabled?: boolean

Property Value

boolean

removeDuplicates

Specifies duplicate sequential positions should be removed when snapping. Default: true

removeDuplicates?: boolean

Property Value

boolean

resolution

Specifies the size of the snapping grid in pixels. The grid will be square and relative to the nearest integer zoom level. The grid will scale by a factor of 2 relative to physical real-world area with each zoom level. Default: 15

resolution?: number

Property Value

number

showGrid

Specifies if grid lines should be displayed on the map. Default: false

showGrid?: boolean

Property Value

boolean

simplify

Specifies if a Douglas-Peucker simplification should occur while snapping to create smoother lines. Default: true

simplify?: boolean

Property Value

boolean