e2706414f6297bd9766a95ac8d49679509bf44c5.svn-base 19 KB

1
  1. var map=null,zMap=function(){var b=this,e=null,h=null,t=null,f=[],k=[],v=[],E=[],F=[],x=null,p=null,y=[],u=[],B=[],C=[],G=0,w=[];this.resolveUrl=function(){var a=window.location.search,a=decodeURI(decodeURI(a.substring(1,a.length))).split("\x26"),d={},c;for(c in a){var b=a[c].split("\x3d");d[b[0]]=b[1]}return d};this.getFormatDateTimeByMess=function(a){var d=a.getMonth()+1;10>d&&(d="0"+d);var c=a.getDate();10>c&&(c="0"+c);var b=a.getHours();10>b&&(b="0"+b);var e=a.getMinutes();10>e&&(e="0"+e);var g=a.getSeconds();10>g&&(g="0"+g);return{year:a.getFullYear(),md:d+"/"+c,hm:b+":"+e,alltime:a.getFullYear()+"-"+d+"-"+c+" "+b+":"+e+":"+g}};this.loadZmap=function(a,d){$(document).ready(function(){$(document).bind("contextmenu",function(a){return!1})});p=a;e=d;b.initZmap(a,d);b.makedot_twinkle()};this.setZmap=function(a){$(h).attr("src","/nwyj/upload/icingZmaptile/"+a.ZMAP_IMG+".png").width(a.SAVE_ZMAP_IMG_WIDTH);$(h).css({left:parseFloat(a.offsetX),top:parseFloat(a.offsetY)})};this.initZmap=function(a,d){h=document.getElementById(a);h.addEventListener?(h.addEventListener("mousewheel",b.MouseWheelHandler,!1),h.addEventListener("DOMMouseScroll",b.MouseWheelHandler,!1)):h.attachEvent("onmousewheel",b.MouseWheelHandler)};this.MouseWheelHandler=function(a){a=window.event||a;a=Math.max(-1,Math.min(1,a.wheelDelta||-a.detail));var d=$(h).offset().top,c=$(h).offset().left,e=$(h).width();h.style.width=Math.max(50,Math.min(2800,h.width+30*a))+"px";var q=$(h).width();for(a=0;a<k.length;a++)for(var g in k[a])if(0==k[a][g].point.length)k.splice(a,1);else{var f=0,r=0;$("."+g).remove();for(var m=0;m<k[a][g].point.length;m++){var n=0,z;q>e?(n=q/e,z=(k[a][g].point[m].x-c)*n+c,n=(k[a][g].point[m].y-d)*n+d):(n=e/q,z=(k[a][g].point[m].x-c)/n+c,n=(k[a][g].point[m].y-d)/n+d);k[a][g].point[m].x=z;k[a][g].point[m].y=n;0!=m&&b.line(f,r,z,n,g,{lineSize:k[a][g].ls,lineColor:k[a][g].lc,lineType:k[a][g].lt,lineTitle:k[a][g].describe});f=z;r=n}}$(".z_marker").each(function(){var a=$(this).offset(),b=0;q>e?(b=q/e,$(this).css({top:(a.top-d)*b+d,left:(a.left-c)*b+c})):(b=e/q,$(this).css({top:(a.top-d)/b+d,left:(a.left-c)/b+c}))});$(".rect").each(function(){var a=$(this).offset(),b=0;if(q>e){var b=q/e,g=$(this).width()*b,f=$(this).height()*b;$(this).css({top:(a.top-d)*b+d,left:(a.left-c)*b+c,width:g,height:f})}else b=e/q,g=$(this).width()/b,f=$(this).height()/b,$(this).css({top:(a.top-d)/b+d,left:(a.left-c)/b+c,width:g,height:f})});$(".circle").each(function(){var a=$(this).offset(),b=0;if(q>e){var b=q/e,g=$(this).width()*b,f=$(this).height()*b;$(this).css({top:(a.top-d)*b+d,left:(a.left-c)*b+c,width:g,height:f})}else b=e/q,g=$(this).width()/b,f=$(this).height()/b,$(this).css({top:(a.top-d)/b+d,left:(a.left-c)/b+c,width:g,height:f})});return!1};this.bindClickAddMarker=function(a){b.unbindClickAddMarker();$(h).bind("click",function(d){var c=b.getX(d);d=b.getY(d);t={x:c,y:d};callClickMarkerFun(a);b.unbindClickAddMarker()})};this.unbindClickAddMarker=function(){$(h).unbind("click")};this.getX=function(a){a=a||window.event;return a.pageX||a.clientX+document.body.scroolLeft};this.getY=function(a){a=a||window.event;return a.pageY||a.clientY+document.boyd.scrollTop};this.addMarker=function(a){var d=b.guid(),c=document.createElement("img");$(c).attr("src",a.src).attr("title",a.title).addClass("z_marker").attr("fd_id",d).attr("rs_id","");$(c).css({top:t.y-a.imgHeight/2,left:t.x-a.imgWidth/2});c.addEventListener("mousewheel",b.MouseWheelHandler,!1);c.addEventListener("DOMMouseScroll",b.MouseWheelHandler,!1);$("#"+e).append(c);f.push({id:d,value:c});a={mid:d,markerTitle:$(c).attr("title"),markerSrc:a.src,markerTop:$(c).offset().top,markerLeft:$(c).offset().left,rsid:""};y.push(a);return d};this.addMarkerByParam=function(a){var d=a.FD_OBJECTID,c=document.createElement("img");$(c).attr("src",a.markerSrc).attr("title",a.markerTitle).addClass("z_marker").attr("fd_id",d).attr("rs_id",a.RESCUE_SCHEDULE_ID);$(c).css({top:parseInt(a.markerTop),left:parseInt(a.markerLeft)});c.addEventListener("mousewheel",b.MouseWheelHandler,!1);c.addEventListener("DOMMouseScroll",b.MouseWheelHandler,!1);$("#"+e).append(c);f.push({id:d,value:c});y.push({mid:a.FD_OBJECTID,markerTitle:a.markerTitle,markerSrc:a.markerSrc,markerTop:a.markerTop,markerLeft:a.markerLeft,rsid:a.RESCUE_SCHEDULE_ID});return d};this.S4=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};this.guid=function(){return b.S4()+b.S4()+"-"+b.S4()+"-"+b.S4()+"-"+b.S4()+"-"+b.S4()+b.S4()+b.S4()};this.addRightMenuByRect=function(a){$("div[fd_id\x3d'"+a+"']").contextMenu("myMenu3",{bindings:{deleteRect:function(d){b.deleteRect(a)}}})};this.deleteRect=function(a){$("div[fd_id\x3d'"+a+"']").remove()};this.addRightMenu=function(a){for(var d=0;d<f.length;d++)f[d].id==a&&$(f[d].value).contextMenu("myMenu1",{bindings:{update_title_marker:function(d){b.addTitleMarker(a)},"delete":function(d){b.deleteMarker(a)},resource_schedule:function(b){showResource_schedule(a)}}})};this.addTitleMarker=function(a){callBackOpenTitleMarker(a)};this.updateTitleByMarker=function(a,d){$("img[fd_id\x3d'"+a+"']").attr("title",d);for(var c=0;c<f.length;c++)f[c].id==a&&b.updateMarkerMsg(a,f[c].value)};this.updateTitleByLine=function(a,b){$("div[fd_id\x3d'"+a+"']").attr("title",b);for(var c=0;c<k.length;c++)k[c][a]&&$(k[c][a]).attr("describe",b);map.getLineMesArr();for(c=0;c<u.length;c++)a==u[c].backup1&&$(u[c]).attr("describe",b)};this.updateResourceBySchedule=function(a,d){var c=$("img[fd_id\x3d'"+a+"']").attr("rs_id"),c=c+(d+",");$("img[fd_id\x3d'"+a+"']").attr("rs_id",c);for(c=0;c<f.length;c++)f[c].id==a&&b.updateMarkerMsg(a,f[c].value)};this.updateMarkerMsg=function(a,b){for(var c=0;c<y.length;c++)a==y[c].mid&&(y[c]={mid:a,markerTitle:$(b).attr("title"),markerSrc:$(b).attr("src"),markerTop:$(b).offset().top,markerLeft:$(b).offset().left,rsid:$(b).attr("rs_id")})};this.deleteMarker=function(a){for(var b=0;b<f.length;b++)f[b].id==a&&$(f[b].value).remove()};this.deleteAllMarker=function(){for(var a=0;a<f.length;a++)$(f[a].value).remove()};this.updateTitleLine=function(a){callBackOpenTitleLine(a)};this.deleteLine=function(a){$("."+a).remove();v=[];for(var b=0;b<k.length;b++)for(var c in k[b])if(c==a){delete k[b];return}};this.deleteAllLine=function(){k=[];v=[];$(".line").remove()};this.getAllLine=function(){return k};this.setAllLine=function(a){k=a};var D=document.getElementById("canvas1");this.saveImg=function(){html2canvas(document.body,{allowTaint:!0,taintTest:!1,onrendered:function(a){a.id="mycanvas";a=a.toDataURL();var d=document.createElement("img");$(d).attr("id","save_as_image");d.src=a;var c=document.createElement("div");$(d).load(function(){D=document.getElementById("canvas1");var a=D.getContext("2d"),e=$("#myimage").width(),g=$("#myimage").height();$("#canvas1").attr("width",e).attr("height",g);a.fillRect(0,0,e,g);a.drawImage(d,0,0);a=document.createElement("div");e=document.createElement("img");$(e).attr("id","save_img_ok").attr("src","/nwyj/images/cockpit/btn/ok.png");$(e).on("click",function(){b.downloadZmap("png");$(this).parent().parent().remove()});g=document.createElement("img");$(g).attr("id","save_img_no").attr("src","/nwyj/images/cockpit/btn/no.png");$(g).on("click",function(){$(this).parent().parent().remove()});$(a).addClass("save_img_tool").append(e).append(g);e=$("#canvas1");$(e).removeClass("hidden_yes");$(c).attr("id","save_img").addClass("save_img").append(a).append(e);$("#canvas1").remove();a=document.createElement("canvas");$(a).attr("id","canvas1").addClass("hidden_yes");$("body").append(a);callbackSaveImg(c)})}})};this.downloadZmap=function(a){var b=D.toDataURL(a),b=b.replace(function(a){a=a.toLocaleLowerCase().replace(/jpg/i,"jpeg");return"image/"+a.match(/png|jpeg|bmp|gif/)[0]}(a),"image/octet-stream");a=(new Date).toLocaleDateString()+"."+a;(function(a,b){var d=document.createElement("a");d.href=a;d.download=b;var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null);d.dispatchEvent(e)})(b,a)};this.getJsonData=function(a,b){var c={};$.ajax({async:!1,url:a,type:"post",timeout:6E4,data:b,dataType:"json",success:function(a){return c=a},error:function(a){$.messager.alert("\u7cfb\u7edf\u63d0\u793a\u4fe1\u606ferror","\u8bbf\u95ee\u670d\u52a1\u5931\u8d25\uff01","error")}});return c};this.getMarkArr=function(){return f};this.setMarkArr=function(a){f=a};this.getMarkerMesArr=function(){return y};this.getRectMesArr=function(a){B=[];$(".rect").each(function(b){b={DRAWBOARD_ID:a,DRAW_TYPE:3,MARKER_TITLE:$(this).attr("title"),POINT:'{"width":'+$(this).width()+',"height":'+$(this).height()+',"className":"rect"}',LINE_SIZE:$(this).attr("border"),LINE_COLOR:$(this).attr("background"),SAVE_SCREEN_X:$(this).offset().left,SAVE_SCREEN_Y:$(this).offset().top};B.push(b)});return B};this.getCircleMesArr=function(a){C=[];$(".circle").each(function(){var b={DRAWBOARD_ID:a,DRAW_TYPE:4,MARKER_TITLE:$(this).attr("title"),POINT:'{"width":'+$(this).width()+',"height":'+$(this).height()+',"className":"circle"}',LINE_SIZE:$(this).attr("border"),LINE_COLOR:$(this).attr("background"),SAVE_SCREEN_X:$(this).offset().left,SAVE_SCREEN_Y:$(this).offset().top};C.push(b)});return C};this.getLineMesArr=function(){for(var a=0;a<u.length;a++)0==u[a].point.length&&u.splice(a,1);return u};this.addMarkerListener=function(a){for(var d=0;d<a.length;d++)a[d].value.addEventListener("mousewheel",b.MouseWheelHandler,!1),a[d].value.addEventListener("DOMMouseScroll",b.MouseWheelHandler,!1)};var l,A;this.drawLine_svg=function(a){a=document.getElementById("canvas_zmap");l=document.createElementNS(a.namespaceURI,"path");l.setAttribute("stroke-linejoin","round");l.setAttribute("stroke-linecap","round");l.setAttribute("fill-rule","evenodd");l.setAttribute("fill","none");l.setAttribute("stroke","red");l.setAttribute("stroke-width","3");l.setAttribute("stroke-dasharray","none");l.setAttribute("stroke-opacity","0.8");a.appendChild(l);$(document).mousemove(function(){var a=l.getAttribute("d");a&&(a.split(" L ").pop(),l.setAttribute("d",A+" L "+event.clientX+" "+event.clientY))});$("#canvas_zmap").bind("dblclick",b.overDraw);$("#canvas_zmap").bind("mousedown",b.drawLineBySvg)};this.drawLineBySvg=function(a){3==a.which?b.overDraw():1==a.which&&(l.getAttribute("d")?(l.setAttribute("d",A+" L "+event.clientX+" "+event.clientY),A+=" L "+event.clientX+" "+event.clientY):(l.setAttribute("d","M "+event.clientX+" "+event.clientY+" L "+event.clientX+" "+event.clientY),A="M "+event.clientX+" "+event.clientY+" L "+event.clientX+" "+event.clientY))};this.overDraw=function(){$("#canvas_zmap").unbind("dblclick");$("#canvas_zmap").unbind("mousedown");$(document).unbind("mousemove");b.initZmap(p,e)};this.drawRectCircle=function(a,d){$("#"+e).unbind("click");b.unbindClickAddMarker();setTimeout(function(){$(document).bind("mousedown",{ls:a,flg:d},b.drawRectOrCircleByzmap)},20)};this.drawRectOrCircleByzmap=function(a){$(document).unbind("mousemove");var d=b.mousePosition(a),c="rect";a.data.flg&&(c="circle");var f=b.guid(),k=document.createElement("div");$(k).addClass(c).attr("fd_id",f);$("body").append(k);$(k).css({width:0,height:0,top:d.y,left:d.x});b.addRightMenuByRect(f);$(document).mousemove(function(){var a=event.clientX-d.x,b=event.clientY-d.y,c=Math.abs(a),e=Math.abs(b),f=event.clientX,h=event.clientY;0>a&&0>b?$(k).css({width:c,height:e,left:f,top:h}):0>a?$(k).css({left:f,height:e,width:c}):0>b?$(k).css({top:h,width:c,height:e}):0<a?$(k).css({height:e,width:c}):0<b&&$(k).css({width:c,height:e})});$(document).mouseup(function(c){if(a.data.flg){var d={id:f,value:$("div[fd_id\x3d'"+f+"']")};F.push(d)}else d={id:f,value:$("div[fd_id\x3d'"+f+"']")},E.push(d);c||(c=window.event);$(document).unbind("mousemove");$(document).unbind("mousedown");b.initZmap(p,e);move_plan();2==c.button&&($(document).unbind("mousemove"),$(document).unbind("mousedown"),b.initZmap(p,e),move_plan())})};this.drawLine=function(a){$("#"+e).unbind("click");b.getMarkArr();b.unbindClickAddMarker();var d=b.guid();$("#"+e).bind("click",{id:d,ls:a},b.recordPoint);$("#"+e).bind("dblclick",function(){x=null;var c={};c[d]={lc:a.lineColor,ls:a.lineSize,lt:a.lineType,point:v};k.push(c);v=[];c={lineSize:a.lineSize,lineColor:a.lineColor,lineType:a.lineType,point:w,backup1:d};w=[];u.push(c);$("#"+e).unbind("click");$("#"+e).unbind("dblclick");$(document).unbind("mousemove");b.initZmap(p,e);move_plan()});document.getElementById(e).onmouseup=function(c){c||(c=window.event);2==c.button&&(x=null,c={},c[d]={lc:a.lineColor,ls:a.lineSize,lt:a.lineType,point:v},k.push(c),v=[],c={lineSize:a.lineSize,lineColor:a.lineColor,lineType:a.lineType,point:w,backup1:d},w=[],u.push(c),$("#"+e).unbind("click"),$(document).unbind("mousemove"),b.initZmap(p,e))};return d};this.recordPoint=function(a){var d=b.mousePosition(a);G++;w.push(d);$(".mousePoint").removeClass("mousePoint");$(document).mousemove(function(){$(".mousePoint").remove();b.line(d.x,d.y,event.clientX,event.clientY,a.data.id,a.data.ls)});v.push(d);null!=x&&b.line(x.x,x.y,d.x,d.y,a.data.id,a.data.ls);x=d};this.addLine=function(a){b.getMarkArr();b.unbindClickAddMarker();var d=a.FD_OBJECTID,c=a.point[0];w.push(c);var f,h;for(h in a.point)f=a.point[h],w.push(f),b.line(c.x,c.y,f.x,f.y,d,a),c=f;c={};c[d]={lc:a.lineColor,ls:a.lineSize,lt:a.lineType,point:a.point};k.push(c);b.initZmap(p,e)};this.addRectAndCircle=function(a){var d=a.FD_OBJECTID,c=a.point.className,f=document.createElement("div");$(f).addClass(c).attr("fd_id",d);$(f).css({width:a.point.width+"px",height:a.point.height+"px",top:a.top+"px",left:a.left+"px"});$("body").append(f);b.addRightMenuByRect(d);"circle"==c?(a={id:d,value:$("div[fd_id\x3d'"+d+"']")},F.push(a)):(a={id:d,value:$("div[fd_id\x3d'"+d+"']")},E.push(a));b.initZmap(p,e)};this.mousePosition=function(a){a=a||window.event;if(a.pageX||a.pageY)return{x:a.pageX,y:a.pageY};a=document.documentElement;var b=document.body;return{x:event.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0),y:event.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}};this.line=function(a,d,c,f,k,g){var h;c-=a;var r=f-d;if(0!=c||0!=r){var m,n=b.makedot;"0"==g.lineType?n=b.makedot:"1"==g.lineType&&(n=b.makedot_glitter);if(Math.abs(c)>=Math.abs(r)){h=0<c?1:-1;c=Math.abs(c);f=r/c;m=a;for(var l=0;l<c;l++)$("#"+e).append(n(m,d+l*f,g.lineSize,g.lineColor,g.lineType,k,g.lineTitle)),m+=h}else for(h=0<r?1:-1,r=Math.abs(r),f=c/r,m=d,l=0;l<r;l++)$("#"+e).append(n(a+l*f,m,g.lineSize,g.lineColor,g.lineType,k,g.lineTitle)),m+=h;return!0}};this.makedot=function(a,d,c,e,f,g,k){var h=document.createElement("div");$(h).addClass("mousePoint line "+g).attr("title",k).attr("fd_id",g).attr("dty",f).css({borderColor:e,borderStyle:"solid",borderWidth:c+"px",left:a,top:d});$(h).contextMenu("myMenu2",{bindings:{update_title_line:function(a){b.updateTitleLine(g)},deleteLine:function(a){b.deleteLine(g)}}});return h};this.makedot_glitter=function(a,d,c,e,f,g,k){var h=document.createElement("div");$(h).addClass("mousePoint line line_glitter "+g).attr("title",k).attr("fd_id",g).attr("dty",f).css({borderColor:e,borderStyle:"solid",borderWidth:c+"px",left:a,top:d});$(h).contextMenu("myMenu2",{bindings:{update_title_line:function(a){b.updateTitleLine(g)},deleteLine:function(a){b.deleteLine(g)}}});return h};this.makedot_twinkle=function(){setInterval(function(){$(".line_glitter").hasClass("line_twinkle")?$(".line_glitter").removeClass("line_twinkle"):$(".line_glitter").addClass("line_twinkle")},600)};this.svgLine=function(a,b,c,e){c=Math.abs(a-c);e=Math.abs(b-e);return'\x3csvg id\x3d"svgLineTutorial" style\x3d"position:fixed;top:'+a+"px;left:"+b+'px;" height\x3d"'+e+'px" width\x3d"'+c+'px" xmlns\x3d"http://www.w3.org/2000/svg"\x3e\x3cline x1\x3d"0" y1\x3d"0" x2\x3d"'+c+'" y2\x3d"'+e+'" style\x3d"stroke:Green;stroke-width:2"/\x3e\x3c/svg\x3e'};this.getZmapBasicParam=function(){var a={SAVE_SCREEN_WIDTH:window.screen.width,SAVE_SCREEN_HEIGHT:window.screen.height};a.SAVE_ZMAP_IMG_WIDTH=$("#"+p).width();a.SAVE_ZMAP_IMG_HEIGHT=$("#"+p).height();a.SAVE_SCREEN_OFFSET_X=$("#"+p).offset().left;a.SAVE_SCREEN_OFFSET_Y=$("#"+p).offset().top;a.ZMAP_IMG=$("#"+p).attr("zmap_name");a.UNIT_ID=b.resolveUrl().dept_id;a.USER_ID=b.resolveUrl().user_id;a.SAVE_TIME=b.allGetServerTime();return a};this.fullScreen=function(){top.Dialog.alert("\u8be5\u529f\u80fd\u8fd8\u672a\u5b8c\u5584");return!1};this.allGetServerTime=function(){var a="";$.ajax({url:"/nwyj/ws/response/responseService/getNowTime",type:"post",dataType:"text",async:!1,timeout:6E3,success:function(b){a=b},error:function(a){return new Date}});return a}};function uploadImagePreview(b){var e=document.getElementById("doc");$("#zMap").removeClass("hidden_yes");b=document.getElementById("myimage");document.getElementById("zMap");if(e.files&&e.files[0])b.style.display="block",b.src=window.URL.createObjectURL(e.files[0]);else{e.select();var e=document.selection.createRange().text,h=document.getElementById("zMap");h.style.width="30px";h.style.height="30px";try{h.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod\x3dscale)",h.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src=e}catch(t){return top.Dialog.alert("\u60a8\u4e0a\u4f20\u7684\u56fe\u7247\u683c\u5f0f\u4e0d\u6b63\u786e\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9!"),!1}b.style.display="none";document.selection.empty()}return!0}function callBackOpenTitleMarker(b){parent.window.openTitleMarker(b)}function callBackOpenTitleLine(b){parent.window.openTitleLine(b)}function showResource_schedule(b){var e=$("img[fd_id\x3d'"+b+"']").attr("rs_id");sUtil.isLegitimate(e)?(e=e.substring(0,e.length-1),parent.window.showResource_schedule(b,e)):parent.window.showResource_schedule(b,"")}function setResourceId(b,e){map.updateResourceBySchedule(b,e)}function callbackSaveImg(b){parent.window.callbackSaveZmap(b)}$(function(){map=new zMap;map.loadZmap("myimage","zMap")});function bindAddMarker(b){map.bindClickAddMarker(b)}function unbindAddMarker(){map.unbindClickAddMarker()}function callClickMarkerFun(b){b=map.addMarker(b);map.addRightMenu(b)}function saveImage(){map.saveImg()}function deleteMarker(){map.deleteAllMarker()}function deleteLine(){map.deleteAllLine()}function rp(b){b=map.drawLine(b);map.addRightMenu(b)}function drawRectCircle(b,e){map.drawRectCircle(b,e)}function getZmapInfo(){var b=map.getZmapBasicParam(),b=JSON.stringify(b),e=map.getLineMesArr(),h=map.getMarkerMesArr(),t=sUtil.getJsonData("/nwyj/ws/icingZmap/IcingZmapService/saveDrawboard",{DATA:b}),b=[];if("success"==t.state){for(var f=0;f<e.length;f++){var k={DRAWBOARD_ID:t.fd_id,DRAW_TYPE:2,LINE_TYPE:e[f].lineType,MARKER_TITLE:e[f].describe,POINT:JSON.stringify(e[f].point),LINE_SIZE:e[f].lineSize,LINE_COLOR:e[f].lineColor};b.push(k)}for(f=0;f<h.length;f++)k={DRAWBOARD_ID:t.fd_id,DRAW_TYPE:1,MARKER_SRC:h[f].markerSrc,MARKER_TITLE:h[f].markerTitle,SAVE_SCREEN_X:h[f].markerLeft,SAVE_SCREEN_Y:h[f].markerTop,RESCUE_SCHEDULE_ID:h[f].rsid},b.push(k);e=map.getRectMesArr(t.fd_id);h=map.getCircleMesArr(t.fd_id);b=b.concat(e);b=b.concat(h);e="/nwyj/ws/icingZmap/IcingZmapService/saveDrawboardInfo";b={DATA:JSON.stringify(b)};"success"!=sUtil.getJsonData(e,b).state&&top.Dialog.alert("\u5b58\u5e93\u5931\u8d25\uff01")}else top.Dialog.alert("\u4fdd\u5b58\u6570\u636e\u5e93\u5931\u8d25\uff01")}function fullScreen(){map.fullScreen()}function updateTitleByMarker(b,e){map.updateTitleByMarker(b,e)}function updateTitleByLine(b,e){map.updateTitleByLine(b,e)}$(function(){var b=!1;setInterval(function(){b?$(".z_marker").addClass("marker_twinkle"):$(".z_marker").removeClass("marker_twinkle");b=!b},1E3)});