PrimeFaces.widget.GMap=PrimeFaces.widget.DeferredWidget.extend({init:function(a){this._super(a);this.renderDeferred()},_render:function(){this.map=new google.maps.Map(document.getElementById(this.id),this.cfg);this.cfg.fitBounds=!(this.cfg.fitBounds===false);this.viewport=this.map.getBounds();if(this.cfg.markers){this.configureMarkers()}if(this.cfg.polylines){this.configurePolylines()}if(this.cfg.polygons){this.configurePolygons()}if(this.cfg.circles){this.configureCircles()}if(this.cfg.rectangles){this.configureRectangles()}this.configureEventListeners();if(this.cfg.fitBounds&&this.viewport){this.map.fitBounds(this.viewport)}if(this.cfg.infoWindow){var a=this;google.maps.event.addListener(this.cfg.infoWindow,"domready",function(){a.loadWindow(a.cfg.infoWindowContent)})}},getMap:function(){return this.map},getInfoWindow:function(){return this.cfg.infoWindow},loadWindow:function(a){this.jq.find(PrimeFaces.escapeClientId(this.getInfoWindow().id+"_content")).html(a||"")},openWindow:function(c){var a=this.getInfoWindow();var b=this;PrimeFaces.ajax.Response.handle(c,null,null,{widget:a,handle:function(d){b.cfg.infoWindowContent=d;a.setContent('
'+d+"
");a.open(b.getMap(),b.selectedOverlay)}});return true},configureMarkers:function(){var a=this;for(var c=0;c