How can I use openstreetmaps on my JSP website to show location and address? For example how can I mark up different location information in the map or get data in database? |
There are various ways to to embed an OSM map into a website, such as using a static image, embedding the OSM "slippy map", or running your own servers. See Can I use these maps on my website?
How to put a marker on the map will depend on how you use the map :-). If you use OSM's "slippy map", see the question How do I add a marker to a map?. how can i retrieve the address from the mysql database and mark it on the map using my own marker and input some imformation,such as the address in the marker? can you show me some example code? thank you
(20 Apr '12, 16:04)
Henryyiu
|
What do you mean by "get data in database"? Do you want to download OSM data?
I wanna retrieve the address from the database and mark it on the map using my own marker and input some imformation,such as the address in the marker