日期:2014-05-16 浏览次数:20384 次
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>api测试页面</title>
<style type="text/css">
?????? body {
????????????? background-color: #FFF;
????????????? font-family: "Arial", "宋体";
?????? }
??? textarea{font-size:12px;padding:0;height:290px;}
??? .link{height:300px;overflow:auto;font-size:12px;}
</style>
<script type="text/javascript" src="http://app.mapabc.com/apis?
&t=flashmap&v=2.3.4&key=b0a7db0b3a30f944a21c3682064dc70ef5b738b062f6479a5eca39725798b1ee300bd8d5de3a4ae3"></script>
?
</head>
<body >
? <input type="button" value="test"? id="outputArea" onclick="javascript:ttt();"/>
?? <SCRIPT LANGUAGE="JavaScript">
?
? function t(c){
? var cc = c;
?//通过中心点坐标查询周边POI
?function PoiSearchByCenterXY(){
??? var ls = new MLocalSearch();
??? var lso = new MLocalSearchOptions();
??? ls.setCallbackFunction(test);
??? ls.poiSearchByKeywords("酒店",cc,lso);
?}
?
?function test(data){
???alert(data.poilist[0].citycode? + "? " + cc);
??
?}
?return PoiSearchByCenterXY;
? }
?
function ttt(){
?for(var i=1;i<4;i++){
??ftt(i);
?}
}
function ftt(i){
?var cc;
?if(i==1){
??cc = "010";
?}else if(i==2){
??cc="021";
?}else if(i==3){
??cc="022";
?}
?t(cc)();
}
?? </SCRIPT>
</body>
</html>