/mapview/interactions/snap

Methods

(inner) snap(mapview)

Sets up the snap interaction for the mapview.

Parameters:
NameTypeDescription
mapviewmapview
Properties
NameTypeAttributesDescription
mapview.layersobject

The map layers object.

mapview.interactionobject

The interaction object.

interaction.snapobject

The snap interaction configuration.

mapview.interaction.snap.layerstring<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:
NameTypeDescription
eol.TileLoadEvent

The tile load event.