-
Notifications
You must be signed in to change notification settings - Fork 6
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
The plugin doesn't work #2
Comments
I'm still using it in production, can't find any issues. Whats the problem you see (console output or something...)? |
How to use the plugin? I'm lost here |
This is a plugin for Leaflet + Leaflet Routing Machine, so you need to have setup Leaflet and Leaflet Routing Machine at least to be able to use this plugin, without them, it won't work. After setup you'll need an account for TomTom Developer Portal, where you fetch your API-Key to access the service of TomTom. After that, just follow the usage from the readme. |
like this? (I have the tomtom key) <script src="http://cdn.leafletjs.com/leaflet-0.7.1/leaflet.js"></script> <script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js"></script> <script src="https://unpkg.com/leaflet-routing-machine@latest/dist/leaflet-routing-machine.js"></script>
Error : [options is not defined], [require is not defined], [L.Routing.TomTom is not a construct] |
well, as you'll need to build this project to be able to use it in webbrowser, I already made a shim repository, where I already made this step: https://github.com/mrohnstock/leaflet-routing-machine A sample would be something like this:
Have not tested this sample, but I guess you should get the drill... Working samples for Leaflet-Routing-Machine could be found on the following page: https://www.liedman.net/leaflet-routing-machine/tutorials/basic-usage/ |
I do believe my problem is not knowing where/how to get lrm-tomtom.js, after a few small adjustment, the code you wrote is working. Thank you so much.. |
The plugin doesn't work in 2019. Help me!!!
The text was updated successfully, but these errors were encountered: