Anthon Nilsson
Anthon Nilsson
Another logo that get corrupted at rendering:  Should look like:  [svg.zip](https://github.com/svg-net/SVG/files/15418282/svg.zip)
Now I know to check for dubble adds. But if by mistake adding the same feature twice, or two different with same id. Then if removing the snap from a...
Maybe something like this: ``` if (register) { if(this.featureChangeListenerKeys_[feature_uid]) { throw new Error('Feature already added'); } this.featureChangeListenerKeys_[feature_uid] = listen( feature, EventType.CHANGE, this.handleFeatureChange_, this, ); } ```
But do not the issue persist if adding same feature twice through a Collection that do not have the option unique?
I have a special case where I want some features to snap before/with higher priority then others. That is the reason why I do not use source. But a collection...
@ahocevar thanks for the tip! But that solution might behave a bit strange sometimes. If the first Snap changes the evt.pixel and evt.coordinate, then the following Snaps calculate the result...