Maps in tabs don't setCenter

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #11125



    we are using Your plugin with Visual Composer and we have six maps in tabs, as
    Asia Pacific
    Latin America
    Middle East
    North America

    and all maps has multiple markers to point out our distributors locations. I have added (into footer.php)

    jQuery(‘.vc_tta-tabs a’).on(‘’, 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?-



    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(‘’, function(){

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Thanks so much! Please Enter Your Info Below To Get PRO Discount and Gifts