-
Forum
-
Zh GoogleMap
-
Component
-
Cannot change default zoom level with KML file
Cannot change default zoom level with KML file
-
Augustas
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 1
-
Thank you received: 0
-
-
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.
Less
More
-
Posts: 4606
-
Thank you received: 460
-
-
-
-
-
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
Please Log in or Create an account to join the conversation.
-
Forum
-
Zh GoogleMap
-
Component
-
Cannot change default zoom level with KML file
Time to create page: 0.103 seconds