-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Event Passthrough #114
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/Asymmetrik/ngx-leaflet-draw/blob/1674dfd34f59f60f183dae7a1d978f0cda435801/src/leaflet-draw/core/leaflet-draw.directive.ts#L34
Unlike the other Outputs which have been hooked up - the DrawVertex event doesn't get attached to the event when it happens on the map. which would be expected among the list below
https://github.com/Asymmetrik/ngx-leaflet-draw/blob/1674dfd34f59f60f183dae7a1d978f0cda435801/src/leaflet-draw/core/leaflet-draw.directive.ts#L72
Some may be able to use a workaround of binding to the event directly.
map.on(L.Draw.Event.DRAWVERTEX, this.onDrawVertex.bind(this));
However; when I do that in my project - it introduces a bug when creating polygons - they start to complain of overlapping lines. I haven't been able to track that down.
The text was updated successfully, but these errors were encountered: