• Here is the code:

    <script type="text/javascript">
    
        jQuery(document).ready(function($) {
        var mapdiv = jQuery("#responsive_map_<?php echo $mapid; ?>");
        mapdiv.gMapResp({
            maptype: google.maps.MapTypeId.ROADMAP,
            zoom: <?php echo $atts['zoom']; ?>,
            markers: <?php echo $markers; ?>,
            panControl: true,
            zoomControl: true,
            draggable: true,
            scrollwheel: true,
            mapTypeControl: true,
            scaleControl: true,
            streetViewControl: true,
            overviewMapControl: true,
            styles: <?php echo $atts['style']; ?>
         });
      resmap_simp_fixDisplayInTabs(mapdiv, 'true');
      });
      window.onresize = function() {
            jQuery('.responsive-map').each(function(i, obj) {
                data2 = jQuery(this).data2('gmap');
                if (data) {
                    var gmap = data2.gmap;
                    google.maps.event.trigger(gmap, 'resize');
                    jQuery(this).gMapResp('fixAfterResize');
                }
            });
      };
      </script>

    Causes Jquery conflict with ALL! the plug-ins LightBox (for pictures)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author greenlline

    (@greenlline)

    As you can see in this screenshot of my admin dashboard:
    http://yava.ro/images/lightbox.png
    a lightbox plugin and the map plugin work very well together, no conflict. The live website with both plugins enabled: http://yava.ro/ and the lightbox: http://yava.ro/usage/ No conflict, as you can see.

    I see a “data2” in your code. There is no such thing in my plugin code, I think you have modified somehow the code, thus creating some conflicts.

    If you wish, I can help you further if you give me a link to your live page that has the map/the conflict/the lightbox and the name of the exact lightbox plugin you are using…

    Thread Starter jozess

    (@jozess)

    Yes, I tried to change, but to no avail.
    Before editing your code, I pereproval 15 plug-ins LightBox.
    None of them did not work correctly with LightBox.

    I was lucky I found. It https://ww.wp.xz.cn/plugins/fancy-box/

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Conflict Jquery’ is closed to new replies.