Tagged: visual composer
- This topic has 1 reply, 2 voices, and was last updated 6 years, 6 months ago by
mila_support.
- AuthorPosts
- October 28, 2016 at 15:31 #11125
AnonymousInactiveHi,
we are using Your plugin with Visual Composer and we have six maps in tabs, as
Africa
Asia Pacific
Europe
Latin America
Middle East
North Americaand all maps has multiple markers to point out our distributors locations. I have added (into footer.php)
jQuery(‘.vc_tta-tabs a’).on(‘show.vc.tab’, function(){
google.maps.event.trigger(window, ‘resize’, function() {});
});so the maps works when changing tab. And maps works BUT maps does not set center correctly. Every map is shortocoded into Visual Composer’s tab as text e.g.
[google_map_easy id="4" map_center="-34.34747; 18.9205099" zoom="3"]I tryed to use map_center=”marker_id” (where marker_id is … marker ID) but it didn’t help.
What can I do? Please help.
-jukka m??tt?-
October 31, 2016 at 11:44 #11146
mila_supportMemberHello!
To use maps in tabs correctly you need to:
1) Add id of your map to the tag of tab: data-map_id=”1″
2) To write the following in the js function:
jQuery(‘.vc_tta-tabs a’).on(‘show.vc.tab’, function(){
gmpGetMapById(1).refresh();
});Unfortunately we can’t say more without the link to your website and access to the admin area. If your problem is still actual, please contact us in the Internal Support and we will try to help you.
- AuthorPosts
- You must be logged in to reply to this topic.