2

How can I dynamically calculate the zoom that is suitable for my map? I want to use setZoom(zoom) but I don't want to add a fixed zoom for all maps, as I'm trying around , some zooms are just too zoomed for some cases and perfect for the others.

Any suggestions?

sisimh
  • 1,287
  • 3
  • 20
  • 37
  • Do you have a set of coordinates that you need to be visible? – antonio Oct 10 '16 at 14:36
  • I do, and it's working well when I have multi markers they all appear using zoom-to-include-markers, the issue only appears when it's only one marker it's just too zoomed, and if I set the zoom to a static number let's say 15, this 15 is perfect for some cases and for somecases it needs more of zooming in like 20 . @antonio got me? – sisimh Oct 10 '16 at 14:50

0 Answers0