new FeatureSnapper( [optOptions])
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
optOptions |
Options |
<optional> |
Options. |
- Source:
Members
-
indexedFeatures
Index pour accéder rapidements aux infos des features Extents snapSourcesUids snapGroups
. -
Index pour accéder rapidements aux infos des features Extents snapSourcesUids snapGroups
- Source:
Methods
-
addFeature(feature [, optListen])
Add a feature to the collection of features that we may snap to.
-
Add a feature to the collection of features that we may snap to.
Parameters:
Name Type Argument Description featureol.Feature Feature.
optListenboolean <optional>
Whether to listen to the feature change or not Defaults to
true.- Source:
-
addSource(snapSource)
-
Parameters:
Name Type Description snapSourceObject paramétrage d'une snapSource
Properties
Name Type Argument Description groupsArray.<snapGroup> <optional>
groupes auquels appartientla source
sourceol.source.Vector <optional>
Source openlayer, attention a ne pas ajouter des sources composée des même features...
- Source:
Properties:
Name Type Description nameString nom du groupe auquel appartient la source
edgeBoolean accrochage aux ligne
vertexBoolean accrochage au extremités
Ajoute une source vecteur a surveiller
-
clear( [clearSystemSnap])
Nettoit les sources ecoutés
. -
Nettoit les sources ecoutés
Parameters:
Name Type Argument Default Description clearSystemSnapboolean <optional>
false doit-on effacer les sources systeme?
- Source:
-
indexSource_()
indexe la source de données
. -
indexe la source de données
- Source:
-
removeFeature(feature [, optUnlisten])
Remove a feature from the collection of features that we may snap to.
-
Remove a feature from the collection of features that we may snap to.
Parameters:
Name Type Argument Description featureol.Feature Feature
optUnlistenboolean <optional>
Whether to unlisten to the feature change or not. Defaults to
true.- Source:
-
removeSource(source)
retire une source de l'indexation
. -
retire une source de l'indexation
Parameters:
Name Type Description sourceol.source.Vector source openlayers
- Source:
-
segmentPolygonGemetry_(segments, geometry)
-
Parameters:
Name Type Description segmentsArray.<Array.<olcoordinateCoordinate>> Segments
geometryol.geom.Polygon Geometry.
- Source:
-
setMap(map)
Remove the interaction from its current map and attach it to the new map.
-
Remove the interaction from its current map and attach it to the new map. Subclasses may set up event handlers to get notified about changes to the map here.
Parameters:
Name Type Description mapol.PluggableMap Map.
- Source:
-
snapTo(pixel, pixel, pixelCoordinate, snapOptions)
-
Parameters:
Name Type Description pixelol.pixel.Pixel Pixel
pixelol.pixel.Pixel Pixel
pixelCoordinateol.coordinate.Coordinate Coordinate
snapOptionssnapOptions options for snap operation
- Source:
Properties:
Name Type Argument Description snapGroupsArray.<String> Noms des groupes (paramétrés via addSource) auquel s'accrocher
pixelToleranceNumber <optional>
tolérance pixel d'accroche objet
filterFnfunction <optional>
fonction pour exclure des features du snap
Returns:
Snap result
- Type
- Result | null