110楼#
发布于:2004-09-10 23:19
<P>将zoom in所拖动的框的左上和右下的经纬度值传给打开Html Viewer 的ASP页面的方法:(这可是俺千辛万苦摸索出来的,不知对刚接触ArcIMS的朋友是否有帮助)</P><P>修改javascript目录下的aimsNavigation.js文件,如下</P><P> var LongMin=mapX;
var LatMax=mapY;</P><P>……………………</P><P>// start zoom in.... box displayed function startZoomBox(e) { moveLayer("theMap",hspc,vspc); getImageXY(e); // keep it within the MapImage if ((mouseX<iWidth) ;; (mouseY<iHeight)) { if (zooming) { stopZoomBox(e); } else { x1=mouseX; y1=mouseY x2=x1+1; y2=y1+1; zleft=x1; ztop=y1; zbottom=y1; zright=x1 boxIt(x1,y1,x2,y2); zooming=true; var tempBottom=lastBottom; //////////////////////////////////////////////////////自己添加 getMapXY(mouseX,mouseY); LongMin=mapX; LatMax=mapY; parent.window.opener.Form1.TxtLongMin.value=mapX; parent.window.opener.Form1.TxtLatMax.value=mapY; parent.window.opener.Form1.TxtLongMax.value=mapX; parent.window.opener.Form1.TxtLatMin.value=mapY; //////////////////////////////////////////////////////////// /* if (isNav4) { showLayer("zoomBoxTop"); showLayer("zoomBoxLeft"); showLayer("zoomBoxRight"); showLayer("zoomBoxBottom"); } else { showLayer("zoomBox"); } */ } } return false; }</P><P>// stop zoom box display... zoom in function stopZoomBox(e) { zooming=false; hideLayer("zoomBoxTop"); hideLayer("zoomBoxLeft"); hideLayer("zoomBoxRight"); hideLayer("zoomBoxBottom"); // hideLayer("zoomBox"); if ((zright <zleft+2) ;; (zbottom < ztop+2)) { zoomin(e); } else { var tempLeft=lastLeft; var tempRight=lastRight; var tempTop=lastTop; var tempBottom=lastBottom; //////////////////////////////////////设置左下点坐标 getMapXY(mouseX,mouseY); if(mapX>LongMin) {parent.window.opener.Form1.TxtLongMax.value=mapX;} else { parent.window.opener.Form1.TxtLongMax.value.value=LongMin; parent.window.opener.Form1.TxtLongMin.value=mapX; } if(mapY<LatMax) {parent.window.opener.Form1.TxtLatMin.value=mapY;} else { parent.window.opener.Form1.TxtLatMin.value=LatMax; parent.window.opener.Form1.TxtLatMax.value=mapY; }</P><P> /////////////////////////////////////////////////////////// saveLastExtent(); pixelX = xDistance / iWidth; var theY = iHeight - ztop; pixelY = yDistance / iHeight; eTop = pixelY * theY + eBottom; eRight = pixelX * zright + eLeft; eLeft = pixelX * zleft + eLeft; theY = iHeight - zbottom; pixelY = yDistance / iHeight; eBottom = pixelY * theY + eBottom; window.scrollTo(0,0); sendMapXML(); } return true;</P><P>} </P> |
|
111楼#
发布于:2004-09-04 10:14
好人呵
|
|
112楼#
发布于:2004-09-03 15:34
<P>大家这么积极,我转贴一个一个非常好的ARCIMS的安装帮助的地址!</P><P><a href="http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articleShow;d=23450" target="_blank" >http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articleShow;d=23450</A></P>
|
|
113楼#
发布于:2004-09-03 13:32
<P>强烈支持ing,另外发现问题,发现好资料,必将分享出来</P>
|
|
|
114楼#
发布于:2004-09-01 13:14
<img src="images/post/smile/dvbbs/em06.gif" /><img src="images/post/smile/dvbbs/em06.gif" /><img src="images/post/smile/dvbbs/em06.gif" /><img src="images/post/smile/dvbbs/em07.gif" /><img src="images/post/smile/dvbbs/em07.gif" />
|
|
|
115楼#
发布于:2004-09-01 12:55
<P>顶</P><P>狂顶</P>
|
|
|
116楼#
发布于:2004-08-28 22:17
<P>回第8楼:</P><P>如果你用的是ArcIMS4或者ArcIMS401建议使用ESRI北京公司提供的汉化包。我一直用这个没有碰到你说的问题。</P><P><U><FONT color=#800080><a href="http://www.esrichina-bj.cn/download/ESRIdown/ESRIDownloadIndex.htm" target="_blank" >http://www.esrichina-bj.cn/download/ESRIdown/ESRIDownloadIndex.htm</A></FONT></U></P><P>没有碰到这个问题,因此不是很明白你的问题出在哪里,不过map自带的中文属性信息如果是在地图服务配置文件里面的话也应该改成相应的font ="黑体"而不是font="Arial".</P><P>注意:在ArcXML.js里面var charEncoding = "UTF-8";</P>
|
|
|
117楼#
发布于:2004-08-28 14:54
谢谢,顶
|
|
118楼#
发布于:2004-08-28 00:55
<P>ArcIMS在html viewer中中文显示为乱码:</P><P>可以参考<a href="http://www.esrichina-bj.cn/support/esri/FAQ/answer39.htm。" target="_blank" >http://www.esrichina-bj.cn/support/esri/FAQ/answer39.htm。</A></P><P>即:1、编辑位于工作目录<FONT face=Arial>javascript</FONT>目录下的<FONT face=Arial>aimsXML.js</FONT>文件<FONT face=Arial>. </FONT>将下行</P><P align=justify><FONT face=Arial>var charSet = "ISO-8859-1"</FONT>替换为<FONT face=Arial>var charSet = </FONT>某个中文字符集。</P><P align=justify>例如 <FONT face=Arial>var charSet="GB2312"</FONT></P><P align=justify>2、编辑位于工作目录下的<FONT face=Arial>viewer.htm</FONT>和<FONT face=Arial>mapFrame.htm</FONT>文件。参照第五步,编辑下行<FONT face=Arial>:</FONT></P><P align=left><FONT face=Arial><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></FONT></P><P align=left>将<FONT face=Arial>ISO-8859-1</FONT>替换为所需字符集,如<FONT face=Arial>GB2312</FONT>。</P><P align=left>3、默认的,<FONT face=Arial>ArcIMS HTML Viewer</FONT>使用<FONT face=Arial>Arial</FONT>字库。为了正确显示字体,编辑<FONT face=Arial>ArcIMSParam.js</FONT>文件相应部分<FONT face=Arial>:</FONT></P><P align=left><FONT face=Arial>var legFont="Arial"</FONT>;</P><P align=left>将<FONT face=Arial>Arial</FONT>替换为相应的系统字库。如改为:<FONT face=Arial>var legFont="</FONT>黑体<FONT face=Arial>";</FONT></P><P align=left>……</P><P align=left>我用上述方法将原来可显示和选择有那些层的层的中文名字正确显示。</P><P align=left>但还有一问题:在<FONT face=Arial>aimsXML.js中添加的中文版权信息仍显示为乱码。map自带的中文属性信息也还是乱码。有劳高手帮忙解决。</FONT></P>
|
|
119楼#
发布于:2004-08-27 11:34
<P><img src="http://www.gisempire.com/bbs/Skins/Default/emot/em08.gif">多谢斑竹!!我的开发工作就是想通过客户端选择要进行render的字段,根据写好的对应规则来进行动态的render.所以不能在配置地图服务(config)中事先做好。我用函数“writexml”根据客户端所选字段动态编写request ,然后通过函数“sendtoserver”传给服务器,然后我的map就刷新成render后的图像,我不懂您的意思怎样改才能使它不变回原来的样子?<img src="http://www.gisempire.com/bbs/Skins/Default/emot/em02.gif"></P>
|
|