Evt_Create_Plot.prototype=new Evt_Draw_Rectangle;function Evt_Create_Plot(){this._jg=new jsGraphics(_CANVAS_ID)}Evt_Create_Plot.prototype.do_operation=function(){try{var k=(this._curr_x<=this._x_click)?this._curr_x:this._x_click;var g=(k+this._w);var j=(this._curr_y<=this._y_click)?this._curr_y:this._y_click;var f=(j+this._h);var a=_MAP_WRAPPER.convert_to_geo((k+g)/2,(j+f)/2);var b=_MAP_WRAPPER.convert_to_geo(g,f)[0]-_MAP_WRAPPER.convert_to_geo(k,j)[0];var l=_MAP_WRAPPER.convert_to_geo(k,j)[1]-_MAP_WRAPPER.convert_to_geo(g,f)[1];var h=false;for(var c=0;c<_LIST_OF_EXTRA_GRAPHICS.length;c++){if(_LIST_OF_EXTRA_GRAPHICS[c] instanceof Planimetry_Frame_Symbol){_LIST_OF_EXTRA_GRAPHICS[c]=new Planimetry_Frame_Symbol(new Point(a[0],a[1]),b,l);h=true;break}}if(!h){_LIST_OF_EXTRA_GRAPHICS.push(new Planimetry_Frame_Symbol(new Point(a[0],a[1]),b,l))}clear_extra_graphics(_SELECTION_DRAWING_ENGINE);draw_extra_graphics(false,_SELECTION_DRAWING_ENGINE);generic_gis_toolbar_select_button(null);set_map_cursor("move");register_mouse_down_handler(evt_move_planimetry_frame);evt_but_open_plot(false,"PDF",2000,"","","")}catch(d){throw"Evt_Create_Plot.do_operation(): "+d}};
