我们的GIS网站: ArcIMS+ASP.NET

ue892k 2004-12-09 03:17:45
http://map.ilanzhou.com

欢迎大家访问,并提出宝贵意见。谢谢。
...全文
187 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zkjbeyond 2004-12-10
  • 打赏
  • 举报
回复
其实个人觉得webgis客户端javascript应该做更多的事. 控制器应该用javascript实现.

function sendServer(){
.
.
url+="&level="+level+"&fastid="+FastId+"&imgwidth="+imgwidth+"&imgheight="+imgheight;
parent.postFrame.document.location="url";
.
.
}
function processXml(str){
var imageurl=getImageUrl(str);
ctl("mapImage").src=imageurl;

}

隐藏 iframe postFrame mapsrv.aspx
//java语法
<%
得到参数
处理 得到处理结果 str
<script>
parent.processXml(<%=str%>);
</script>
%>
zkjbeyond 2004-12-10
  • 打赏
  • 举报
回复
为什么不直接

ctl("mapImage").src=http://202.*.*.*/output.*.jpg 呢.
还要用mapsrv.aspx 读取 图片,然后输出.不明智.
zkjbeyond 2004-12-10
  • 打赏
  • 举报
回复
function getMap(op)
{
var url="mapsrv.aspx?op="+op;
var imgwidth=697;
var height=513;
imgwidth=ctl("mapImage").width;
imgheight=ctl("mapImage").height;
switch(op)
{
case 11://fast map
url+="&level="+level+"&fastid="+FastId+"&imgwidth="+imgwidth+"&imgheight="+imgheight;
break
case 21://zoom map
url+="&level="+level+"&imgwidth="+imgwidth+"&imgheight="+imgheight;
break
case 22://move map
url+="&direction="+Direction+"&imgwidth="+imgwidth+"&imgheight="+imgheight;
break
case 23://center map
url+="&imgx="+MapX+"&imgy="+MapY+"&imgwidth="+imgwidth+"&imgheight="+imgheight;
break
case 5://buffer map
url+="&buffer1="+Buffer1+"&buffer2="+Buffer2+"&buffer3="+Buffer3+"&imgwidth="+imgwidth+"&imgheight="+imgheight;
break
case 24://refresh map
url+="&imgwidth="+imgwidth+"&imgheight="+imgheight;
break
case 9://identify
url+="&imgx="+MapX+"&imgy="+MapY+"&imgwidth="+imgwidth+"&imgheight="+imgheight+"&factor="+factor+"&mapclickstate="+MapClickState;
break
case 10://label map
url+="&imgx="+MapX+"&imgy="+MapY+"&imgwidth="+imgwidth+"&imgheight="+imgheight;
break;
case 26://clearmeasure
url+="&imgwidth="+imgwidth+"&imgheight="+imgheight;
break;
case 65://measure map
url+="&imgx="+MapX+"&imgy="+MapY+"&imgwidth="+imgwidth+"&imgheight="+imgheight+"&mapclickstate="+MapClickState;
break
}
ctl("mapImage").src=url;
//ctl("MapImage").style.filter="Gray()";
//setTimeout('resetImage()',2000);
}

改动这个函数 性能大可提高.
abkn 2004-12-09
  • 打赏
  • 举报
回复
测距功能的实现,好像能改进
abkn 2004-12-09
  • 打赏
  • 举报
回复
真不错呢,刚看了,

2,142

社区成员

发帖
与我相关
我的任务
社区描述
它是一种特定的十分重要的空间信息系统。它是在计算机硬、软件系统支持下,对整个或部分地球表层(包括大气层)空间中的有关地理分布数据进行采集、储存、管理、运算、分析、显示和描述的技术系统。
社区管理员
  • 地理信息系统
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧