0

When I opening the website google map is opened. Then I scroll the googles map to increase zoom to find a more accurate place. Then I again go back to the previous page, but the googles map goes to the state same as it is open the first time. What will I do?

As map.setZoom(12); show the zoom level which is set in the javascript code, not the current zoom level.

  • Possible duplicate of [How to find current zoom level in a Google Map?](https://stackoverflow.com/questions/6385703/how-to-find-current-zoom-level-in-a-google-map) – devius May 22 '18 at 10:57
  • No, That question is regarding current zoom which is set in code. I am asking how to find zoom level of googles map when we zoom dynamically while running the application. – Varinder Singh Baidwan May 23 '18 at 05:01
  • You will find a similar question being answered here: https://stackoverflow.com/questions/6385703/how-to-find-current-zoom-level-in-a-google-map – Vasile Florin Vilsan May 23 '18 at 05:45
  • @VasileFlorinVilsan That is the exact same question I linked to. Also, did you even try the answers in the linked question? I'm pretty sure and event listener will work regardless if the zoom level is changed with your own code or by user input. – devius May 23 '18 at 09:28
  • Yes, I have tried it, but It doesn't work for me. It only gives me the static zoom value. – Varinder Singh Baidwan May 23 '18 at 10:29

0 Answers0