Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
128
rated 0 times [  134] [ 6]  / answers: 1 / hits: 187172  / 15 Years ago, fri, may 29, 2009, 12:00:00

Is there a way to embed/mashup the OpenStreetMap in your page (like the way Google Maps API works)?



I need to show a map inside my page with some markers and allow dragging/zooming around, maybe routing.
I suspect there would be some Javascript API for this, but I can't seem to find it.



Searching gets me an API for access to raw map data, but that seems to be more for map editing; besides, working with that would be a heavy task for AJAX.


More From » api

 Answers
49

You need to use some JavaScript stuff to show your map. OpenLayers is the number one choice for this.



There is an example at http://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example and something more advanced at



http://wiki.openstreetmap.org/wiki/OpenLayers_Marker



and



http://wiki.openstreetmap.org/wiki/Openlayers_POI_layer_example


[#99429] Tuesday, May 26, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
collinisaaka

Total Points: 194
Total Questions: 105
Total Answers: 104

Location: Tonga
Member since Tue, Nov 30, 2021
2 Years ago
;