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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章