📄 jitk_coordinate.js
字号:
/*
* Offbeat technique that lets us invoke the task via a server-side TaskInfo command
* that requires that we have a paramtereless JS function to call
*/
function JITKtoggleCoordinateTaskWindow() {
toggleWindow('win_EsriTaskCell_coordinateTask');
// taskWindowManager.windows['win_EsriTaskCell_coordinateTask'].fit();
return false;
}
/*
* Standard technique to be able to invoke a task as a tool, so that it can go into a toolbar-tagged JSP file
*/
function JITKToggleCoordinateTaskWindow(id, toolName) {
this.inheritsFrom(new EsriMapToolItem(id, toolName, null));
this.isCommand = true;
this.activate = function() {
toggleWindow('win_EsriTaskCell_coordinateTask');
return false;
}
}
// Called when the value of the type of coordinate system changes (projected or geographic coord system)
// Because of the prevailing naming convention that gives hints to the XSL, the XSL will output JS
// that will call this naming-convention-compliant JS function when a UI element changes. The net effect
// is that an autmatic, silent Submit will occur _of the hidden, non-displayed button_
function CoordinateTask_onchange_coordSystemType() {
var elementRef = document.getElementById('button_CoordinateTask_action_autoActionButtonUiChanged');
if (elementRef) {
elementRef.click();
}
}
// Called when the value of project coordinate system changes
// Auto-invokes the hidden submit button that lets the server method do its thing
function CoordinateTask_onchange_selectedProjCoordSystem() {
var elementRef = document.getElementById('button_coordinateTask_action_autoActionButtonUiChanged');
if (elementRef) {
elementRef.click();
}
}
// Called when the value of geographic coordinate system changes
// Auto-invokes the hidden submit button that lets the server method do its thing
function CoordinateTask_onchange_selectedGraphicCoordSystem() {
var elementRef = document.getElementById('button_coordinateTask_action_autoActionButtonUiChanged');
if (elementRef) {
elementRef.click();
}
}
// Called when the value of geographic transformation changes
// Auto-invokes the hidden submit button that lets the server method do its thing
function CoordinateTask_onchange_selectedGeographicTransformation() {
var elementRef = document.getElementById('button_coordinateTask_action_autoActionButtonUiChanged');
if (elementRef) {
elementRef.click();
}
}
/*
JitkMapPoint.prototype = new EsriMapPoint(); // Here's where the inheritance occurs
JitkMapPoint.prototype.constructor=JitkMapPoint; // Otherwise instances of Cat would have a constructor of Mammal
function JitkMapPoint(id, toolName, isMarkerTool) {
this.name = toolName;
this.id = id;
this.isMarker = isMarkerTool;
}
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -