- Posts: 67
- Thank you received: 0
Responsive zoom?
- Harlock
- Topic Author
- Offline
- Senior Member
Less
More
1 year 8 months ago #14926
by Harlock
Responsive zoom? was created 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!
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.
- Dima
- Offline
- Platinum Member
1 year 8 months ago #14927
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Responsive zoom?
Hi
I didn't understand you, what do you have and what do you want
I didn't understand you, what do you have and what do you want
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.
- Harlock
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 67
- Thank you received: 0
1 year 8 months ago #14928
by Harlock
Replied by Harlock on topic Responsive zoom?
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?
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.
- Dima
- Offline
- Platinum Member
1 year 8 months ago #14929
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Responsive zoom?
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
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
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.
- Harlock
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 67
- Thank you received: 0
1 year 8 months ago #14930
by Harlock
Replied by Harlock on topic Responsive zoom?
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?
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.
- Dima
- Offline
- Platinum Member
1 year 8 months ago #14931
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic Responsive zoom?
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
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
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.260 seconds