Classes
Type Definitions
-
A function that takes a
FeatureorRenderFeatureand aLayerand returnstrueif the feature may be translated orfalseotherwise. -
Options{Object}
-
Properties:
Name Type Description conditionCondition | undefined A function that takes a
MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isalways.featuresCollection<Feature> | undefined Features contained in this collection will be able to be translated together.
layersArray<Layer> | function | undefined A list of layers from which features should be translated. Alternatively, a filter function can be provided. The function will be called for each layer in the map and should return
truefor layers that you want to be translatable. If the option is absent, all visible layers will be considered translatable. Not used iffeaturesis provided.filterFilterFunction | undefined A function that takes a
Featureand anLayerand returnstrueif the feature may be translated orfalseotherwise. Not used iffeaturesis provided.hitTolerancenumber
(defaults to 0)Hit-detection tolerance. Pixels inside the radius around the given position will be checked for features.