ArcIMS Custom.js定制函数的模版
来源:互联网 发布:网络胜利组漫画178 编辑:程序博客网 时间:2024/06/04 17:49
////////////////////////////////////////////////////////////////////////
// aimsCustom.js
// 缺省生成的aimsCustom.js是添加用于定制函数的模版
////////////////////////////////////////////////////////////////////////
//***************************************地址匹配函数******************************************
/*
* 函数名 addressLocation
* 描 述 在地图上显示地址匹配坐标点
* 参数说明 x,y:地址匹配坐标点的地图坐标
* name :地址匹配点的地图标识
* 返回结果 无
* 使用的公共变量 limitRight limitLeft limitTop limitBottom selectPointMargin
*
* aimsMap.js中的
* eLeft (Numeric/Dynamic) Current extent left (minimum x-coordinate).
* Formerly called left.
* eRight (Numeric/Dynamic) Current extent right (maximum x-coordinate).
* Formerly called right.
* eTop (Numeric/Dynamic) Current extent top (maximum y-coordinate).
* Formerly called top.
* eBottom (Numeric/Dynamic) Current extent bottom (minimum y-coordinate).
* Formerly called bottom.
* showGeocode (Boolean/Dynamic) If true, map request will include
* command to draw point at geocodeX, geocodeY
* with an optional label. Updated by viewer on
* response of address match request or
* zoomToPoint() function.
* geocodeX (Numeric/Dynamic) Geocode point x-coordinate. Updated by
* viewer on address match response or
* by zoomToPoint().
* geocodeY (Numeric/Dynamic) Geocode point y-coordinate. Updated by
* viewer on address match response or
* by zoomToPoint().
* 调 用 sendMapXML(aimsXML.js)
* 被调用
*/
function addressLocation(x,y,name){
legendVisible=false;
hasTOC=false;
var mWMargin = 0;
var mHMargin = 0;
mWMargin = Math.abs(limitRight-limitLeft) * (selectPointMargin/10);
mHMargin = Math.abs(limitTop-limitBottom) * (selectPointMargin/10);
saveLastExtent();
eLeft = parseFloat(x) - parseFloat(mWMargin);
eRight = parseFloat(x) + parseFloat(mWMargin);
eTop = parseFloat(y) + parseFloat(mHMargin);
eBottom = parseFloat(y) - parseFloat(mHMargin);
showGeocode=true;
geocodeX=x;
geocodeY=y;
geocodeLabel=name;
sendMapXML();
}
/*****************************************************************************
* aimsXML.js
* send the created xml request to map server
*/
function sendMapXML() {
// ask for the Main map
//window.onerror=clearError;
beforeMapRefresh();
//window.onerror=resetError;
showRetrieveMap();
var theText = writeXML();
if (debugOn==2) alert(msgList[12] + theText);
//alert(theText);
//hasTOC=false;
sendToServer(imsURL,theText,1);
}
/*****************************************************************************
*function writeXML()
接收response
processXML(theReplyIn)
Arguments:
theReplyIn--String containing returned ArcXML response.
Returned Value:
None
Description:
Passes the ArcXML response to the appropriate function for processing. The key global is XMLMode,which determines which function to call,即设定XMLMode就可以决定processXML(theReplyIn)调用哪个分析response XML的函数。
Calls: appropriate function to parse ArcXML response.
Called by: passXML in dynamic connector-created page in PostFrame on loading.
File:
aimsXML.js
全局变量XMLMode的值<1000,由processXML(theReplyIn)调用其默认函数,>1000即用户自定义时,processXML(theReplyIn)调用useCustomFunction()函数。全局变量XMLMode在aimsXML.js中定义(见Customizing ArcIMS: HTML Viewer第308<315>页)。
useCustomFunction(theReply)
Arguments:
theReply String containing returned ArcXML response.
Returned Value:
None
Description:
Available for custom processing of returned ArcXML responses. The function processXML will call this function if the value of the global XMLMode is 1,000 or greater.
Uses: XMLMode.
Calls: hideLayer in aimsDHTML.js.
Called by: processXML in aimsXML.js.
File:
aimsCustom.js
- ArcIMS Custom.js定制函数的模版
- 定制自己的vue模版
- arcims 讲座四:ArcIMS(HTML Viewer)定制开发探讨
- 定制控件Custom Components
- ArcIMS学习之 定制HTML VIEWER笔记
- ArcIMS学习之 定制HTML VIEWER笔记
- 简单的函数模版
- 函数模版与模版的特化
- arcims开发(arcIMS 客户端 连接器的选择)
- 自定制模版
- 使用ArcIms的牢骚
- ArcIMS的调试模式
- ArcIMS的学习论坛
- 使用ArcIms的牢骚
- 打开arcims的数据
- ArcIMS的体系结构
- js的模版引擎laytpl
- 函数模版和模版函数,类模版和模版类的区别
- javascript从excel中读取数据_自己规定行数列数
- 基于Spring的DAO层设计
- 怎样在ArcIMS的应用开发中实现圆形区域选择?
- Allegro学习笔记五
- 学习心得
- ArcIMS Custom.js定制函数的模版
- javascript从excel中读取数据并显示
- WinSock网络编程学习笔记
- HTMLViewer鸟瞰图用框架实现
- linux下深入学习sniffer
- javascript向excel中添加数据
- Linux下利用ARP欺骗实现Sniffer目的
- 关键词:MSN变种病毒 专杀工具
- LINUX TELNET自动创建FTP用户