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

Error in routing events documentation #34

Open
canadaka opened this issue Dec 18, 2014 · 0 comments
Open

Error in routing events documentation #34

canadaka opened this issue Dec 18, 2014 · 0 comments

Comments

@canadaka
Copy link

The routing events documentation here
https://github.com/Turistforeningen/leaflet-routing#lrouting-events
suggests the events are bound to routing.on() where the code binds them to the map object:
https://github.com/Turistforeningen/leaflet-routing/blob/gh-pages/src/L.Routing.Draw.js#L84

Also the documentation says one of the events is "routing:draw-stop" but in the code its "routing:draw-end".

So binding events to the routing object wasn't working, but binding to map does:
map.on('routing:draw-end')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants