Merge pull request #11978 from ahocevar/snap-delta-optional

Add snapToPointer option
This commit is contained in:
Andreas Hocevar
2021-02-06 12:57:17 +01:00
committed by GitHub
3 changed files with 51 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ title: Icon modification
shortdesc: Example using a Modify interaction to edit an icon.
docs: >
The icon on this map can be dragged to modify its location.
<p>The Modify interaction can be configured with a `layer` option. With this option, hit detection will be used to determine the modification candidate.</p>
<p>The Modify interaction can be configured with a `hitDetection` option. With this option, the modification candidate will not be determined by the `pixelTolerance`, but match the visual appearance of the geometry.</p>
tags: "vector, modify, icon, marker"
---
<div id="map" class="map"></div>