');infowindow.open(map_map_67ec7825e2570,marker_map_67ec7825e2570);google.maps.event.addListener(marker_map_67ec7825e2570, 'click', function() { infowindow.open(map_map_67ec7825e2570,marker_map_67ec7825e2570); });} catch(e){}; google.maps.event.trigger(map_map_67ec7825e2570, 'resize'); $(window).on('resize', function(){ google.maps.event.trigger(map_map_67ec7825e2570, 'resize'); if(map_map_67ec7825e2570!=null) { map_map_67ec7825e2570.setCenter(coordinate_map_67ec7825e2570); } }); $('.ui-tabs').on('tabsactivate', function(event, ui) { if($(this).find('.porto-map-wrapper').length > 0) { setTimeout(function(){ $(window).trigger('resize'); },200); } }); $('.ui-accordion').on('accordionactivate', function(event, ui) { if($(this).find('.porto-map-wrapper').length > 0) { setTimeout(function(){ $(window).trigger('resize'); },200); } }); $(document).on('onPortoModalPopupOpen', function(){ if($(map_map_67ec7825e2570).parents('.porto_modal-content')) { setTimeout(function(){ $(window).trigger('resize'); },200); } }); function toggleBounce() { if (marker_map_67ec7825e2570.getAnimation() != null) { marker_map_67ec7825e2570.setAnimation(null); } else { marker_map_67ec7825e2570.setAnimation(google.maps.Animation.BOUNCE); } } } )( window.jQuery ); }; if ( window.jQuery ) { jQuery( document ).ready(function() { porto_init_map(); } ); } else { document.addEventListener( 'DOMContentLoaded', porto_init_map ); } window.addEventListener( 'load', function() { setTimeout( function() { jQuery( window ).trigger( 'resize' ); }, 200 ); } ); } )();