-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
changing url at runtime #242
Comments
@joleeee As far as I remember, no. You'd have to re-instantiate the Directions object with a new URL instead. Otherwise, it should also be pretty straightforward to implement on the library level. So feel free to open a PR, if you decide to work on this. UPD. If you need to "recalculate path", then it's even simpler, I bet. You just save the current waypoints' positions before re-instantiating the plugin, and then feed them back to the new instance with |
Given that it only happens with this package, I'm thinking it might be a package.json type of bug. Maybe the dependency is not pruned when building for dev, or when building for production in the standard way. I will try making a small MVP by the weekend |
I'd argue that the |
is this supported? update the api url and recalculate path
The text was updated successfully, but these errors were encountered: