function uberGoogleMap_initialize(){googleMapsAPI_loaded=!0;for(var a=0;a0){var g=this.settings.markers.length,i=null,j=0;1==parseInt(this.settings.animateMarkers)&&(i=google.maps.Animation.DROP,j=150);var k=0;b.markerInterval=setInterval(function(){var c=b.settings.markers[k],d={position:{lat:parseFloat(c.lat),lng:parseFloat(c.lng)},title:c.title,animation:i};"default"!=c.icon&&(d.icon=c.icon_url);var e=new google.maps.Marker(d);if(a.uber_google_maps_markers[b.settings.markers[k].id]=e,b.markers[b.settings.markers[k].id]=e,e.setMap(b.map),k++,k==g&&(clearInterval(b.markerInterval),b.settings.infoWindows.length>0))for(var f=b.settings.infoWindows.length,j=0;f>j;j++){var l='
';b.settings.infoWindows[j].title.length>0&&(l+='
'+b.settings.infoWindows[j].title+"
"),b.settings.infoWindows[j].subtitle.length>0&&(l+='
'+b.settings.infoWindows[j].subtitle+"
"),b.settings.infoWindows[j].phone.length>0&&(l+='
'+b.settings.infoWindows[j].phone+"
"),b.settings.infoWindows[j].address.length>0&&(l+='
'+b.settings.infoWindows[j].address+"
"),b.settings.infoWindows[j].email.length>0&&(l+='
'+b.settings.infoWindows[j].email+"
"),b.settings.infoWindows[j].web.length>0&&(l+='"),b.settings.infoWindows[j].content.length>0&&(l+=b.settings.infoWindows[j].content),l+="
";var m=!1;1==parseInt(b.settings.infoWindows[j].open)&&(m=!0);var n=new google.maps.InfoWindow({content:l,is_open:m}),o=b.settings.infoWindows[j].marker_id;b.info_windows[o]=n,google.maps.event.addListener(b.markers[o],b.settings.showInfoWindowsOn,b.toggle_window),1==parseInt(b.settings.infoWindows[j].open)&&(n.open(b.map,b.markers[o]),h=n,h.is_open=!0)}},j)}1==parseInt(this.settings.fullscreen_enabled)&&0==parseInt(this.settings.is_fullscreen)&&(this.el.append('
Go Fullscreen
'),a("#go-fullscreen").on("click",function(){b.go_fullscreen()})),1==parseInt(this.settings.fullscreen_enabled)&&1==parseInt(this.settings.is_fullscreen)&&(this.el.append('
Close Fullscreen
'),a("#close-fullscreen").on("click",function(){b.close_fullscreen()})),0==parseInt(this.settings.is_fullscreen)&&uberGoogleMap_loadCallback(b.map)}},toggle_window:function(a){var b=this.map.map_id,c=ugm_maps[b],e=a.latLng,f=e.lat()+"_"+e.lng();"click"==c.settings.showInfoWindowsOn&&c.info_windows[f].is_open?(c.info_windows[f].is_open=!1,c.info_windows[f].close(),h=d):(h!=d&&(h.is_open=!1,h.close()),c.info_windows[f].is_open=!0,c.info_windows[f].open(c.map,c.markers[f]),h=c.info_windows[f])},go_fullscreen:function(){var b="";a(".uber-google-maps-fullscreen-wrap").remove(),a("body, html").removeClass("uber-google-maps-fullscreen"),b+='
',b+='
',b+="
",a("body").prepend(b),a("body, html").addClass("uber-google-maps-fullscreen");var c=this.settings;c.is_fullscreen=1,c.responsive=1,c.height="100%",a("#uber-google-maps-fullscreen-map").UberGoogleMaps(c)},close_fullscreen:function(){a(".uber-google-maps-fullscreen-wrap").remove(),a("body, html").removeClass("uber-google-maps-fullscreen")}}),a.fn[f]=function(a,b,c){return editorMode=c,"undefined"!=typeof b&&(uberGoogleMap_loadCallback=b),uberGoogleMap_started_loading||(uberGoogleMap_started_loading=!0,1==parseInt(a.load_api,10)?uberGoogleMap_loadScript(a.language,a.auto_sign_in):googleMapsAPI_loaded=!0),this.each(function(){uberGoogleMap=new e(this,a),googleMapsAPI_loaded?uberGoogleMap.init():ugm_maps_to_load.push(uberGoogleMap)})}}(jQuery,window,document);