Cannot change default zoom level with KML file

  • Augustas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 week ago #12305 by Augustas
Good evening,

I cannot change default map zoom level while KML file is loaded. I have searched about it, so apparently you have to set "preserveViewport" to "true", because map will always center and zoom to that KML file boundaries, and ignore Zh Google Maps settings for zoom levels.

Now I have found few suggestions and changes in code, but I have no idea how to do it with ZH Google maps.

Documentation that I found about "preserveViewport": developers.google.com/maps/documentation...cript/kmllayer?csw=1

I am sure it should be a simple fix, maybe I am missing something? Any help would be appreciated.

Thank you for your help!

A.

Please Log in or Create an account to join the conversation.

More
5 years 6 days ago #12306 by Dima
Hi.
Open paths details with your KML file.
Go to KML layer options.
Check value for "Layer Show Type".
I think you set it to zoom. In this case map will be zoomed to show KML file.
Set it to Unchange

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.103 seconds

Donate


Go to top