/mapview/interactions/snap
Methods
(inner) snap(mapview)
Sets up the snap interaction for the mapview.
Parameters:
Properties| Name | Type | Description |
|---|---|---|
mapview | mapview |
| Name | Type | Attributes | Description |
|---|---|---|---|
mapview.layers | object | The map layers object. | |
mapview.interaction | object | The interaction object. | |
interaction.snap | object | The snap interaction configuration. | |
mapview.interaction.snap.layer | string | <optional> | The key of the layer to snap to. |
(inner) tileloadend(e)
Callback function for the `tileloadend event of the feature source. Adds features from the loaded tile to the snap source.
Parameters:
| Name | Type | Description |
|---|---|---|
e | ol. | The tile load event. |