Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20690

    hello

    i have checked others topics about this and didn’t find solutions (in my case i use google map in vertical tabs.)

    so i would like to try this one.

    i just buy a google map plugin and it talks about the tabs google map bug :

    Quote:

    To fix your theme to show google maps correctly, you have to find in your theme’s javascript file, the piece of code where tabs are handled, where a tab become active and you have to add there this small workaround:

    Code:
    var div = $(‘div[id^=”responsive_map_”]’);

    if (div.length != 0) {
    var gmap = div.data(‘gmap’).gmap;
    google.maps.event.trigger(gmap, ‘resize’);
    div.gMap(‘fixAfterResize’);
    }

    To my mind the answer should be in the js/avia.js file but which line ??

    thx fraktale

    #108687

    The tabs function can be found in avia.js – search for:

    $.fn.avia_sc_tabs= function(options)

    Tbh I’m also not sure where you need to insert the code. My personal guess is that you can insert it after following line:

    if(tabs.length < 2) return;

    but depending on the map script the solution can be more complex too. In this case you might want to show the function to the plugin author and ask him where you need to insert the code.

    #108688

    That didn’t work but I sent the file to the plugin support and they find where the bug was…

    thanks anyway

    #108689

    Hi!

    Glad that they could help you :)

    Regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘GOOGLE MAP ISSUE WITH SHORTCODE VERTICAL TABS [AVIA-FRAMEWORK]’ is closed to new replies.