var tlJmapCrossHair=null;(function(a){if(typeof GOverlay=="undefined"){return}tlJmapCrossHair=function(b){var c={updateUrl:"",radius:20,color:"0000c000",padding:0};this.options=a.extend({},c,b)};tlJmapCrossHair.prototype=new GOverlay();tlJmapCrossHair.prototype.initialize=function(b){this.map=b;this.crshr=a("<img/>");this.crshr.addClass("tlJmapCrosshair");this.crshr.css("position","absolute");this.redraw(true);a(b.getPane(G_MAP_MAP_PANE)).append(this.crshr)};tlJmapCrossHair.prototype.remove=function(){this.crshr.remove()};tlJmapCrossHair.prototype.redraw=function(c){if(typeof c=="undefined"){c=false}var b=this.map.fromLatLngToDivPixel(this.map.getCenter());var d=this.options.radius+this.options.padding;this.crshr.css("top",b.y-d);this.crshr.css("left",b.x-d);if(!c){return}this.crshr.attr("src",this.options.updateUrl+"/"+this.options.radius+"-"+this.options.color+".png");this.crshr.width(d*2);this.crshr.height(d*2)};tlJmapCrossHair.prototype.setRadius=function(b){if(this.radius!=b){this.options.radius=b;this.redraw(true)}}})(jQuery);
