function ClassMark(){};
ClassMark.prototype._MarkerView = '
';
ClassMark.prototype._MarkerAdd = '';
ClassMark.prototype.ShowAll = function(){
var c = new CookieHelper();
var aMark = c.getCookie('Mark')==null?'':c.getCookie('Mark').split('|');
for(i=0;i清除所有标记';
for(i=0;i'+aryTemp[3]+'';
}
$('MarkLi').innerHTML=r+$('MarkLi').innerHTML;
}
ClassMark.prototype.Save=function(x,y){
if (vM.$('txtMarkerTitle').value.length < 1){
vM.$('divMarkerError').innerHTML = '必须填写标题';
vM.$('divMarkerError').style.display = 'block';
return;
}
if (vM.$('txtMarkerTitle').value.length > 20){
vM.$('divMarkerError').innerHTML = '标题不能超过20个字符';
vM.$('divMarkerError').style.display = 'block';
return;
}
// if ($('txtMarkerContent').value.length < 1){
// $('divMarkerError').innerHTML = '必须填写内容';
// $('divMarkerError').style.display = 'block';
if (vM.$('txtMarkerContent').value.length > 100){
vM.$('divMarkerError').innerHTML = '内容不能超过100个字符';
vM.$('divMarkerError').style.display = 'block';
return;
}
vM.$('divMarkerError').style.display = 'none';
var c = new CookieHelper();
var d = new Date();
var MarkCookie = c.getCookie('Mark')==null?'':c.getCookie('Mark');
Mark = parseInt(x)+'^'+parseInt(y)+'^'+vM.$('txtMarkerContent').value+'^'+vM.$('txtMarkerTitle').value+'|';
d.setMonth(d.getMonth()+12)
c.setCookie('Mark',MarkCookie+Mark,d);
var i=0;
var add='http://'+GlobalConfig._Node+'/?x='+x+'&y='+y+'&title='+escape(vM.$('txtMarkerTitle').value)+'&content='+escape(vM.$('txtMarkerContent').value);
i=c.getCookie('Mark').split('|').length-2;
var nd = vM.$C('div');
nd.id='PopMark_'+i;
nd.innerHTML=this._MarkerView.replace('{$MarkerTitle}',vM.$('txtMarkerTitle').value).replace('{$MarkerContent}',vM.$('txtMarkerContent').value).replaceAll('{$id}',i).replace('{$Add}',add).replace('{$Clear}',Mark);
vM.appendEntity(nd, _MarkLayer, false, x,y,233,110,0,40, false);
nd=null;
$('MarkLi').innerHTML=''+vM.$('txtMarkerTitle').value+''+$('MarkLi').innerHTML;
this.RemoveMarkPop('AddMarkerPop');
}
ClassMark.prototype.Del=function(i,clearContent){
if(i=='EMark')
{
this.RemoveMarkPop('PopMark_'+i);
return;
}
else
{
this.RemoveMarkPop('PopMark_'+i);
var c = new CookieHelper();
var d = new Date();
var Mark = c.getCookie('Mark')==null?'':c.getCookie('Mark');
Mark = Mark.replace(clearContent,'');
d.setHours(d.getHours()+5);
c.setCookie('Mark',Mark,d);
c=null;
this.Load();
}
}
ClassMark.prototype.Clear=function(){
var c = new CookieHelper();
var aMark = c.getCookie('Mark')==null?'':c.getCookie('Mark').split('|');
if(aMark=="")return false;
for(i=0;i清除所有标记';
}
ClassMark.prototype.Hidden=function(){
var c = new CookieHelper();
var aMark = c.getCookie('Mark')==null?'':c.getCookie('Mark').split('|');
if(aMark=="")return false;
for(i=0;i