").append(s.html_a.call(this,o)));return t=this.o.controls_title,this.o.controls_title&&(t=l('').css(this.o.controls_applycss?{fontWeight:"bold",padding:"3px 10px 5px 0",fontSize:this.o.controls_on_map?"12px":"inherit"}:{}).append(this.o.controls_title)),this.html_element=l('').append(t).append(i),this.html_element}},n.prototype.controls={},n.prototype.create_objMap=function(){var t,o=0;for(t in this.o.styles)this.o.styles.hasOwnProperty(t)&&(0===o&&(this.o.map_options.mapTypeControlOptions={mapTypeIds:[p.maps.MapTypeId.ROADMAP]}),o++,this.o.map_options.mapTypeControlOptions.mapTypeIds.push("map_style_"+o));if(this.loaded)this.oMap.setOptions(this.o.map_options);else try{this.map_div.css({position:"relative",overflow:"hidden"}),this.canvas_map=l("").addClass("canvas_map").css({width:"100%",height:"100%"}).appendTo(this.map_div),this.oMap=new p.maps.Map(this.canvas_map.get(0),this.o.map_options)}catch(t){this.debug("create_objMap::"+this.map_div.selector,t.toString())}for(t in o=0,this.o.styles)this.o.styles.hasOwnProperty(t)&&(o++,this.oMap.mapTypes.set("map_style_"+o,new p.maps.StyledMapType(this.o.styles[t],{name:t})),this.oMap.setMapTypeId("map_style_"+o))},n.prototype.add_markers_to_objMap=function(){var t,o,i=this.o.type||"marker";if("marker"===i)for(t=0;tthis.maxZIndex?t.zIndex:this.maxZIndex,t.image&&(t.icon=new p.maps.MarkerImage(t.image,new p.maps.Size(t.image_w||32,t.image_h||32),new p.maps.Point(0,0),new p.maps.Point((t.image_w||32)/2,(t.image_h||32)/2))),t},n.prototype.create_objCircle=function(t){var o=l.extend({},t),i=l.extend({},this.o.stroke_options),s=l.extend({},this.o.circle_options);return l.extend(i,t.stroke_options||{}),l.extend(o,i),l.extend(s,t.circle_options||{}),l.extend(o,s),o.center=t.position,o.draggable=!1,o.zIndex=0
').css(this.o.controls_applycss?{margin:"5px"}:{}),o=l(this.get_html_controls()).css(this.o.controls_applycss?{background:"#fff",padding:"5px",border:"1px solid rgb(113,123,135)",boxShadow:"rgba(0, 0, 0, 0.4) 0px 2px 4px",maxHeight:this.map_div.find(".canvas_map").outerHeight()-80,minWidth:100,overflowY:"auto",overflowX:"hidden"}:{}),t.append(o),this.oMap.controls[this.o.controls_position].push(t.get(0))):(this.controls_wrapper.empty(),this.controls_wrapper.append(this.get_html_controls()))},n.prototype.init_map=function(){var i=this;this.Polyline&&this.Polyline.setMap(null),this.Polygon&&this.Polygon.setMap(null),this.Fusion&&this.Fusion.setMap(null),this.directionsDisplay&&this.directionsDisplay.setMap(null);for(var t=this.markers.length-1;0<=t;--t)try{this.markers[t]&&this.markers[t].setMap(null)}catch(t){i.debug("init_map::markers::setMap",t.stack)}this.markers.length=0,this.markers=[];for(t=this.circles.length-1;0<=t;--t)try{this.circles[t]&&this.circles[t].setMap(null)}catch(t){i.debug("init_map::circles::setMap",t.stack)}this.circles.length=0,this.circles=[],this.o.controls_on_map&&this.oMap.controls&&this.oMap.controls[this.o.controls_position].forEach(function(t,o){try{i.oMap.controls[this.o.controls_position].removeAt(o)}catch(t){i.debug("init_map::removeAt",t.stack)}}),this.oBounds=new p.maps.LatLngBounds},n.prototype.perform_load=function(){1===this.ln?(this.o.map_options.set_center?this.oMap.setCenter(new p.maps.LatLng(this.o.map_options.set_center[0],this.o.map_options.set_center[1])):(this.oMap.fitBounds(this.oBounds),this.ViewOnMap(1)),this.o.map_options.zoom&&this.oMap.setZoom(this.o.map_options.zoom)):0===this.ln?(this.o.map_options.set_center?this.oMap.setCenter(new p.maps.LatLng(this.o.map_options.set_center[0],this.o.map_options.set_center[1])):this.oMap.fitBounds(this.oBounds),this.oMap.setZoom(this.o.map_options.zoom||1)):(this.oMap.fitBounds(this.oBounds),"number"==typeof+this.o.start&&0