-
Zh GoogleMap
-
Component
-
Responsive zoom?
Responsive zoom?
-
Harlock
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 59
-
Thank you received: 0
-
-
2 months 2 weeks ago #14926
by Harlock
Hi there,
I found a way to make a smaller size for the map itself with CSS.
But I'm wondering if there's a way to change the default zoom as well with CSS for responsive purposes.
(and maybe max and min zoom).
Thank you!
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4512
-
Thank you received: 454
-
-
-
-
-
2 months 2 weeks ago #14927
by Dima
Hi
I didn't understand you, what do you have and what do you want
Please Log in or Create an account to join the conversation.
-
Harlock
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 59
-
Thank you received: 0
-
-
2 months 2 weeks ago #14928
by Harlock
Oh OK, sorry.
Well, I made a different height for the map div when it's displayed on a wide desktop screen and when, for instance, it's displayed on a tablet or smartphone (because the desktop map would be too high on a small device).
The fact I can chose the default zoom size makes it perfect on a wide screen, but of course I'd like to be able to chose a smaller default zoom on smartphone, because the map div is smaller (so that it shows more or less the same part of the world).
Am I clearer?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4512
-
Thank you received: 454
-
-
-
-
-
2 months 2 weeks ago #14929
by Dima
It's clear now.
In current version you can't control map zoom depended on map div size.
I can think of it like
- create map override
- in additional section add some parameters, like zoom and width
- when map is loaded change zoom based on current size and parameters above
I do not promise that I implement it in nearest future, but can try to add this features when I have more free time
Please Log in or Create an account to join the conversation.
-
Harlock
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 59
-
Thank you received: 0
-
-
2 months 2 weeks ago #14930
by Harlock
Thank you for your feedback.
Do you mean I should create 2 instances of the map on the page and then hide/show one of them at a time?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4512
-
Thank you received: 454
-
-
-
-
-
2 months 2 weeks ago #14931
by Dima
If I implement feature change zoom on div size - no. You will need only create map override with appropriate settings, assign it to map in advanced options tab.
If you create 2 maps and will show it on different conditions - you will call maps API 2 times. And you can break your API key free limit
Please Log in or Create an account to join the conversation.
-
Zh GoogleMap
-
Component
-
Responsive zoom?
Time to create page: 0.069 seconds