- Posts: 1
- Thank you received: 0
Cannot change default zoom level with KML file
- Augustas
- Topic Author
- Offline
- New Member
Less
More
5 years 7 months ago #12305
by Augustas
Cannot change default zoom level with KML file was created 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.
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.
- Dima
- Offline
- Platinum Member
5 years 7 months ago #12306
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Cannot change default zoom level with KML file
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
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.165 seconds