I have show one OpenStreetMap in My Web Page and use Multiple Marker in this Map but some problem is occur one i will run this website the one error is occur the Error is You don't have permission to access /api/ on this server. so can you tell me the proper openstreetMap Api and the Code
This question is marked "community wiki".
asked 05 Sep '13, 10:18 Tanmoy Ghosh sleske |
I would suggest seeing whether https://help.openstreetmap.org/questions/136/how-do-i-render-my-own-maps-for-my-website or https://help.openstreetmap.org/questions/1778/how-can-i-display-a-map-with-multiple-markers or https://help.openstreetmap.org/questions/19537/create-map-with-markers answer your question. I would suggest looking at Leaflet and Openlayers options initially. answered 05 Sep '13, 11:12 EdLoach ♦ 1
Just to clarify the "API" point, unlike certain other large web-based mapping providers, there is no API that you need to call to display a map. OpenStreetMap does have an API, but that's primarily designed for mappers to put things into the database, not to display things already there. Generally speaking, if you want a simple customised OSM-based map you'd download a small data extact from OSM: http://planet.openstreetmap.org/ set up a tile server: http://switch2osm.org/serving-tiles/ and then set up a website using those tiles: http://switch2osm.org/using-tiles/ If you want to avoid the "serving tiles" part of that for now, you can point your site at an existing tile source, but make sure that you abide by the terms of use of that tile source. In the case of OSM-hosted tiles that's:
(05 Sep '13, 12:59)
SomeoneElse ♦
|
Please read first the API usage policy. Then decide if your "multiple markers" have to always use the latest data from OSM or if you can use some cached data store locally on your server (can be a JSON or XML file). If you want to get the latest data in OSM, you should use one of the alternative data providers listed in the API usage policy page. But then you will depend on a third party. It's up to you. answered 05 Sep '13, 10:33 Pieren |