Auto center and auto zoom on markers

More
6 years 8 months ago #11527 by Dima
Replied by Dima on topic Auto center and auto zoom on markers
OK.
I understand you.
In next release I'll add parameter to fit bounds based on placemarks like you show. I'll post you.

Don't forget support my developments: post review in JED , donate , help with translation ;)
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
  • New Member
More
6 years 8 months ago #11528 by clever
Replied by clever on topic Auto center and auto zoom on markers
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.

More
6 years 8 months ago #11532 by Dima
Replied by Dima on topic Auto center and auto zoom on markers
Hi.
I've done new release. Check extension manager

zhuk.cc/2018/03/21/zh-googlemap-new-feat...oom-and-auto-center/

Don't forget support my developments: post review in JED , donate , help with translation ;)
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
  • New Member
More
6 years 8 months ago - 6 years 8 months ago #11536 by clever
Replied by clever on topic Auto center and auto zoom on markers
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 8 months ago by clever.

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago - 6 years 8 months ago #11537 by Dima
Replied by Dima on topic Auto center and auto zoom on markers
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.

Don't forget support my developments: post review in JED , donate , help with translation ;)
Last edit: 6 years 8 months ago by Dima.
The following user(s) said Thank You: clever

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago - 6 years 8 months ago #11538 by Dima
Replied by Dima on topic Auto center and auto zoom on markers
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.

Don't forget support my developments: post review in JED , donate , help with translation ;)
Last edit: 6 years 8 months ago by Dima.
The following user(s) said Thank You: clever

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds
Powered by Kunena Forum