function initMap(){"geolocation"in navigator?navigator.geolocation.getCurrentPosition(function(o){console.log(o.coords.latitude,o.coords.longitude);var e=o.coords.longitude,a=o.coords.latitude;mapLocation={lat:a,lng:e},map=new google.maps.Map(document.getElementById("map_location"),{zoom:4,center:mapLocation,mapTypeId:google.maps.MapTypeId.ROADMAP});new google.maps.Marker({position:mapLocation,map:map});center=map.getCenter()}):console.warn("Geolocation is not available")}var mapLocation={},map,center;!function(){$("#maps-header").on("click",function(){google.maps.event.trigger(map,"resize"),map.setCenter(center)})}();