mapabc的应用实例

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">






<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
v\:*{behavior:url(#default#VML);}
-->



</style>
</head>
<script src="http://api.mapabc.com/rme/v4.0/mapabcRasterEngine.js" type="text/javascript"></script>
<SCRIPT type=text/javascript>
<!--
var mapcenter="JPRLRVUSNMLHFH,LXJWOUOPSQVLLJL";
var curCity='null'; 
if(curCity=="0412"){mapcenter="JQOLOMPMNHULHFH,MPJOPRUPJHOLLJL";}//鞍山市
if(curCity=="0312"){mapcenter="JPQLSSTNRLVDLNH,LWJVVVVPMHODHJD";}//保定市
if(curCity=="010"){mapcenter="JPRLRVUSNMLHFH,LXJWOUOPSQVLLJL";}//北京市
if(curCity=="0519"){mapcenter="JPULXTRSJNMLDJD,LPJUUVUPSQSHHJD";}//常州市
if(curCity=="0431"){mapcenter="JQQLRORQSKDHJH,MRJVWSVPLDLFL";}//长春市
if(curCity=="0731"){mapcenter="JPOLOMWMNOMHHJH,KWJPOURPQQUDDJH";}//长沙市
if(curCity=="0768"){mapcenter="JPRLUQPJJMVHHFH,KRJTVNQJOQVHHJH";}//潮州市
if(curCity=="028"){mapcenter="JOPLOSSRLOULLFL,LOJTTUOLJHODHNH";}//成都市
if(curCity=="0314"){mapcenter="JPSLXPROOLVLLJH,MOJWXRRPPHOLHNL";}//承德市
if(curCity=="0411"){mapcenter="JQMLUQQSJONHHNH,LWJWQNTMMHNHDND";}//大连市
if(curCity=="0459"){mapcenter="JQPLWUOSKJHDND,MUJTPSPOMHPDHFL";}//大庆市
if(curCity=="0415"){mapcenter="JQPLRUPJRLMHHFD,MOJORNOPJHOLLJL";}//丹东市
if(curCity=="0769"){mapcenter="JPOLVRWMNHUHHJH,KRJNRURMQQSLHNH";}//东莞市
if(curCity=="0711"){mapcenter="JPPLXMQPQPVDLFL,LOJQWVUSOHNDLNL";}//鄂州市
if(curCity=="0757"){mapcenter="JPOLPNNOMPMDHJL,KRJNQMUSNQVLLJL";}//佛山市
if(curCity=="0591"){mapcenter="JPULRMTNJQNDHFL,KUJNVSOJNHNLDNL";}//福州市
if(curCity=="0413"){mapcenter="JQOLXORMPHVHHND,MPJVUTUQKHQDLND";}//抚顺市
if(curCity=="020"){mapcenter="JPOLROPMLKNHHJL,KRJORQOJNDLJD";}//广州市
if(curCity=="0451"){mapcenter="JQRLURPKRONLHNH,MTJUUNPQMHNHLJH";}//哈尔滨市
if(curCity=="0898"){mapcenter="JPLLRONKSOUHHNL,KOJNROQJLQSHHNL";}//海口市
if(curCity=="0310"){mapcenter="JPPLSUWLJHNHDJH,LUJSXVRLJQTDLNH";}//邯郸市
if(curCity=="0571"){mapcenter="JQLLPTPSQKMHDNL,LOJPVPWQOQVLHJH";}//杭州市
if(curCity=="0714"){mapcenter="JPQLORQRKNVHDJL,LOJPPOQOMQUHLJL";}//黄石市
if(curCity=="0752"){mapcenter="JPPLRVWPKKMHHFD,KRJNXPVJMQUHHNH";}//惠州市
if(curCity=="0432"){mapcenter="JQRLTTOMNLNHLFL,MRJVSRVMQHPLHJH";}//吉林市
if(curCity=="0531"){mapcenter="JPSLOONOSPNHHJH,LUJTTVQONHQDLND";}//济南市
if(curCity=="0573"){mapcenter="JQLLVRVONINHHFH,LOJUTPWKSQUDHNH";}//嘉兴市
if(curCity=="0454"){mapcenter="JRLLRSWOQQVLLFH,MUJVOTRORHPDLFH";}//佳木斯市
if(curCity=="0750"){mapcenter="JPOLOVOJJHNLLFD,KQJSWTPKDHJH";}//江门市
if(curCity=="0416"){mapcenter="JQMLPQUPRPNLDFD,MPJOQSNSLHOHDNL";}//锦州市
if(curCity=="0378"){mapcenter="JPPLRQNLKOMDHJL,LSJUWVQKJHNLHJL";}//开封市
if(curCity=="0871"){mapcenter="JONLVMQLSQUHHJL,KTJNSVVSLQSHLJH";}//
if(curCity=="0518"){mapcenter="JPULPTPRMINHHFL,LSJSXRVSMQUDHNL";}//连云港市
if(curCity=="0379"){mapcenter="JPNLSMNOLNVDHJL,LSJTTSTRJQTHLJH";}//洛阳市
if(curCity=="0816"){mapcenter="JOPLVTRLPMHDND,LPJRTRVQOQTLHND";}//绵阳市
if(curCity=="025"){mapcenter="JPTLVVWNQHMLLNH,LQJNVRURJHQDLFH";}//南京市
if(curCity=="0574"){mapcenter="JQMLTQQSSLNLLNL,KXJVUUQMOHNHDJL";}//宁波市
if(curCity=="0375"){mapcenter="JPOLRMQOOJMLDFH,LRJUQTQSKHNLDNL";}//平顶山市
if(curCity=="0452"){mapcenter="JQOLXPUKPOVHDND,MVJQSNSRPQTHHJL";}//齐齐哈尔市
if(curCity=="0335"){mapcenter="JPULTUWOPNMHHND,LXJWSTVSNHNLHJH";}//秦皇岛市
if(curCity=="0532"){mapcenter="JQLLRRTRNHUHDJL,LUJNWPWSKQSLHNL";}//青岛市
if(curCity=="0595"){mapcenter="JPTLTUROKMNHLJH,KSJWQVRSSQSHDJL";}//泉州市
if(curCity=="0899"){mapcenter="JOULTNQPKLVLHJL,JWJPRRSKQHQDLJL";}//三亚市
if(curCity=="0754"){mapcenter="JPRLVOQQMKUDLNL,KRJQUMOJMLHFD";}//汕头市
if(curCity=="0991"){mapcenter="osdphlrfigil,kodrhmqgekml";}//乌鲁木齐市
if(curCity=="020"){
			mapcenter="fjqekjmjmqFKOE,gllhkllgoJKKE";
			}
		if(curCity=="021"){
			mapcenter="fkoelopplrJOGE,hjlijlnlnNOOI";
			}
		if(curCity=="022"){
			mapcenter="fjuejmmjsJOOE,hrlhhkslnJKGE";
			}
if(curCity=="0575"){mapcenter="JQLLTVPSSINDLNL,LOJNOPSSJQTHHJD";}//绍兴市
if(curCity=="0755"){mapcenter="JPPLORSOQJVHHNL,KQJSSOONRQULHJH";}//深圳市
if(curCity=="024"){mapcenter="JQOLSPRJNHVHDJL,MPJVORTQNHNHHNH";}//沈阳市
if(curCity=="0311"){mapcenter="JPPLSTTNSJUDDJH,LWJNSUPQJHQHLNH";}//石家庄市
if(curCity=="0434"){mapcenter="JQPLRVUSPHMLHFD,MRJOVOSKJHQLDNH";}//四平市
if(curCity=="0512"){mapcenter="JQLLUPVPRQVLHJL,LPJQQMSNRHNLLJD";}//苏州市
if(curCity=="0538"){mapcenter="JPSLPPOSQPUHHNH,LUJOXPTQLQUHHJL";}//泰安市
if(curCity=="0523"){mapcenter="JPULXONRNOMDDFH,LQJRUNTPKQTLLNL";}//泰州市
if(curCity=="0315"){mapcenter="JPTLPSUMLQUHDNL,LXJTRRPRDLFD";}//唐山市
if(curCity=="022"){mapcenter="JPSLQRPMRHNLLJH,LXJOOPVOMHQHHFL";}//天津市
if(curCity=="0631"){mapcenter="JQNLPOPJSPLHND,LVJSOQPSMHPDHFD";}//威海市
if(curCity=="0536"){mapcenter="JPULPNOKPKUDHNL,LUJUPOQMKHNLDNH";}//潍坊市
if(curCity=="0577"){mapcenter="JQLLUPUOKOMLLND,KWJNQTNKRQULDJD";}//温州市
if(curCity=="0510"){mapcenter="JQLLRRVSSHMHLJL,LPJSUNOLSQUHDJH";}//无锡市
if(curCity=="027"){mapcenter="JPPLQUONPDHNL,LOJSVUOMSQVLHNL";}//武汉市
if(curCity=="0592"){mapcenter="JPTLPMOSNJLLNH,KSJRVVPQNQSDDNL";}//厦门市
if(curCity=="0732"){mapcenter="JPNLXMTPMHMLHJL,KVJVUNORJHPLHND";}//湘潭市
if(curCity=="0535"){mapcenter="JQMLRVPMNMVLLFH,LVJSRTVSMQVHLJH";}//烟台市
if(curCity=="0433"){mapcenter="JQULSVUPOLUDHJH,MQJVXQOOLHNHLJH";}//延边朝鲜族自治州
if(curCity=="0514"){mapcenter="JPULSNPRPMMHDJL,LQJRPVRQNHOHHNH";}//扬州市
if(curCity=="0417"){mapcenter="JQNLQOPPPNNHLNH,MOJTUMPQOQSHLNL";}//营口市
if(curCity=="0877"){mapcenter="JONLTPSSLNNHDJL,KSJQSTOOPHQLHJL";}//玉溪市
if(curCity=="0730"){mapcenter="JPOLPMVKSNVHHFH,KXJQUSQKPHHNH";}//岳阳市
if(curCity=="0759"){mapcenter="JPLLSONOQKMLDJH,KPJOXUVOSHODHFL";}//湛江市
if(curCity=="0511"){mapcenter="JPULSQPNLQLHNH,LQJPPNNNOHHNH";}//镇江市
if(curCity=="0371"){mapcenter="JPOLUSQJNHNLLFD,LSJUUNVPSHNLHJL";}//郑州市
if(curCity=="0580"){mapcenter="JQNLPMTKKHMLHNL,LOJNQMPSJHOLHFH";}//舟山市
if(curCity=="0756"){
			mapcenter="fjqempnnsuJOOM,gklinhrkmJGOE";
			}
if(curCity=="0832"){mapcenter="JOPLURNPQPMLHJH,LOJOQUSPMQULLFH";}//资阳市
if(curCity=="0516"){mapcenter="JPSLPTQSOKMHLFD,LSJPTUSQSHOLDFH";}//徐州市
if(curCity=="0374"){mapcenter="JPOLWPRKJNLDJH,LSJNQONROHPDLJH";}//许昌市
if(curCity=="0760"){mapcenter="JPOLRTOONKMHHFH,KQJSQQWSSHPHHFD";}//中山市
if(curCity=="023"){mapcenter="JORLTQVNLNHHNL,KXJSTQWKQHPLDNL";}//重庆市
if(curCity=="0556"){mapcenter="QINIITIQRNNHKJ,SHEPKVIILNHOF";}//安庆市
if(curCity=="0372"){mapcenter="QIKILSOITPFDKN,SNELJPKIQJHOF";}//安阳市
if(curCity=="0917"){mapcenter="QHNIJRQQSKNLOJ,SLENOXQILNLON";}//宝鸡市
if(curCity=="0453"){mapcenter="QJPIOQOLRKNLOJ,TLEPQVLKQJLKJ";}//牡丹江市
if(curCity=="0830"){mapcenter="QHLIMTJNQKJHKF,RPESQTIJPFDON";}//泸州市
if(curCity=="0717"){mapcenter="QIHIKXMQPPNHOF,SHERIPJPLNDOF";}//宜昌市
if(curCity=="0744"){mapcenter="QIGIMVORTJLKF,RQELJXOPRFLKN";}//张家界市
if(curCity=="0733"){mapcenter="QIJIJSRMOONHKF,ROESMOOMOJLGF";}//株洲市
if(curCity=="0668"){mapcenter="QIGIRQMPLQJLGJ,RIEQOQPLPNHOF";}//茂名市
if(curCity=="0553"){mapcenter="QIOILVNPORJHOJ,SIENKVKPQNLON";}//芜湖市
if(curCity=="0833"){mapcenter="QHJIPSOLRLNLON,RQEPQUOJONLKN";}//乐山市
if(curCity=="0316"){mapcenter="QIMIPOOLNMJHGJ,SQEPLOQMONHGJ";}//廊坊市
if(curCity=="0716"){mapcenter="QIIIKSNLQLFLGJ,SHENKTKKLJDGN";}//荆州市
if(curCity=="0579"){mapcenter="QJGIIVKMMOFHOJ,RQENIQILTNHOJ";}//金华市
if(curCity=="0663"){mapcenter="QIMILURPSMFDOJ,RKEPKVNOLFLGF";}//揭阳市
if(curCity=="0533"){mapcenter="QIOIITIIRNLOJ,SNESIULLOFLGF";}//淄博市
if(curCity=="023"){mapcenter="QHMINSQMMOJLKJ,RQEPNSRJRJHKJ";}//重庆市
if(curCity=="0779"){mapcenter="QHPIJQKRRNJLKJ,RIEOPWPPPJHGJ";}//北海市
if(curCity=="0313"){mapcenter="QIKIQWRQPJJHON,THESKUKJPNLKF";}//张家口市
if(curCity=="0427"){mapcenter="QJIIIVJIPFLGN,TIELJWQISJHOJ";}//盘锦市
if(curCity=="0534"){mapcenter="QIMILONLLPJHON,SOEOMVOIMJHGN";}//德州市
if(curCity=="0719"){mapcenter="QIGIPWKIKNJHOJ,SJEQNTLIQNDON";}//十堰市
if(curCity=="0724"){mapcenter="QIIIJXOJRQJHKN,SIEKKVPMLJDOJ";}//荆门市
if(curCity=="0565"){mapcenter="QINIQULRPLNHGN,SIEQIQPNONLKN";}//巢湖市
if(curCity=="0513"){mapcenter="QJGIQVIMNMNHOF,SJEKJPOKNJDKJ";}//南通市
if(curCity=="0743"){mapcenter="QHPIOOIOMLNHOF,ROETMVKJSJHKN";}//湘西土家族苗族自治州
if(curCity=="0736"){mapcenter="QIHIPOKORKNLKJ,RQEKLUOLQNHOF";}//常德市
if(curCity=="0791"){mapcenter="QILIQXPLQNJLOF,RPEQPWPNRNLGJ";}//南昌市
if(curCity=="0798"){mapcenter="QINIKPMQTQNLKF,RQEMRRRQQFHKN";}//景德镇市
if(curCity=="0832"){mapcenter="QHLIIUKRLQNLKJ,RQEPQQNJLKN";}//内江市
if(curCity=="0813"){mapcenter="QHKIPVIKOLJDOJ,RQENNRLQLJHON";}//自贡市
if(curCity=="0594"){mapcenter="QIPIIONQOKNLON,RMEOLTONTNDGJ";}//莆田市
if(curCity=="0753"){mapcenter="QIMIJPPNMKFDKN,RLEMRRQIPNLKF";}//梅州市
if(curCity=="0596"){mapcenter="QINIOUNRSPJHOJ,RLEPJQLNJLOF";}//漳州市
if(curCity=="0771"){mapcenter="QHOILPPISJNHKJ,RJESIUKOOJHKN";}//南宁市
if(curCity=="0770"){mapcenter="QHOILTIRMJJLKF,RIEQKRMKSJHGN";}//防城港市
if(curCity=="0414"){mapcenter="QJJIPWNOKMFHKJ,TIEMRWLRSNDKF";}//本溪市
if(curCity=="0551"){mapcenter="QINIKXNPPNNHOF,SIESOXLMPJHKF";}//合肥市
if(curCity=="0471"){mapcenter="QIHIOUOOPJLKJ,THESIWKOMJLKN";}//呼和浩特市
if(curCity=="0559"){mapcenter="QIOILONMMLJHON,RQERJQOINJHOJ";}//黄山市
if(curCity=="0391"){mapcenter="QIJIKTRRRJJDGJ,SMEMITPMPFHOJ";}//焦作市
if(curCity=="0566"){mapcenter="QINIMXLIQOJHKJ,SHEQORLKLFLON";}//池州市
if(curCity=="0792"){mapcenter="QILIRXILTNNLKJ,RQERJTNOQJLOJ";}//九江市
if(curCity=="0772"){mapcenter="QHPIMPKOKQJHOJ,RLENIUPNOFHON";}//柳州市
if(curCity=="0555"){mapcenter="QIOINOKINLNHOJ,SIEQRQRRRNDKJ";}//马鞍山市
if(curCity=="0751"){mapcenter="QIJINXOQORFDKJ,RLERRTINMJDKF";}//韶关市
if(curCity=="0576"){mapcenter="QJHIMTNRKMNHKJ,RPEQPOPRRNHGN";}//台州市
if(curCity=="0910"){mapcenter="QHOIPORQSJLGN,SLENKUPQPJLOJ";}//咸阳市
if(curCity=="0515"){mapcenter="QJGIJRRKLKNLKJ,SKENPXLQNLKJ";}//盐城市
if(curCity=="0758"){mapcenter="QIIIMVNPMKFLOF,RKEKPRLQJHKJ";}//肇庆市
if(curCity=="0552"){mapcenter="QINIMOJPOOJHKF,SJETLOKLQJLOJ";}//蚌埠市
if(curCity=="0472"){mapcenter="QHPIQVJKSMNHGN,THEQOPONJLON";}//包头市
if(curCity=="0546"){mapcenter="QIOIOVMPMPNLKF,SOEOLQJMSFHOF";}//东营市
if(curCity=="0851"){mapcenter="QHMIPOQOLPJLOF,RNEPOVRNPFDOJ";}//贵阳市
if(curCity=="0773"){mapcenter="QIGIKWMQQPNHON,RMEMQQOPNJDGN";}//桂林市
if(curCity=="0734"){mapcenter="QIIIOPKKMPJDON,RNESRUKNJHOF";}//衡阳市
if(curCity=="0572"){mapcenter="QJGIIXORMPNDKJ,SHESPONRRJLOJ";}//湖州市
if(curCity=="0429"){mapcenter="QJGIQTOKLKJLON,THERMWJJLNLOJ";}//葫芦岛市
if(curCity=="0419"){mapcenter="QJJIJVRJNRNLKJ,TIEMPVPPSNLOF";}//辽阳市
if(curCity=="0833"){mapcenter="QHJIQQOJQMNLKJ,SHEKLWQNPJDKN";}//眉山市
if(curCity=="0593"){mapcenter="QIPINROORLJLON,RNEQNRQPPNHOF";}//宁德市
if(curCity=="0660"){mapcenter="QILILVJITNFLON,RJERQSJRMNHKJ";}//汕尾市
if(curCity=="029"){mapcenter="QHOIRTMMKJNDGJ,SLEMOSRJPNLOJ";}//西安市
if(curCity=="0710"){mapcenter="QIIIJRNKQNHOJ,SJEKOQIJTNHGN";}//襄樊市
if(curCity=="0373"){mapcenter="QIJIQWRQTJHGJ,SMENIPNMTNHON";}//新乡市
if(curCity=="0662"){mapcenter="QIHIRWLOMNJHOJ,RIESPPRNLNLOJ";}//阳江市
if(curCity=="0831"){mapcenter="QHKIOQQOTOFLKJ,RPERNXKKQJDKN";}//宜宾市
if(curCity=="0351"){mapcenter="QIIINRJMSKNLKN,SOESNTJKMNHON";}//太原市
if(curCity=="0911"){mapcenter="QHPIMXONNHGJ,SNEPRRLKFDOJ";}//延安市
if(curCity=="0931"){mapcenter="lemlvhtkonJMJO,nkhnsivfolJENK";}//兰州
if(curCity=="0951"){mapcenter="fipfmlnqrjilndo,hqhlqimkqmljlk";}//银川
if(curCity=="0971"){mapcenter="gffjsontknJGFE,ilcrnjqnjqFKNM";}//西宁 
if(curCity=="null" || curCity==""){curCity="fgngijnqnksMHOL,hofqkjikpjpIHKH";}

if("102901"==102481){
	var tipTemplate = "<p style='line-height: 100%;' align='left'><span style=\"color:#000000;font-weight:700;\" align='center'><tipcont>ELEMENT1</tipcont></span><br><span style=\"color:#000000;font-size: 12px;\"   align='left'><tipcont>ELEMENT2</tipcont></span><br><span style=\"color:#000000;font-size: 12px\" align='left' ><tipcont>ELEMENT3</tipcont></span><br><span style=\"color:#000000;font-size: 12px\" align='left' ><tipcont>ELEMENT31</tipcont></span><br><span style=\"color:#000000;font-size: 12px\" align='left' ><tipcont>ELEMENT4</tipcont></span></p>";
}
else if("102901"==102561){
	var tipTemplate = "<p style='line-height: 100%;' align='left'><span style=\"color:#000000;font-weight:700;\" align='center'><tipcont>ELEMENT1</tipcont></span><br><span style=\"color:#000000;font-size: 12px;\"   align='left'><tipcont>ELEMENT2</tipcont></span><br><span style=\"color:#000000;font-size: 12px\" align='left' ><tipcont>ELEMENT3</tipcont></span></p>";
}
else if("102901"==102961){
	var tipTemplate = "<p style='line-height: 100%;' align='left'><span style=\"color:#000000;font-weight:700;\" align='center'><tipcont>ELEMENT1</tipcont></span><br><span style=\"color:#000000;font-size: 12px;\"   align='left'><tipcont>ELEMENT2</tipcont></span><br><span style=\"color:#000000;font-size: 12px\" align='left' ><tipcont>ELEMENT3</tipcont></span><br><span style=\"color:#000000;font-size: 12px\" align='left' ><tipcont>ELEMENT4</tipcont></span><br><span style=\"color:#000000;font-size: 12px\" align='left' ><tipcont>ELEMENT5</tipcont></span></p>";
}
else{
	var tipTemplate = "<p style='line-height: 100%;' align='left'><span style=\"color:#000000;font-weight:700;\" align='center'><tipcont>ELEMENT1</tipcont></span><br><span style=\"color:#000000;font-size: 12px;\"   align='left'><tipcont>ELEMENT2</tipcont></span><br><span style=\"color:#000000;font-size: 12px\" align='left' ><tipcont>ELEMENT3</tipcont></span><br><span style=\"color:#000000;font-size: 12px\" align='left' ><tipcont>ELEMENT4</tipcont></span></p>";
}

function pageLoad(){ 
	var mapOptions = new MabcMapOptions;
	mapOptions.mapWinId = "myMap";

	if("390">265){
		mapOptions.controllerType = '1';
	}else{
		mapOptions.controllerType = '0';
	}
	mapOptions.mapWidth = 520;
	mapOptions.mapHeight = 390;
	
	
	mapOptions.centerCoord = 'fgngijnqnksMHOL,hofqkjikpjpIHKH';
	
	mapobj = new MabcMap(mapOptions);
}
function onMappletInited(mapId){
	mapobj.enabledZoomingByWheel();
	var aTipStyle = new MabcTipStyle();
	var isadd="true";

	aTipStyle.tipId = "tipStyle";
	aTipStyle.tipTemplate = tipTemplate;
	mapobj.addTipStyle(aTipStyle);

	if(isadd=="true"){
	
	var z = '';
	if("102901"==102961){
	addPoint('fgngijnqnksMHOL','hofqkjikpjpIHKH','onepoint','http://channel.mapabc.com/openmap/icon/oic.gif','北京中联汉唐国际教育咨询有限公司','十里河千鹤年华画家城5层办公室','010-87363200','','','','010');
	}else{
		addPoint('fgngijnqnksMHOL','hofqkjikpjpIHKH','onepoint','http://channel.mapabc.com/openmap/icon/oic.gif','北京中联汉唐国际教育咨询有限公司','十里河千鹤年华画家城5层办公室','010-87363200','','','','010');
	}
		if(z==""){
			mapobj.setViewAdjustType("auto");
		}else{
			mapobj.setMapCenter("fgngijnqnksMHOL,hofqkjikpjpIHKH");
			mapobj.setMapZoom(z);
		}
	}
}

///////////////// 添加点 /////////////////
function addPoint(x,y,poiid,icourl,name,address,tel,type,jiage,poiurl,city){
	var point = new MabcPointObject();
	point.serial_id = poiid;
	var coord = x+","+y;

	point.coord = coord;
	
	point.pointStyle.hasIcon = true;
	
	if(city ==null || city=='undefined'){
		city='010';
	}
	

	if("520">300 && "390">265 ){
		point.pointStyle.showLabel = false;
	}else{
		point.pointStyle.showLabel = true;
	}

		point.pointStyle.showTip = true;
	

 
	point.pointStyle.iconURL = icourl;
	if("102901"=="101841"){
	point.pointStyle.size.iconWidth = 20;
	point.pointStyle.size.iconHeight = 31;
	}
	else if("102901"=="103361"){
	point.pointStyle.size.iconWidth = 120;
	point.pointStyle.size.iconHeight = 39;
	}
	
	else{
	point.pointStyle.size.iconWidth = 14;
	point.pointStyle.size.iconHeight = 14;
	}
	
	point.pointStyle.offset.iconX = 0;
	point.pointStyle.offset.iconY = 0;
	if("102901"=="103361"){
	point.pointStyle.offset.infoWindowX = 50;
	}else{
		point.pointStyle.offset.infoWindowX = 10;
	}

	point.pointStyle.offset.infoWindowY = 0;
	point.pointStyle.offset.labelX =3;
	point.pointStyle.offset.labelY =3;
	point.pointStyle.labelContent =  "<font size='2'><b>"+name +"</b></font><br>";
	
	// will show between level 9-16
	point.pointStyle.mindisscroll = 0;
	point.pointStyle.maxdisscroll = 20;

	point.pointStyle.tipId = "tipStyle";
	var imgn="http://channel.mapabc.com/openmap/icon/102961/MYJOBCID103817.jpg";


	var keyname = encodeURI(name);
	var keyaddr = encodeURI(address);

	if("102901"==102961){
		point.pointStyle.tipParam.ELEMENT1 = "<br/>名称: "+name;;
		point.pointStyle.tipParam.ELEMENT2 = "地址: "+address;
		point.pointStyle.tipParam.ELEMENT3 = "用途: "+jiage;
		if(poiurl!=null && poiurl!="" && poiurl!=" "){
			point.pointStyle.tipParam.ELEMENT4 = "简介: "+poiurl+"< /br><img id='imgn' src='"+imgn+"'/>";
		}else{
			point.pointStyle.tipParam.ELEMENT4 = "<img id='imgn' src='"+imgn+"'/>";
		}
		point.pointStyle.tipParam.ELEMENT5 ="<a href='http://code.mapabc.com'  target='_blank'><font color='#0000ff'>5分钟内,您也有自己的地图频道</font></a>";//"<a href='http://diy.mapabc.com/2008snow.htm?rf=003' target='_blank'>做地图抗雪灾</a> ";
		if(city=="010" || city=="021" ||city=="020" ||city=="0755"||city=="0571"){
		//point.pointStyle.tipParam.ELEMENT5 ="<a href='"+poiurl+"'  target='_blank'>查看详情</a>   <a href='http://www.mapabc.com/zhuanti/shijing/index.html?n="+keyaddr+"&c="+city+"&rf=xtipsquanjing'  target='_blank'>该点全景实况图</a>   <a href='http://diy.mapabc.com/index.htm?rf=xtipsdiy' target='_blank'>自己做地图</a>";
		}else{
			//point.pointStyle.tipParam.ELEMENT5 ="<a href='"+poiurl+"'  target='_blank'>查看详情</a>   <a href='http://www.mapabc.com/zhuanti/shijing/index.html?rf=xtipsquanjing'  target='_blank'>该点全景实况图</a>   <a href='http://diy.mapabc.com/index.htm?rf=xtipsdiy' target='_blank'>自己做地图</a>";
		}
	}
	else if("102901"==102481){
		point.pointStyle.tipParam.ELEMENT1 = "<a href='http://msn.house.ynet.com/moe/face.jsp?hrid=MYJOBCID103817' target='_blank'>"+name+"</a>";;
		point.pointStyle.tipParam.ELEMENT2 = "物业类型:"+type;
		point.pointStyle.tipParam.ELEMENT3 = "项目位置:"+address;
		point.pointStyle.tipParam.ELEMENT31 = "均价:"+jiage;
		point.pointStyle.tipParam.ELEMENT4 ="<a href='"+poiurl+"'  target='_blank'>查看详情</a>  <a href='http://code.mapabc.com'  target='_blank'><font color='#0000ff'>5分钟内,您也有自己的地图频道</font></a>";
		//  <a href='http://www.mapabc.com/zhuanti/shijing/index.html?rf=xtipsquanjing'  target='_blank'>该点全景实况图</a>   <a href='http://diy.mapabc.com/index.htm?rf=xtipsdiy' target='_blank'>自己做地图</a>";
	}
	else if("102901"==103361){
		point.pointStyle.tipParam.ELEMENT1 = "<br/>名称: "+name;;
		point.pointStyle.tipParam.ELEMENT2 = "地址: "+address;
		point.pointStyle.tipParam.ELEMENT3 = "用途: "+jiage;
		var temp4="简介: "+poiurl+"< /br>";;

		if(poiurl!=null && poiurl!="" && poiurl!=" "){
		}else{
			temp4 = " ";
		}
		
		var houseid="0";

		if(houseid==0){
				point.pointStyle.tipParam.ELEMENT4 = temp4+"<a href='http://www.51cangku.com/login.dhtml?action=check'>登  录</a>";
			}else{
				point.pointStyle.tipParam.ELEMENT4 = temp4 +"<a href='http://www.51cangku.com/order.dhtml?houseid=0'>立即下单</a>";
		}
	}


	else{
		point.pointStyle.tipParam.ELEMENT1 = "<br><font size='3'>"+name+"</font>";
		point.pointStyle.tipParam.ELEMENT2 = "地址:"+address;
		if("102901"!=102561){

			
			if(jiage!=null && jiage!="" && jiage!=" "){
				if("102901"==103361){
					point.pointStyle.tipParam.ELEMENT3 = "电话:"+tel+"<br>简介: "+jiage;
				}else{
					point.pointStyle.tipParam.ELEMENT3 = "电话:"+tel;
				}
			}else{
				point.pointStyle.tipParam.ELEMENT3 = "电话:"+tel;
			}

			if(city=="010" || city=="021" ||city=="020" ||city=="0755"||city=="0571"){
			
				if("102901"==102901){
					point.pointStyle.tipParam.ELEMENT4 ="<a href='http://code.mapabc.com'  target='_blank'><font color='#0000ff'>5分钟内,您也有自己的地图频道</font></a>";//"<a href='http://diy.mapabc.com/2008snow.htm?rf=003' target='_blank'>做地图抗雪灾</a> ";//"<a href='http://www.mapabc.com/zhuanti/shijing/index.html?n="+keyname+"&c="+city+"&rf=xtipsquanjing'  target='_blank'>该点全景实况图</a>   <a href='http://diy.mapabc.com/index.htm?rf=xtipsdiy' target='_blank'>自己做地图</a>";
				}else{
					point.pointStyle.tipParam.ELEMENT4 ="<a href='http://code.mapabc.com'  target='_blank'><font color='#0000ff'>5分钟内,您也有自己的地图频道</font></a>";//"<a href='http://diy.mapabc.com/2008snow.htm?rf=003' target='_blank'>做地图抗雪灾</a> ";//"<a href='http://www.mapabc.com/zhuanti/shijing/index.html?n="+keyaddr+"&c="+city+"&rf=xtipsquanjing'  target='_blank'>该点全景实况图</a>   <a href='http://diy.mapabc.com/index.htm?rf=xtipsdiy' target='_blank'>自己做地图</a>";
				}
			}else{
				point.pointStyle.tipParam.ELEMENT4 ="<a href='http://code.mapabc.com'  target='_blank'><font color='#0000ff'>5分钟内,您也有自己的地图频道</font></a>";//"<a href='http://www.mapabc.com/zhuanti/shijing/index.html?rf=xtipsquanjing'  target='_blank'>该点全景实况图</a>   <a href='http://diy.mapabc.com/index.htm?rf=xtipsdiy' target='_blank'>自己做地图</a>";
			}
		}else{
			if(city=="010" || city=="021" ||city=="020" ||city=="0755"||city=="0571"){

			point.pointStyle.tipParam.ELEMENT3 ="<a href='http://code.mapabc.com'  target='_blank'><font color='#0000ff'>5分钟内,您也有自己的地图频道</font></a>";//"<a href='http://diy.mapabc.com/2008snow.htm?rf=003' target='_blank'>做地图抗雪灾</a> ";//"<a href='http://www.mapabc.com/zhuanti/shijing/index.html?n="+keyaddr+"&c="+city+"&rf=xtipsquanjing'  target='_blank'>该点全景实况图</a>   <a href='http://diy.mapabc.com/index.htm?rf=xtipsdiy' target='_blank'>自己做地图</a>";
				
			}else{
				point.pointStyle.tipParam.ELEMENT3 ="<a href='http://code.mapabc.com'  target='_blank'><font color='#0000ff'>5分钟内,您也有自己的地图频道</font></a>";//"<a href='http://diy.mapabc.com/2008snow.htm?rf=003' target='_blank'>做地图抗雪灾</a> ";//"<a href='http://www.mapabc.com/zhuanti/shijing/index.html?rf=xtipsquanjing'  target='_blank'>该点全景实况图</a>   <a href='http://diy.mapabc.com/index.htm?rf=xtipsdiy' target='_blank'>自己做地图</a>";
			}
		}
	}
	
	mapobj.addPoint(point);
	if("520">265 && "390">250 ){
		if ("102901"==103361){
			if ("0"!=0){
				mapobj.openInfoWindow("point",poiid);
			}
		}else{
			mapobj.openInfoWindow("point",poiid);
		}
	}
}

function onClickPOI(mapId,pointId){
mapobj.openInfoWindow('point',pointId);
}
function onMouseOverPOI(mapId,pointId){
mapobj.openInfoWindow('point',pointId);
}
function onMouseOverPOI(mapId,pointId){
}

-->
</SCRIPT>
<script type="text/javaScript" src="http://stat.mapabc.com/pub/sj.jhtml?uuid=ff808081-175d50a0-0117-5d5b2632-0002"></script>
<body  onload = "pageLoad()">
<div align="center">
<div id="myMap" name="myMap" align="center" ></div>
</div>
</body>
</html>

实例连接:

1:http://www.myjob.com/shtml_company/company_job_404900.shtml

2:http://channel.mapabc.com/openmap/map.jsp?id=MYJOBCID103817&eid=102901&uid=7906&w=520&h=390

你可能感兴趣的:(JavaScript,html,jsp,教育,咨询)