-
Zh GoogleMap
-
Component
-
Auto center and auto zoom on markers
Auto center and auto zoom on markers
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
6 years 1 month ago #11527
by Dima
OK.
I understand you.
In next release I'll add parameter to fit bounds based on placemarks like you show. I'll post you.
The following user(s) said Thank You: clever
Please Log in or Create an account to join the conversation.
-
clever
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
6 years 1 month ago #11528
by clever
Thank you so much, great!
I really think it's a nice addition to your versatile component and other users might appreciate it too.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
-
clever
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
6 years 1 month ago - 6 years 1 month ago #11536
by clever
Hi Dima,
that's crazy...never expected you would do this so quickly.
Works perfectly and with only one option to activate...great!
I would only add one thing:
right now the centering and zooming does not react to window resizing or on a mobile device when you change the device orientation.
Apparently a listener can add that functionality...don't ask me...I'm not a programmer...I only find that stuff
stackoverflow.com/questions/18444161/goo...ps-responsive-resize
Maybe you can have a look and decide if it's feasible and useful.
Thanks for your work an support!
Last edit: 6 years 1 month ago by clever.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
6 years 1 month ago - 6 years 1 month ago #11537
by Dima
In your example, when you rotate device, this code, I think, just save map center as is.
But what do you want, what do you expect?
I checked my map, and I can see that my map expands width, and you can see the same map.
Last edit: 6 years 1 month ago by Dima.
The following user(s) said Thank You: clever
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
6 years 1 month ago - 6 years 1 month ago #11538
by Dima
If you expect change width and height - I wrote you. You can set 0 for map width and height to achieve 100%
And you need to manage set appropriate height to your div with map (by creating your own template or using CSS).
In this case you will get responsive map by width and height.
For example, set just width to 0 and you'll see responsive by width.
For height it's hard, but you can.
Last edit: 6 years 1 month ago by Dima.
The following user(s) said Thank You: clever
Please Log in or Create an account to join the conversation.
-
Zh GoogleMap
-
Component
-
Auto center and auto zoom on markers
Time to create page: 0.084 seconds