This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Showing specified map locations and zooming to fit

0
1

I need to quickly determine if OpenStreetMap will allow me to show a map with locations marked (e.g. pin drops) based on a list of supplied addresses and then zoom the map so all marked locations are visible.

Are there any examples that show how to do this?

asked 22 Apr '15, 00:05

DesertFoxAZ's gravatar image

DesertFoxAZ
11122
accept rate: 0%

edited 22 Apr '15, 00:50

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


One Answer:

3

are you speaking of a web map? Sure, that is possible (with some JS coding by you), geocode the addresses and then display the resulting coordinates as markers with your map display software. Telling the map display software to display a specific area should be possible too.

You can find examples e.g. here: http://leafletjs.com/examples.html . Also see how-can-i-display-a-map-with-multiple-markers. Maybe somebody else knows glued-together working examples …

answered 22 Apr '15, 00:49

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 22 Apr '15, 00:55

Thank you, I'll research it. I need to have a solution by Friday.

(22 Apr '15, 17:15) DesertFoxAZ

Source code available on GitHub .