mmarcon / jhere

jHERE - Maps made easy
MIT License
255 stars 51 forks source link

add zoomToMarkers functionality #28

Closed chrkaatz closed 10 years ago

chrkaatz commented 10 years ago

if there are more than one marker in a group, zoom to them, by calling $('.selector').jHERE('zoomToMarkers'); which will change the viewport to cover all markers on the map. This functionality is also shown in the markers example.

Additionally there is a function $('.selector').jHERE('zoomToMarkers', true); which keeps the current center but zooms the map out, to also show all markers on the map.

Also fixed a hint issue.

mmarcon commented 10 years ago

Do I see a console.log in the code you added? :p