piermario
7/16/2018 - 9:07 PM

Custom zoom on MyListing Theme

jQuery(document).ready(function($) {
    if ( $('.single-listing .map-block').length ) {
        var mapZoom = setInterval( function() {
            if ( CASE27_Maps.maps.length ) {
                CASE27_Maps.maps[0].map.setZoom(15);
                clearInterval(mapZoom);
            }
        }, 500 );
    }
});