egarcgis


<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="http://10.71.197.167:8080/portal/api.js"></script>
<script type="text/javascript">
var width=400;
var height=500;
// showMapMenu(0,0,width);
window.onload = initMap;
function initMap(){
showMap(0,31,null,null,"4","85.5","46");
}

function getFMap(){
return fMap;
}
function showEagle1() {


// getFMap().getFDraw().drawSimplePoint(84.822855,45.55284,'red','4',0);

//sendMessage("vector","createSimplePoint",'2','0.8','0','circle','id',group)
// getFMap().getFVector.createSimplePoint('2','0.8','0','circle','id','group');
// alert(getFMap().getFVector());

// var color_value = "#FF0000";
// var point_size= 10;
// var point_type = 0;
// var id = "id";
// var group = "group";

// getFMap().getFVector().createSimplePoint(color_value,point_size,point_type,id,group);






// this.drawImagePoint = function(x,y,imgurl,width,height,id,group) {
// ftool.sendMessage("draw",x,y,imgurl,width,height,id,group);
// }



//getFMap().getFDraw().drawImagePoint("84.822855","45.55284",'http://www.baidu.com/img/baidu_sylogo1.gif','500','500', 'id', 'group');


// alert('测试ing...');

// 1
getFMap().getFInput().inputPoint(callBackMessage);

// getFMap()

//2 inputRect
// capturePartMap();

//3inputLine
// getFMap().getFInput().inputLine(null);

//4 inputPoly
// getFMap().getFInput().inputPoly(null);

// eagleFlag=!eagleFlag;
// getFMap().showEagle(eagleFlag);
}

function callBackMessage(x,y){

getFMap().getFDraw().drawImagePoint (x,y,'http://www.baidu.com/img/baidu_sylogo1.gif','300','300', 'id', 'group')

getFMap().centerAt(x,y);
alert(x+'---'+y);

}


function showEagle2() {

alert('测试ing...');

//1
getFMap().getFInput().inputPoint();


}
function showEagle3() {

alert('测试ing...');


getFMap().getFInput().inputPoly(null);


}
function showEagle4() {

alert('测试ing...');

getFMap().getFInput().inputPoly(null);


}

function capturePartMap() {
getFMap().getFInput().inputRect(capturePartMapBack);
}

function capturePartMapBack(x1,y1,x2,y2) {
alert(x1+"--"+y1+"--"+x2+"--"+y2);
getFMap().clearInput();
getFMap().captureMapBox(x1,y1,x2,y2,captureMapBack);
}

function dingwei(array){
alert('here');
// getFMap().setMapLevel(2);
// for(var i=0;i<array.length;i++){

// getFMap().getFInput().inputPoint(callBackMessage);

// getFMap().getFDraw().drawImagePoint (85.09566,45.664479,'http://www.baidu.com/img/baidu_sylogo1.gif','20','20', 'id', 'group')
getFMap().getFDraw().drawImagePoint ("74.822855","45.55284",'http://www.baidu.com/img/baidu_sylogo1.gif','300','300', 'id', 'group')
// }
// getFMap().setMapLevel(2);
// getFMap().centerAt(85.09566,45.664479);

var temp1 = (getFMap().getMapMinx()+getFMap().getMapMaxx())*0.5;
var temp2 =(getFMap().getMapMiny()+getFMap().getMapMaxy())*0.5;

// alert(temp1+"--"+temp2);


getFMap().centerAt("74.822855","45.55284");
// getFMap().centerAt(85.09566,45.664479);
// getFMap().centerAt(temp1,temp2);




// this.getMapMinx = function() {
// var ret=ftool.getMessage("getMapMinx");
// return parseFloat(ret);
// }
// this.getMapMiny = function() {
// var ret=ftool.getMessage("getMapMiny");
// return parseFloat(ret);
// }
// this.getMapMaxx = function() {
// var ret=ftool.getMessage("getMapMaxx");
// return parseFloat(ret);
// }
// this.getMapMaxy = function() {
// var ret=ftool.getMessage("getMapMaxy");
// return parseFloat(ret);
// }



getFMap().refresh();



}




</script>


</head>
<body>
<h1>halo</h1>
<div style="position: absolute; top: 0px; left: 500px;">
<button id="btn001" onclick="showEagle1()">Testing1</button>
<button id="btn001" onclick="dingwei(null)">Testing2</button>
<button id="btn001" onclick="showEagle3()">Testing3</button>
<button id="btn001" onclick="showEagle4()">Testing4</button>
</div>

</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值