Skip Navigation

[Resolved] Map zoom changes drastically when map is in an accordion element

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by ljubisaT 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2244349

Hi,

I have an issue when using map view if the map is in an accordion element. The zoom gets way to high as you can see here: hidden link

I have tested the map and when I put it outside of the accordion, without changing any parameters on the map itself, it shows everything properly. If you can help me with this I would really appreciate it.

Regards,
Ljubisa

#2244843

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Do you mean that in the accordion when we click on the accordion the map should display in full size with zoom in?

#2245095

Yes, when a user clicks and opens the accordion, the map should be showing pins on map zoom level 7

#2245097

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

What if you try to adjust the zoom level with the maps setting? Does that helps?

#2245103

I already se the zoom level to 7 in the map settings, but it has no effect while the map is in the accordion.

#2245121

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As you already acknowledged that it works when you add the map outside the accordion. This could be the conflict when using accordion, let me see if I can offer you any workaround when you display the map using accordion.

Can you please share admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2245197

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I checked and the map does displays Ok when you activate the accordion setting "Open By Default". And Map does renders OK. You will have to check with your accordion plugin author for further help as we do not know how accordion is rendered. If there is a callback, you can refresh the map using the following line of code:

WPViews.view_addon_maps.reload_map('map-25');
#2245341

Thank you very much for your help. I will contact the accordion developer and try to see if they can help.