-
Notifications
You must be signed in to change notification settings - Fork 354
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
Use HTML Inputs outside of Map #208
Comments
It's possible, and not too much work, but not as a completely built-in feature. The inputs use the class There's some details and gotchas, but I think it could be extracted from If you're willing to use more experimental code, you can check out the |
Hi Per, thanks for the explanation. I would consider using the develop branch, especially if this is already implemented there. Could you give me an expectation on how stable the code is right now (or in approx 1-2 weeks, when we plan to integrate lrm) and when do you plan to release 3.0? We would like to use this in 1-2 months in production code (or at least release-candidate). Is there a massive change with 3.0 in the API or is it more or less straight forward? Also do you expect major changes in that branch before releasing it as 3.0? Best, |
Right now I'm not using LRM in any projects at work, which means LRM is spare-time-only project, which means I will most likely not spend much time on 3.0 in the coming month. If I were to find a project which could finance development of LRM, this would change. This also means I do not have a set plan for when 3.0 will be released. The current state of the During LRM's development, it has accumulated some cruft, and from the issue reports I get, it's apparent that some functionality should be re-worked, especially the API. So there will be some breaking changes when going to version 3, definitely. You can check the planned changes for 3.0 for more details. Given your constraints, I guess this makes it hard for you to use the |
Could you give me a quickstart to 3.0 with external inputs so I can test if it is stable enough for us? I really like the planned changes for 3.0 and would love to start with the new version from the beginning. |
The new idea in 3.0 is that the control no longer inherits from itinerary. Instead, the control can contain an itinerary component and/or a geocoder component. If not explicitly specified when the control is created, the control will still create an itinerary and geocoder component, and work exactly as before. What you want to do is to pass the option The Again, note that this is work in progress, and I've recently fixed a lot of issues in the |
Hi Per, sorry for my late reply. I just tried to run your develop branch using the example you provided here: https://github.com/perliedman/leaflet-routing-machine/tree/develop/examples unfortunately it does not work. I installed lrm using npm and used that files for the example. The result is basically nothing. I just get a gray rectangle (no tiles get loaded). The request to osrm is sent and I receive the result (in the console). I don't get an error or something. Any ideas what could go wrong here? Cheers, |
Sorry for taking so long to respond to this. I can't reproduce this, using latest Did you maybe forget to build the package? I usually only update the |
Hi guys, i found solution on Stack Overflow, changed him, and it's working (i think it's working properly)! :) |
@perliedman Yes you are right. I probably forgot to run @kuzvac Thanks this looks great. I thought about having my own HTML Inputs and not using the pre-given Block of LRM.
Now you would have what happens if you press the button or insert text into the input (wiring the model to the controller). Is this possible as well? |
hello, |
Hi,
I was wondering if it would be possible to use regular HTML inputs outside of the map. I have found the description on how to remove the controls (with the css hide), but I would love to have the routing Inputs to be outside of the map. Is this currently possible?
Best,
Robin
The text was updated successfully, but these errors were encountered: