Skip to content
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

Open
KevinTurnbull opened this issue Aug 11, 2021 · 0 comments
Open

Missing Event Passthrough #114

KevinTurnbull opened this issue Aug 11, 2021 · 0 comments

Comments

@KevinTurnbull
Copy link

KevinTurnbull commented Aug 11, 2021

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.

@KevinTurnbull KevinTurnbull changed the title Missing Event Passthroughu Missing Event Passthrough Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant