Hi, I have another question about OSM. On a server I have a system that tells me in which car park I can park if I give it an origin and a destination in coordinates. Now I would like a web application to have a visual representation of the use case. I'm using nodejs with express. For the moment I would like to know how I can put a map on my site and add the points of origin and destination to it and then send it to my server and tell me which parking lot to park. Thank you very much. asked 12 Jul '18, 08:49 Wolfindel aseerel4c26 ♦ |
https://wiki.openstreetmap.org/wiki/Deploying_your_own_Slippy_Map may help you. I do not know which library has the option to let the user set markers whose coordinates will be transferred to the server afterwards. I guess your goal is similar to the routing interface on http://www.openstreetmap.org/ or https://graphhopper.com/maps/ , so have a look at their code for inspiration. answered 13 Jul '18, 21:25 aseerel4c26 ♦ |
For a similar type project i used LeafletJS (https://leafletjs.com). You can check their doc and examples. I hope it might help you to find a solution. answered 14 Jul '18, 07:04 nasirkhan |
I answer myself because I have made progress on it. I am using OpenLayers for this. There are a lot of examples for him, but you have to fight a little bit. Some explanations are not of high quality. Open layers has examples and API documentation. It is used together with HTML and CSS so some basic notions of these would be nice. answered 13 Jul '18, 12:55 Wolfindel aseerel4c26 ♦ |