dio-v
9/7/2016 - 9:15 AM

Google map scroll block

Google map scroll block

    $('.googleMap').parents('.row').first().addClass('wide').css({ 'position': 'relative' }).prepend('<a href="#" class="mapBlock"><img src="/img/1x1.gif" alt="click first to scroll-zoom" ></a>');
    // Disable scroll zooming and bind back the click event
    $('.mapBlock').on('click', function () {
        var vT = $(this);
        vT.hide();
        $('.googleMap').on('mouseleave', function () {
            vT.show();
        });
        return false;
    });