-
Notifications
You must be signed in to change notification settings - Fork 353
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
Read the global configuration, not the local one #456
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
it's been a while since I worked with this myself, but as far as I remember, geometryOnly
is an option passed directly to the route
method, not set on the router. See for example
leaflet-routing-machine/src/control.js
Line 257 in bb4408e
geometryOnly: true, |
this.options
instead would mean that the geometryOnly
would be discarded in this call.
Do you agree? Which problem are you trying to solve with this PR?
Hi. This is the code I'm using
If I pass Perhaps I'm mistaken in the way to hide the legend? Thanks! |
Alright, it's interesting to note that you can achieve that using If I understand correctly, you should look at #20 for techniques to hide the itinerary. |
I tried In any case, I tried passing it as you suggested and it didn't work, which takes me back to this PR :) |
The thing is, as it is now, this PR breaks the original purpose of the I know hiding the itinerary isn't ideally implemented as it is now, but I don't see this PR as the way forward to improve that. Using a CSS rule is probably the easiest, and it definitely does work as long as you put the rule in the correct place and use the correct specificity. Other than that, improving the functionality offered by |
Agreed that this is not the right way to do what I want, So I worked around that in my code. For the CSS approach, what would the correct place be? In my tests, passing |
Hello everyone, _ <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>_import L from 'leaflet'; ERROR TypeError: Cannot read property 'control' of undefinedMy Code where --> var polylineRouteB = L.Routing.control({** |
Local
options
contains the waypoint list, butgeometryOnly
is in the globaloptions
object