422 lines
1.9 MiB
JavaScript
422 lines
1.9 MiB
JavaScript
|
/******/ (function(modules) { // webpackBootstrap
|
|||
|
/******/ // The module cache
|
|||
|
/******/ var installedModules = {};
|
|||
|
/******/
|
|||
|
/******/ // The require function
|
|||
|
/******/ function __webpack_require__(moduleId) {
|
|||
|
/******/
|
|||
|
/******/ // Check if module is in cache
|
|||
|
/******/ if(installedModules[moduleId]) {
|
|||
|
/******/ return installedModules[moduleId].exports;
|
|||
|
/******/ }
|
|||
|
/******/ // Create a new module (and put it into the cache)
|
|||
|
/******/ var module = installedModules[moduleId] = {
|
|||
|
/******/ i: moduleId,
|
|||
|
/******/ l: false,
|
|||
|
/******/ exports: {}
|
|||
|
/******/ };
|
|||
|
/******/
|
|||
|
/******/ // Execute the module function
|
|||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|||
|
/******/
|
|||
|
/******/ // Flag the module as loaded
|
|||
|
/******/ module.l = true;
|
|||
|
/******/
|
|||
|
/******/ // Return the exports of the module
|
|||
|
/******/ return module.exports;
|
|||
|
/******/ }
|
|||
|
/******/
|
|||
|
/******/
|
|||
|
/******/ // expose the modules object (__webpack_modules__)
|
|||
|
/******/ __webpack_require__.m = modules;
|
|||
|
/******/
|
|||
|
/******/ // expose the module cache
|
|||
|
/******/ __webpack_require__.c = installedModules;
|
|||
|
/******/
|
|||
|
/******/ // identity function for calling harmony imports with the correct context
|
|||
|
/******/ __webpack_require__.i = function(value) { return value; };
|
|||
|
/******/
|
|||
|
/******/ // define getter function for harmony exports
|
|||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
|||
|
/******/ Object.defineProperty(exports, name, {
|
|||
|
/******/ configurable: false,
|
|||
|
/******/ enumerable: true,
|
|||
|
/******/ get: getter
|
|||
|
/******/ });
|
|||
|
/******/ }
|
|||
|
/******/ };
|
|||
|
/******/
|
|||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|||
|
/******/ __webpack_require__.n = function(module) {
|
|||
|
/******/ var getter = module && module.__esModule ?
|
|||
|
/******/ function getDefault() { return module['default']; } :
|
|||
|
/******/ function getModuleExports() { return module; };
|
|||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
|||
|
/******/ return getter;
|
|||
|
/******/ };
|
|||
|
/******/
|
|||
|
/******/ // Object.prototype.hasOwnProperty.call
|
|||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|||
|
/******/
|
|||
|
/******/ // __webpack_public_path__
|
|||
|
/******/ __webpack_require__.p = "";
|
|||
|
/******/
|
|||
|
/******/ // Load entry module and return exports
|
|||
|
/******/ return __webpack_require__(__webpack_require__.s = 5);
|
|||
|
/******/ })
|
|||
|
/************************************************************************/
|
|||
|
/******/ ([
|
|||
|
/* 0 */
|
|||
|
/***/ (function(module, exports) {
|
|||
|
|
|||
|
/* COPYRIGHT 2012 SUPERMAP
|
|||
|
* 本程序只能在有效的授权许可下使用。
|
|||
|
* 未经许可,不得以任何手段擅自使用或传播。*/
|
|||
|
|
|||
|
/**
|
|||
|
* @requires SuperMap/BaseTypes.js
|
|||
|
*/
|
|||
|
|
|||
|
/**
|
|||
|
* Namespace: SuperMap.Lang
|
|||
|
* 国际化的命名空间,包含多种语言和方法库来设置和获取当前的语言。
|
|||
|
*/
|
|||
|
//var SuperMap = window.SuperMap = window.SuperMap || {};
|
|||
|
|
|||
|
/***
|
|||
|
* @private
|
|||
|
* @type {{translate: SuperMap.PlotLang.translate}}
|
|||
|
*/
|
|||
|
SuperMap.PlotLang = {
|
|||
|
/**
|
|||
|
* APIMethod: translate
|
|||
|
* 从当前语言字符串的字典查找key。
|
|||
|
* getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
|
|||
|
*
|
|||
|
* Parameters:
|
|||
|
* key - {String} 字典中i18n字符串值的关键字.
|
|||
|
* context - {Object} <SuperMap.String.format> 使用此参数。
|
|||
|
*
|
|||
|
* Returns:
|
|||
|
* {String} 国际化的字符串。
|
|||
|
*/
|
|||
|
translate: function(key, context) {
|
|||
|
var dictionary = SuperMap.PlotLang["zh-CN"];
|
|||
|
var message = dictionary && dictionary[key];
|
|||
|
if(!message) {
|
|||
|
// Message not found, fall back to message key
|
|||
|
message = key;
|
|||
|
}
|
|||
|
if(context) {
|
|||
|
message = SuperMap.String.format(message, context);
|
|||
|
}
|
|||
|
return message;
|
|||
|
}
|
|||
|
|
|||
|
};
|
|||
|
|
|||
|
|
|||
|
/**
|
|||
|
* @private
|
|||
|
* APIMethod: SuperMap.plotI18n
|
|||
|
* <SuperMap.Lang.translate> 的别名. 当前语言字符串的字典查找key。
|
|||
|
* getCode获取的值用来判断合适的字典。字典存储在 <SuperMap.Lang> 方法中。
|
|||
|
*
|
|||
|
* Parameters:
|
|||
|
* key - {String} 字典中i18n字符串值的关键字.
|
|||
|
* context - {Object} <SuperMap.String.format> 使用此参数。
|
|||
|
*
|
|||
|
* Returns:
|
|||
|
* {String} 国际化的字符串。
|
|||
|
*/
|
|||
|
SuperMap.plotI18n = SuperMap.PlotLang.translate;
|
|||
|
|
|||
|
|
|||
|
/**
|
|||
|
* @private
|
|||
|
* */
|
|||
|
SuperMap.PlotLang["zh-CN"] = {
|
|||
|
//字体
|
|||
|
'SongTi':"宋体",
|
|||
|
//text
|
|||
|
'text':"文本",
|
|||
|
'textSizeLabel':"字体大小",
|
|||
|
'textSizeTitle':"字体大小",
|
|||
|
'textFaceNameLabel':"字体",
|
|||
|
'textFaceNameTitle':"字体",
|
|||
|
'textAlignLabel':"水平对齐方式",
|
|||
|
'textAlignTitle':"文本的水平对齐方式",
|
|||
|
'textVerticalAlignmentLabel':"垂直对齐方式",
|
|||
|
'textVerticalAlignmentTitle':"文本的垂直对齐方式",
|
|||
|
'textHaloRadiusLabel':"文本边框宽度",
|
|||
|
'textHaloRadiusTitle':"文本的外围边框的宽度",
|
|||
|
'textHaloColorLabel':"文本边框颜色",
|
|||
|
'textHaloColorTitle':"文本的外围边框的颜色",
|
|||
|
'textFillLabel':"文本颜色",
|
|||
|
'textFillTitle':"文本的颜色值",
|
|||
|
'textOpacityLabel':"透明度",
|
|||
|
'textOpacityTitle':"文本的透明度",
|
|||
|
'textDxLabel':"横向偏移",
|
|||
|
'textDxTitle':"文本的横向偏移值",
|
|||
|
'textDyLabel':"纵向偏移值",
|
|||
|
'textDyTitle':"文本的纵向偏移值",
|
|||
|
'textCompOpLabel':"叠加方式",
|
|||
|
'textCompOpTitle':"文本之间相互叠加里使用的覆盖或者是异或等运算方式",
|
|||
|
'expandingPointContent':"展",
|
|||
|
'volleyPointContent':"齐",
|
|||
|
'rendezvousPointContent':"会",
|
|||
|
'supplyPointContent':"补",
|
|||
|
//symbolAlgo
|
|||
|
//JB
|
|||
|
'symbolAlgo_17703':"加",
|
|||
|
'symbolAlgo_17704':"急",
|
|||
|
'symbolAlgo_21600':"冲",
|
|||
|
'symbolAlgo_28000_1':"危",
|
|||
|
'symbolAlgo_28000_2':"中",
|
|||
|
'symbolAlgo_28000_3':"轻",
|
|||
|
'symbolAlgo_315':"突击",
|
|||
|
'symbolAlgo_31304':"慑阻",
|
|||
|
'symbolAlgo_3010301':"调",
|
|||
|
'symbolAlgo_3010303':"出",
|
|||
|
'symbolAlgo_3010304':"协",
|
|||
|
|
|||
|
//WJ
|
|||
|
'symbolAlgo_2121505':"火",
|
|||
|
'symbolAlgo_2121506':"墩",
|
|||
|
'symbolAlgo_2121507':"复",
|
|||
|
'symbolAlgo_2121601':"遥",
|
|||
|
'symbolAlgo_2121602':"障",
|
|||
|
'symbolAlgo_30010':"?",
|
|||
|
'symbolAlgo_3001101':"集",
|
|||
|
'symbolAlgo_3001102':"暴",
|
|||
|
'symbolAlgo_3001103':"骚",
|
|||
|
'symbolAlgo_3001104':"私",
|
|||
|
'symbolAlgo_3001105':"盗",
|
|||
|
'symbolAlgo_30020':"水",
|
|||
|
'symbolAlgo_3002001':"震",
|
|||
|
'symbolAlgo_3002004':"火",
|
|||
|
'symbolAlgo_30025':"滞",
|
|||
|
'symbolAlgo_5010301':"调",
|
|||
|
'symbolAlgo_5010303':"出",
|
|||
|
'symbolAlgo_5010304':"协",
|
|||
|
'symbolAlgo_5010401':"JZ",
|
|||
|
'symbolAlgo_5022001':"ZD0",
|
|||
|
'symbolAlgo_5034801':"催",
|
|||
|
"symbolAlgo_60203":"避",
|
|||
|
'symbolAlgo_60301':"爆",
|
|||
|
'symbolAlgo_6030101':"挖",
|
|||
|
'symbolAlgo_6030102':"浇",
|
|||
|
'symbolAlgo_6030103':"砌",
|
|||
|
'symbolAlgo_6030104':"装",
|
|||
|
'symbolAlgo_6030105':"石",
|
|||
|
'symbolAlgo_6030106':"沙",
|
|||
|
'symbolAlgo_6030107':"练",
|
|||
|
'symbolAlgo_60304':"隧",
|
|||
|
'symbolAlgo_3002501':"踏",
|
|||
|
'symbolAlgo_30026':"灾",
|
|||
|
'symbolAlgo_40104':"缉",
|
|||
|
'symbolAlgo_4030301':"标",
|
|||
|
'symbolAlgo_4030302':"劝",
|
|||
|
'symbolAlgo_4030303':"疏",
|
|||
|
'symbolAlgo_40304':"警",
|
|||
|
'symbolAlgo_4030401':"警",
|
|||
|
|
|||
|
//basic symbol
|
|||
|
'polyLine':"折线",
|
|||
|
'parallelogram':"平行四边形",
|
|||
|
'circle':"圆",
|
|||
|
'ellipse':"椭圆",
|
|||
|
'annotation':"注记",
|
|||
|
'regularPolygon':"正多边形",
|
|||
|
'polygon':"多边形",
|
|||
|
'bezier':"贝塞尔曲线",
|
|||
|
'closedBesselCurve':"闭合贝塞尔曲线",
|
|||
|
'kidney':"集结地",
|
|||
|
'brace':"大括号",
|
|||
|
'trapezoid':"梯形",
|
|||
|
'rectangle':"矩形",
|
|||
|
'chord':"弓形",
|
|||
|
'sector':"扇形",
|
|||
|
'arc':"弧线",
|
|||
|
'parallel':"平行线",
|
|||
|
'annoframe':"注记指示框",
|
|||
|
'tooltipBoxM':"多角标注框",
|
|||
|
'runway':"跑道线",
|
|||
|
'curveEight':"八字形",
|
|||
|
'arrowLine':"箭头线",
|
|||
|
'pathText':"沿线注记",
|
|||
|
'concentricCircle':"同心圆",
|
|||
|
'combinedCircle':"组合圆",
|
|||
|
'freeCurve':"自由线",
|
|||
|
'nodeChain':"节点链",
|
|||
|
'lineMarking':"线型标注",
|
|||
|
'symbolTextBox':"标注框",
|
|||
|
|
|||
|
'parallelFlatArrow':"平行平耳箭头",
|
|||
|
'multipleArrow':"多箭头",
|
|||
|
'trapezoidalFlatArrow':"梯形平耳箭头",
|
|||
|
'besselPointArrow':"贝塞尔尖耳箭头",
|
|||
|
'besselArrow':"普通贝塞尔箭头",
|
|||
|
'doubleArrow':"钳击箭头",
|
|||
|
'brokenSpaceTriangleArrow':"折线空三角箭头",
|
|||
|
'besselDovetailArrow':"贝塞尔燕尾箭头",
|
|||
|
'ordinaryLineArrow':"普通折线箭头",
|
|||
|
'besselPointedEarsTailArrow':"贝塞尔尖耳燕尾箭头",
|
|||
|
'besselTipArrow':"贝塞尔尖耳单点箭头",
|
|||
|
'besselArrowNoGraph':"普通贝塞尔箭头(不随图)",
|
|||
|
'brokenSpaceTriangleArrowNoGraph':"折线空三角箭头(不随图)",
|
|||
|
'besselPointedEarsTailArrowNoGraph':"贝塞尔尖耳燕尾箭头(不随图)",
|
|||
|
'ordinaryLineArrowNoGraph':"普通折线箭头(不随图)",
|
|||
|
'combianationArrow':"组合箭头",
|
|||
|
'symbolAlgo_311':'进攻方向',
|
|||
|
'symbolAlgo_317':'钳击',
|
|||
|
|
|||
|
//new obj
|
|||
|
'airDeployment':"空军兵力部署",
|
|||
|
'airRoute':"空军航线",
|
|||
|
'arcRegion':"扇形区域",
|
|||
|
'flagGroup':"多旗",
|
|||
|
'lineRelation':"对象间连线",
|
|||
|
'polygonRegion':"多边形区域管理",
|
|||
|
'navyRoute':"海军航线",
|
|||
|
'missileRoute':"导弹航线",
|
|||
|
'navyDeployment':"海军兵力部署",
|
|||
|
'satelliteTimeWindows':"卫星时间窗",
|
|||
|
'satellite':"卫星",
|
|||
|
'symbolText':"对象标注",
|
|||
|
'symbolText1':"对象标注(带指示线)",
|
|||
|
'interferenceBeam':"干扰波束",
|
|||
|
'groupObject':"组合对象",
|
|||
|
|
|||
|
//routeNodeTypeName
|
|||
|
'RENDEZVOUS': "会合点",
|
|||
|
'EXPANDING': "展开点",
|
|||
|
'VOLLEY': "齐射点",
|
|||
|
'STANDBY': "待机点",
|
|||
|
'SUPPLY': "补给点",
|
|||
|
'TAKEOFF': "起飞点",
|
|||
|
'INITIAL': "初始点",
|
|||
|
'VISUALINITAL': "可视初始点",
|
|||
|
'LANCH': "发射点",
|
|||
|
'TURNING': "转弯点",
|
|||
|
'AIMING': "瞄准点",
|
|||
|
'COMMONROUTE': "普通航路点",
|
|||
|
'WEAPONLAUNCH': "武器发射点",
|
|||
|
'TARGET': "目标点",
|
|||
|
'ATTACK':"攻击点",
|
|||
|
'SUPPRESS':"压制点",
|
|||
|
'EIGHTSPIRAL':"八字盘旋点",
|
|||
|
'HAPPYVALLEY':"跑马圈点",
|
|||
|
|
|||
|
'LITERATESIGN':"标牌文字",
|
|||
|
|
|||
|
'undoStackOverflow': '撤销的栈溢出',
|
|||
|
|
|||
|
//Mapviewer
|
|||
|
'noContent':'无内容',
|
|||
|
'lableTitle': '_标签图层'
|
|||
|
|
|||
|
};
|
|||
|
|
|||
|
|
|||
|
|
|||
|
/***/ }),
|
|||
|
/* 1 */
|
|||
|
/***/ (function(module, exports) {
|
|||
|
|
|||
|
/*!
|
|||
|
*
|
|||
|
* iclient-plot-algorithms-jb.(http://iclient.supermap.io)
|
|||
|
* Copyright© 2000 - 2018 SuperMap Software Co.Ltd
|
|||
|
* license: undefined
|
|||
|
* version: v9.1.0
|
|||
|
*
|
|||
|
*/!function(t){var e={};function l(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=t,l.c=e,l.d=function(t,e,o){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(o,i,function(e){return t[e]}.bind(null,i));return o},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=225)}([function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4021102=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30800),e}();SuperMap.Plot.AlgoSymbol4021102=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=e.AlgoSymbol4021101=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol30800),e}();SuperMap.Plot.AlgoSymbol4021101=o},function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6020404=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){if(!this.isEdit){var e=.3*this.getSubSymbolScaleValue();e>.05&&(e=.05),this.scaleValues[0]=e}for(var l=SuperMap.Plot.PlottingUtil.polylineDistance(t),o=Math.ab
|
|||
|
|
|||
|
/***/ }),
|
|||
|
/* 2 */
|
|||
|
/***/ (function(module, exports) {
|
|||
|
|
|||
|
/*!
|
|||
|
*
|
|||
|
* iclient-plot-algorithms-wj.(http://iclient.supermap.io)
|
|||
|
* Copyright© 2000 - 2018 SuperMap Software Co.Ltd
|
|||
|
* license: undefined
|
|||
|
* version: v9.1.0
|
|||
|
*
|
|||
|
*/!function(t){var e={};function l(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,l),i.l=!0,i.exports}l.m=t,l.c=e,l.d=function(t,e,o){l.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.t=function(t,e){if(1&e&&(t=l(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)l.d(o,i,function(e){return t[e]}.bind(null,i));return o},l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,"a",e),e},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},l.p="",l(l.s=190)}([function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var l=0;l<e.length;l++){var o=e[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,l,o){return l&&t(e.prototype,l),o&&t(e,o),e}}();var i=e.AlgoSymbol6030601=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var l=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===l.scaleValues.length&&l.scaleValues.push(.1),l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),o(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=this.scaleValues[0]*e,o=t[0].clone(),i=t[1].clone(),n=SuperMap.Plot.PlottingUtil.linePnt(i,o,e+.2*e),r=SuperMap.Plot.PlottingUtil.linePnt(o,i,e+.2*e),a=1.5*l,s=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,i,n),p=SuperMap.Plot.PlottingUtil.getSidePointsOfLine(a,o,r),u=SuperMap.Plot.PlottingUtil.paraLine(t,l,!0),c=SuperMap.Plot.PlottingUtil.paraLine(t,l,!1),P=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],3*e/11),S=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],4*e/11),h=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],7*e/11),y=SuperMap.Plot.PlottingUtil.linePnt(u[0],u[u.length-1],8*e/11),f=[];f.push(s.pntRight),f.push(u[0]),f.push(P),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,f);var g=[];g.push(S),g.push(h),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,g);var b=[];b.push(y),b.push(u[u.length-1]),b.push(p.pntLeft),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,b);var M=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],3*e/11),m=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],4*e/11),d=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],7*e/11),v=SuperMap.Plot.PlottingUtil.linePnt(c[0],c[c.length-1],8*e/11),O=[];O.push(s.pntLeft),O.push(c[0]),O.push(M),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,O);var U=[];U.push(m),U.push(d),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,U);var w=[];w.push(v),w.push(c[c.length-1]),w.push(p.pntRight),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,w);var L=new SuperMap.Geometry.Point((s.pntLeft.x+s.pntRight.x)/2,(s.pntLeft.y+s.pntRight.y)/2),_=new SuperMap.Geometry.Point((P.x+M.x)/2,(P.y+M.y)/2),V=[];V.push(L),V.push(_),this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,V);var A=SuperMap.Plot.PlottingUtil.radian(L,_)*SuperMap.Plot.PlottingUtil.RTOD,T=SuperMap.Plot.Plot
|
|||
|
|
|||
|
/***/ }),
|
|||
|
/* 3 */
|
|||
|
/***/ (function(module, exports) {
|
|||
|
|
|||
|
/*!
|
|||
|
*
|
|||
|
* iclient-plot-algorithms-yj.(http://iclient.supermap.io)
|
|||
|
* Copyright© 2000 - 2018 SuperMap Software Co.Ltd
|
|||
|
* license: undefined
|
|||
|
* version: v9.1.0
|
|||
|
*
|
|||
|
*/!function(t){var e={};function o(l){if(e[l])return e[l].exports;var i=e[l]={i:l,l:!1,exports:{}};return t[l].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,l){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:l})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(l,i,function(e){return t[e]}.bind(null,i));return l},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=14)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol610100=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues.push(.05),o.scaleValues.push(.01)),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,SuperMap.Plot.AlgoSymbol),l(e,[{key:"calculateParts",value:function(){this.init();var t=SuperMap.Plot.PlottingUtil.clonePoints(this.controlPoints);if(!((t=SuperMap.Plot.PlottingUtil.clearSamePts(t)).length<this.minEditPts)){var e=[];e=3>=t.length?SuperMap.Plot.Primitives.getSpatialData(SuperMap.Plot.SymbolType.KIDNEY,t):SuperMap.Plot.PlottingUtil.generateBeizerPointsNoCtrlPt(t,!0),e=SuperMap.Plot.PlottingUtil.clearSamePts(e),this.isEdit||(this.scaleValues[0]=.5*this.getSubSymbolScaleValue(),this.scaleValues[1]=.0625*this.getSubSymbolScaleValue());for(var o=SuperMap.Plot.PlottingUtil.polylineDistance(t),l=o*this.scaleValues[0],i=o*this.scaleValues[1],n=e[0],r=0,a=1;a<e.length;a++){var p=e[a],u=SuperMap.Plot.PlottingUtil.distance(n,p);switch(r%4){case 0:if(u>=l){var s=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,l);this.addCell(SuperMap.Plot.SymbolType.POLYLINESYMBOL,[n,s]),n=s,r++,a--}break;case 1:case 3:var P=3*i;if(u>P)n=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,P),r++,a--;break;case 2:if(u>2*i){var c=SuperMap.Plot.PlottingUtil.findPointInLine(n,p,2*i);this.addCell(SuperMap.Plot.SymbolType.CIRCLESYMBOL,[new SuperMap.Geometry.Point(.5*(n.x+c.x),.5*(n.y+c.y)),c],{fillLimit:!0,fill:!0}),n=c,r++,a--}}}this.finish()}}}]),e}();SuperMap.Plot.AlgoSymbol610100=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var o=0;o<e.length;o++){var l=e[o];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}return function(e,o,l){return o&&t(e.prototype,o),l&&t(e,l),e}}();var i=e.AlgoSymbol530200=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return 0===o.scaleValues.length&&(o.scaleValues[0]=.05,o.scaleValues[1]=.0
|
|||
|
|
|||
|
/***/ }),
|
|||
|
/* 4 */
|
|||
|
/***/ (function(module, exports) {
|
|||
|
|
|||
|
/*!
|
|||
|
*
|
|||
|
* iclient9-plot-webgl.(http://iclient.supermap.io)
|
|||
|
* Copyright© 2000 - 2018 SuperMap Software Co.Ltd
|
|||
|
* license: undefined
|
|||
|
* version: v9.1.0
|
|||
|
*
|
|||
|
*/!function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=115)}([function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),(e.SuperMap=window.SuperMap=window.SuperMap||{}).Widgets=window.SuperMap.Widgets||{}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=o(0);
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(2);var l,r,a;e.Util=i.SuperMap.Util=i.SuperMap.Util||{};i.SuperMap.Util.extend=function(t,e){if(t=t||{},e){for(var o in e){var n=e[o];void 0!==n&&(t[o]=n)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},i.SuperMap.Util.copy=function(t,e){var o;if(t=t||{},e)for(var n in t)void 0!==(o=e[n])&&(t[n]=o)},i.SuperMap.Util.reset=function(t){for(var e in t=t||{})if(t.hasOwnProperty(e)){if("object"===n(t[e])&&t[e]instanceof Array){for(var o in t[e])t[e][o].destroy&&t[e][o].destroy();t[e].length=0}else"object"===n(t[e])&&t[e]instanceof Object&&t[e].destroy&&t[e].destroy();t[e]=null}},i.SuperMap.Util.getElement=function(){for(var t=[],e=0,o=arguments.length;e<o;e++){var n=arguments[e];if("string"==typeof n&&(n=document.getElementById(n)),1===arguments.length)return n;t.push(n)}return t},i.SuperMap.Util.isElement=function(t){return!(!t||1!==t.nodeType)},i.SuperMap.Util.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},i.SuperMap.Util.removeItem=function(t,e){for(var o=t.length-1;o>=0;o--)t[o]===e&&t.splice(o,1);return t},i.SuperMap.Util.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,n=t.length;o<n;o++)if(t[o]===e)return o;return-1},i.SuperMap.Util.modifyDOMElement=function(t,e,o,n,i,l,r,a){e&&(t.id=e),o&&(t.style.left=o.x+"px",t.style.top=o.y+"px"),n&&(t.style.width=n.w+"px",t.style.height=n.h+"px"),i&&(t.style.position=i),l&&(t.style.border=l),r&&(t.style.overflow=r),parseFloat(a)>=0&&parseFloat(a)<1?(t.style.filter="alpha(opacity="+100*a+")",t.style.opacity=a):1===parseFloat(a)&&(t.style.filter="",t.style.opacity="")},i.SuperMap.Util.applyDefaults=function(t,e){t=t||{};var o="function"==typeof window.Event&&e instanceof window.Event;for(var n in e)(void 0===t[n]||!o&&e.hasOwnProperty&&e.hasOwnProperty(n)&&!t.hasOwnProperty(n))&&(t[n]=e[n]);return!o&&e&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&!t.hasOwnProperty("toString")&&(t.toString=e.toString),t},i.SuperMap.Util.getParameterString=function(t){var e=[];for(var o in t){var i=t[o];if(null!=i&&"function"!=typeof i){var l;if("object"===(void 0===i?"undefined":n(i))&&i.constructor===Array){for(var r,a=[],s=0,u=i.length;s<u;s++)r=i[s],a.push(encodeURIComponent(null===r||void 0===r?"":r));l=a.join(",")}else l=encodeURIComponent(i);e.push(encodeURIComponent(o)+"="+l)}}return e.join("&")},i.SuperMap.Util.urlAppend=function(t,e){var o=t;if(e){var n=(t+" ").split(/[?&]/);o+=" "===n.pop()?e:n.length?"&"+e:"?"+e}return o},i.SuperMap.Util.DEFAULT_PRECISION=14,i.SuperMap.Util.toFloat=function(t,e){return null==e&&(e=i.SuperMap.Util.DEFAULT_PRECISION),"number"!=typeof t&&(t=parseFloat(t)),0===e?t:parseFloat(t.toPrecision(e))},i.SuperMap.Util.rad=function(t){return t*Math.PI/180},i.SuperMap.Util.getParameters=function(t){t=null===t||void 0===t?window.location.href:t;var e="";if(i.SuperMap.String.contains(t,"?")){var o=t.indexOf("?")+1,n=i.SuperMap.String.contains(t,"#")?t.indexOf("#"):t.length;e=t.substring(o,n)}for(var l={},r=e.split(/[&;]/),a=0,s=r.length;a<s;++a){var u=r[a].split("=");if(u[0]){var p=u[0];try{p=decodeURIComponent(p)}catch(t){p=unescape(p)}var c=(u[1]||"").replace(/\+/g," ");try{c=decodeURIComponent(c)}catch(t){c=unescape(c)}1==(c=c.split(",")).length&&(c=c[0]),l[p]=c}}return l},i.SuperMap.Util.lastSeqID=0,i.SuperMap.Util.createUniqueID=function(t){return null==t&&(t="id_"),i.SuperMap.Util.lastSeqID+=1,t+i.SuperMap.Util.lastSeqID},i.SuperMap.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36},i.SuperMap.INCHES_PER_UNIT.in=i.SuperMap.INCHES_PER_UNIT.inches,i.SuperMap.INCHES_PER_UNIT.degre
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|||
|
n.SuperMap.inherit=function(t,e){var o,i,l,r=function(){};for(r.prototype=e.prototype,t.prototype=new r,o=2,i=arguments.length;o<i;o++)"function"==typeof(l=arguments[o])&&(l=l.prototype),n.SuperMap.Util.extend(t.prototype,l)},n.SuperMap.mixin=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];for(var n=function t(o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=0;n<e.length;n++)r(this,new e[n](o))},i=0;i<e.length;i++){var l=e[i];r(n,l),r(n.prototype,l.prototype),r(n.prototype,new l)}return n;function r(t,e){var o=Object.getOwnPropertyNames(e);Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(e)));for(var n=0;n<o.length;n++){var i=o[n];if("constructor"!==i&&"prototype"!==i&&"name"!==i&&"length"!==i){var l=Object.getOwnPropertyDescriptor(e,i);window.ActiveXObject?Object.defineProperty(t,i,l||{}):Object.defineProperty(t,i,l)}}}};e.StringExt=n.SuperMap.String={startsWith:function(t,e){return 0==t.indexOf(e)},contains:function(t,e){return-1!=t.indexOf(e)},trim:function(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(t){for(var e=t.split("-"),o=e[0],n=1,i=e.length;n<i;n++){var l=e[n];o+=l.charAt(0).toUpperCase()+l.substring(1)}return o},format:function(t,e,o){e||(e=window);return t.replace(n.SuperMap.String.tokenRegEx,function(t,n){for(var i,l=n.split(/\.+/),r=0;r<l.length;r++)0==r&&(i=e),i=i[l[r]];return"function"==typeof i&&(i=o?i.apply(null,o):i()),void 0===i?"undefined":i})},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(t){return n.SuperMap.String.numberRegEx.test(t)},numericIf:function(t){return n.SuperMap.String.isNumeric(t)?parseFloat(t):t}};var i=e.NumberExt=n.SuperMap.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(t,e){var o=0;return e>0&&(o=parseFloat(t.toPrecision(e))),o},format:function(t,e,o,i){e=void 0!==e?e:0,o=void 0!==o?o:n.SuperMap.Number.thousandsSeparator,i=void 0!==i?i:n.SuperMap.Number.decimalSeparator,null!=e&&(t=parseFloat(t.toFixed(e)));var l=t.toString().split(".");1===l.length&&null==e&&(e=0);var r,a=l[0];if(o)for(var s=/(-?[0-9]+)([0-9]{3})/;s.test(a);)a=a.replace(s,"$1"+o+"$2");if(0==e)r=a;else{var u=l.length>1?l[1]:"0";null!=e&&(u+=new Array(e-u.length+1).join("0")),r=a+i+u}return r}};Number.prototype.limitSigDigs||(Number.prototype.limitSigDigs=function(t){return i.limitSigDigs(this,t)});e.FunctionExt=n.SuperMap.Function={bind:function(t,e){var o=Array.prototype.slice.apply(arguments,[2]);return function(){var n=o.concat(Array.prototype.slice.apply(arguments,[0]));return t.apply(e,n)}},bindAsEventListener:function(t,e){return function(o){return t.call(e,o||window.event)}},False:function(){return!1},True:function(){return!0},Void:function(){}},e.ArrayExt=n.SuperMap.Array={filter:function(t,e,o){var n=[];if(Array.prototype.filter)n=t.filter(e,o);else{var i=t.length;if("function"!=typeof e)throw new TypeError;for(var l=0;l<i;l++)if(l in t){var r=t[l];e.call(o,r,l,t)&&n.push(r)}}return n}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicAlgoSymbolFactory=void 0,o(54);e.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory=SuperMap.Plot.BasicAlgoSymbolFactory||{};SuperMap.Plot.BasicAlgoSymbolFactory.getAlgoSymbol=function(t,e,o){if(0===t)switch(e){case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOL:return new SuperMap.Plot.GeoTooltipBox(o);case SuperMap.Plot.SymbolType.ANNOFRAMESYMBOLM:return new SuperMap.Plot.GeoTooltipBoxM(o);case SuperMap.Plot.SymbolType.PATHTEXT:return new SuperMap.Plot.PathText(o);case SuperMap.Plot.SymbolType.ARROWLINE:return new SuperMap.Plot.ArrowLine(o);case SuperMap.Plot.SymbolType.CURVEEIGHT:return new SuperMap.Plot.CurveEight(o);case SuperMap.Plot.SymbolType.RUNWAY:return new SuperMap.Plot.Runway(o);case SuperMap.Plot.SymbolType.CONCENTRICCIRCLE:return new SuperMap.Plot.ConcentricCircle(o);case SuperMap.Plot.SymbolType.COMBINATIONALCIRCLE:return new SuperMap.Plot.CombinationalCircle(o);case SuperMap.Plot.S
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/o(113),o(108);var i,l=o(107),r=(i=l)&&i.__esModule?i:{default:i},a=o(0),s=o(1);var u=window.fetch,p=(e.setCORS=a.SuperMap.setCORS=function(t){a.SuperMap.CORS=t},e.isCORS=a.SuperMap.isCORS=function(){return void 0!=a.SuperMap.CORS?a.SuperMap.CORS:window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest}),c=(e.setRequestTimeout=a.SuperMap.setRequestTimeout=function(t){return a.SuperMap.RequestTimeout=t},e.getRequestTimeout=a.SuperMap.getRequestTimeout=function(){return a.SuperMap.RequestTimeout||45e3});e.FetchRequest=a.SuperMap.FetchRequest={commit:function(t,e,o,n){switch(t=t?t.toUpperCase():t){case"GET":return this.get(e,o,n);case"POST":return this.post(e,o,n);case"PUT":return this.put(e,o,n);case"DELETE":return this.delete(e,o,n);default:return this.get(e,o,n)}},supportDirectRequest:function(t,e){return s.Util.isInTheSameDomain(t)||p()||e.proxy},get:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){var n={url:t=t.replace(".json",".jsonp"),data:e};return a.SuperMap.Util.RequestJSONPPromise.GET(n)}return this.urlIsLong(t)?this._postSimulatie("GET",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"GET")},delete:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var n={url:t+="&_method=DELETE",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(n)}return this.urlIsLong(t)?this._postSimulatie("DELETE",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"DELETE")},post:function(t,e,o){if(o=o||{},!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var n={url:t+="&_method=POST",data:e};return a.SuperMap.Util.RequestJSONPPromise.POST(n)}return this._fetch(this._processUrl(t,o),e,o,"POST")},put:function(t,e,o){if(o=o||{},t=this._processUrl(t,o),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var n={url:t+="&_method=PUT",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(n)}return this._fetch(t,e,o,"PUT")},urlIsLong:function(t){for(var e=0,o=null,n=0,i=t.length;n<i;n++)(o=t.charCodeAt(n))<127?e++:128<=o&&o<=2047?e+=2:2048<=o&&o<=65535&&(e+=3);return!(e<2e3)},_postSimulatie:function(t,e,o,n){return e+=(e.indexOf("?")>-1?"&":"?")+"_method="+t,"string"!=typeof o&&(o=JSON.stringify(o)),this.post(e,o,n)},_processUrl:function(t,e){if(this._isMVTRequest(t))return t;if(-1===t.indexOf(".json")&&!e.withoutFormatSuffix)if(t.indexOf("?")<0)t+=".json";else{var o=t.split("?");2===o.length&&(t=o[0]+".json?"+o[1])}return e&&e.proxy&&("function"==typeof e.proxy?t=e.proxy(t):(t=decodeURIComponent(t),t=e.proxy+encodeURIComponent(t))),t},_fetch:function(t,e,o,n){return(o=o||{}).headers=o.headers||{},o.headers["Content-Type"]||(o.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),o.timeout?this._timeout(o.timeout,u(t,{method:n,headers:o.headers,body:"PUT"===n||"POST"===n?e:void 0,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})):u(t,{method:n,body:"PUT"===n||"POST"===n?e:void 0,headers:o.headers,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})},_fetchJsonp:function(t,e){return e=e||{},(0,r.default)(t,{method:"GET",timeout:e.timeout}).then(function(t){return t})},_timeout:function(t,e){return new Promise(function(o,n){setTimeout(function(){n(new Error("timeout"))},t),e.then(o,n)})},_getParameterString:function(t){var e=[];for(var o in t){var i=t[o];if(null!=i&&"function"!=typeof i){var l;if("object"===(void 0===i?"undefined":n(i))&&i.constructor===Array){for(var r,a=[],s=0,u=i.length;s<u;s++)r=
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var r=e.Format=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=null,this.keepData=!1,l.Util.extend(this,e),this.options=e,this.CLASS_NAME="SuperMap.Format"}return n(t,[{key:"destroy",value:function(){}},{key:"read",value:function(t){}},{key:"write",value:function(t){}}]),t}();i.SuperMap.Format=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSONFormat=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),l=o(0),r=o(99);
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|||
|
var a=e.JSONFormat=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.indent=" ",o.space=" ",o.newline="\n",o.level=0,o.pretty=!1,o.nativeJSON=!(!window.JSON||"function"!=typeof JSON.parse||"function"!=typeof JSON.stringify),o.CLASS_NAME="SuperMap.Format.JSON",o.serialize={object:function(t){if(null==t)return"null";if(t.constructor===Date)return this.serialize.date.apply(this,[t]);if(t.constructor===Array)return this.serialize.array.apply(this,[t]);var e,o,n,i=["{"];this.level+=1;var l=!1;for(e in t)t.hasOwnProperty(e)&&(o=this.write.apply(this,[e,this.pretty]),n=this.write.apply(this,[t[e],this.pretty]),null!=o&&null!=n&&(l&&i.push(","),i.push(this.writeNewline(),this.writeIndent(),o,":",this.writeSpace(),n),l=!0));return this.level-=1,i.push(this.writeNewline(),this.writeIndent(),"}"),i.join("")},array:function(t){var e,o=["["];this.level+=1;for(var n=0,i=t.length;n<i;++n)null!=(e=this.write.apply(this,[t[n],this.pretty]))&&(n>0&&o.push(","),o.push(this.writeNewline(),this.writeIndent(),e));return this.level-=1,o.push(this.writeNewline(),this.writeIndent(),"]"),o.join("")},string:function(t){var e={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return/["\\\x00-\x1f]/.test(t)?'"'+t.replace(/([\x00-\x1f\\"])/g,function(t,o){var n=e[o];return n||(n=o.charCodeAt(),"\\u00"+Math.floor(n/16).toString(16)+(n%16).toString(16))})+'"':'"'+t+'"'},number:function(t){return isFinite(t)?String(t):"null"},boolean:function(t){return String(t)},date:function(t){function e(t){return t<10?"0"+t:t}return'"'+t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())+"T"+e(t.getHours())+":"+e(t.getMinutes())+":"+e(t.getSeconds())+'"'}},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r.Format),i(e,[{key:"read",value:function(t,e){var o;if(this.nativeJSON)try{o=JSON.parse(t,e)}catch(t){}return this.keepData&&(this.data=o),o}},{key:"write",value:function(t,e){this.pretty=!!e;var o=null,i=void 0===t?"undefined":n(t);if(this.serialize[i])try{o=!this.pretty&&this.nativeJSON?JSON.stringify(t):this.serialize[i].apply(this,[t])}catch(t){}return o}},{key:"writeIndent",value:function(){var t=[];if(this.pretty)for(var e=0;e<this.level;++e)t.push(this.indent);return t.join("")}},{key:"writeNewline",value:function(){return this.pretty?this.newline:""}},{key:"writeSpace",value:function(){return this.pretty?this.space:""}}]),e}();l.SuperMap.Format.JSON=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GetFeatureMode=e.AggregationQueryBuilderType=e.AggregationType=e.TopologyValidatorRule=e.SummaryType=e.StatisticAnalystMode=e.AnalystSizeUnit=e.AnalystAreaUnit=e.ClipAnalystMode=e.ChartType=e.ClientType=e.Exponent=e.VariogramMode=e.InterpolationAlgorithmType=e.SearchMode=e.PixelFormat=e.StatisticMode=e.UGCLayerType=e.LayerType=e.ColorSpaceType=e.GridType=e.TransferPreference=e.TransferTactic=e.EditType=e.DataReturnMode=e.SurfaceAnalystMethod=e.SmoothMethod=e.OutputType=e.OverlayOperationType=e.BufferEndType=e.TurnType=e.SupplyCenterType=e.SideType=e.DirectionType=e.LabelOverLengthMode=e.LabelBackShape=e.AlongLineDirection=e.FillGradientMode=e.TextAlignment=e.ColorGradientType=e.ThemeType=e.RangeMode=e.GraduatedMode=e.GraphAxesTextDisplayMode=e.ThemeGraphType=e.ThemeGraphTextFormat=e.EngineType=e.BufferRadiusUnit=e.Unit=e.MeasureMode=e.SpatialRelationType=e.SpatialQueryMode=e.JoinType=e.QueryOption=e.GeometryType=e.ServerType=e.DataFormat=void 0;var n=o(0),i=n.SuperMap.DataFormat={GEOJSON:"GEOJSON",ISERVER:"ISERVER"};
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|||
|
e.DataFormat=i;var l=n.SuperMap.ServerType={ISERVER:"ISERVER",IPORTAL:"IPORTAL",ONLINE:"ONLINE"};e.ServerType=l;var r=n.SuperMap.GeometryType={LINE:"LINE",LINEM:"LINEM",POINT:"POINT",REGION:"REGION",ELLIPSE:"ELLIPSE",CIRCLE:"CIRCLE",TEXT:"TEXT",RECTANGLE:"RECTANGLE",UNKNOWN:"UNKNOWN"};e.GeometryType=r;var a=n.SuperMap.QueryOption={ATTRIBUTE:"ATTRIBUTE",ATTRIBUTEANDGEOMETRY:"ATTRIBUTEANDGEOMETRY",GEOMETRY:"GEOMETRY"};e.QueryOption=a;var s=n.SuperMap.JoinType={INNERJOIN:"INNERJOIN",LEFTJOIN:"LEFTJOIN"};e.JoinType=s;var u=n.SuperMap.SpatialQueryMode={CONTAIN:"CONTAIN",CROSS:"CROSS",DISJOINT:"DISJOINT",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",NONE:"NONE",OVERLAP:"OVERLAP",TOUCH:"TOUCH",WITHIN:"WITHIN"};e.SpatialQueryMode=u;var p=n.SuperMap.SpatialRelationType={CONTAIN:"CONTAIN",INTERSECT:"INTERSECT",WITHIN:"WITHIN"};e.SpatialRelationType=p;var c=n.SuperMap.MeasureMode={DISTANCE:"DISTANCE",AREA:"AREA"};e.MeasureMode=c;var y=n.SuperMap.Unit={METER:"METER",KILOMETER:"KILOMETER",MILE:"MILE",YARD:"YARD",DEGREE:"DEGREE",MILLIMETER:"MILLIMETER",CENTIMETER:"CENTIMETER",INCH:"INCH",DECIMETER:"DECIMETER",FOOT:"FOOT",SECOND:"SECOND",MINUTE:"MINUTE",RADIAN:"RADIAN"};e.Unit=y;var P=n.SuperMap.BufferRadiusUnit={CENTIMETER:"CENTIMETER",DECIMETER:"DECIMETER",FOOT:"FOOT",INCH:"INCH",KILOMETER:"KILOMETER",METER:"METER",MILE:"MILE",MILLIMETER:"MILLIMETER",YARD:"YARD"};e.BufferRadiusUnit=P;var h=n.SuperMap.EngineType={IMAGEPLUGINS:"IMAGEPLUGINS",OGC:"OGC",ORACLEPLUS:"ORACLEPLUS",SDBPLUS:"SDBPLUS",SQLPLUS:"SQLPLUS",UDB:"UDB"};e.EngineType=h;var f=n.SuperMap.ThemeGraphTextFormat={CAPTION:"CAPTION",CAPTION_PERCENT:"CAPTION_PERCENT",CAPTION_VALUE:"CAPTION_VALUE",PERCENT:"PERCENT",VALUE:"VALUE"};e.ThemeGraphTextFormat=f;var S=n.SuperMap.ThemeGraphType={AREA:"AREA",BAR:"BAR",BAR3D:"BAR3D",LINE:"LINE",PIE:"PIE",PIE3D:"PIE3D",POINT:"POINT",RING:"RING",ROSE:"ROSE",ROSE3D:"ROSE3D",STACK_BAR:"STACK_BAR",STACK_BAR3D:"STACK_BAR3D",STEP:"STEP"};e.ThemeGraphType=S;var d=n.SuperMap.GraphAxesTextDisplayMode={ALL:"ALL",NONE:"NONE",YAXES:"YAXES"};e.GraphAxesTextDisplayMode=d;var g=n.SuperMap.GraduatedMode={CONSTANT:"CONSTANT",LOGARITHM:"LOGARITHM",SQUAREROOT:"SQUAREROOT"};e.GraduatedMode=g;var M=n.SuperMap.RangeMode={CUSTOMINTERVAL:"CUSTOMINTERVAL",EQUALINTERVAL:"EQUALINTERVAL",LOGARITHM:"LOGARITHM",QUANTILE:"QUANTILE",SQUAREROOT:"SQUAREROOT",STDDEVIATION:"STDDEVIATION"};e.RangeMode=M;var m=n.SuperMap.ThemeType={DOTDENSITY:"DOTDENSITY",GRADUATEDSYMBOL:"GRADUATEDSYMBOL",GRAPH:"GRAPH",LABEL:"LABEL",RANGE:"RANGE",UNIQUE:"UNIQUE"};e.ThemeType=m;var v=n.SuperMap.ColorGradientType={BLACK_WHITE:"BLACKWHITE",BLUE_BLACK:"BLUEBLACK",BLUE_RED:"BLUERED",BLUE_WHITE:"BLUEWHITE",CYAN_BLACK:"CYANBLACK",CYAN_BLUE:"CYANBLUE",CYAN_GREEN:"CYANGREEN",CYAN_WHITE:"CYANWHITE",GREEN_BLACK:"GREENBLACK",GREEN_BLUE:"GREENBLUE",GREEN_ORANGE_VIOLET:"GREENORANGEVIOLET",GREEN_RED:"GREENRED",GREEN_WHITE:"GREENWHITE",PINK_BLACK:"PINKBLACK",PINK_BLUE:"PINKBLUE",PINK_RED:"PINKRED",PINK_WHITE:"PINKWHITE",RAIN_BOW:"RAINBOW",RED_BLACK:"REDBLACK",RED_WHITE:"REDWHITE",SPECTRUM:"SPECTRUM",TERRAIN:"TERRAIN",YELLOW_BLACK:"YELLOWBLACK",YELLOW_BLUE:"YELLOWBLUE",YELLOW_GREEN:"YELLOWGREEN",YELLOW_RED:"YELLOWRED",YELLOW_WHITE:"YELLOWWHITE"};e.ColorGradientType=v;var b=n.SuperMap.TextAlignment={TOPLEFT:"TOPLEFT",TOPCENTER:"TOPCENTER",TOPRIGHT:"TOPRIGHT",BASELINELEFT:"BASELINELEFT",BASELINECENTER:"BASELINECENTER",BASELINERIGHT:"BASELINERIGHT",BOTTOMLEFT:"BOTTOMLEFT",BOTTOMCENTER:"BOTTOMCENTER",BOTTOMRIGHT:"BOTTOMRIGHT",MIDDLELEFT:"MIDDLELEFT",MIDDLECENTER:"MIDDLECENTER",MIDDLERIGHT:"MIDDLERIGHT"};e.TextAlignment=b;var T=n.SuperMap.FillGradientMode={NONE:"NONE",LINEAR:"LINEAR",RADIAL:"RADIAL",CONICAL:"CONICAL",SQUARE:"SQUARE"};e.FillGradientMode=T;var A=n.SuperMap.AlongLineDirection={NORMAL:"ALONG_LINE_NORMAL",LB_TO_RT:"LEFT_BOTTOM_TO_RIGHT_TOP",LT_TO_RB:"LEFT_TOP_TO_RIGHT_BOTTOM",RB_TO_LT:"RIGHT_BOTTOM_TO_LEFT_TOP",RT_TO_LB:"RIGHT_TOP_TO_LEFT_BOTTOM"};e.AlongLineDirection=A;var L=n.SuperMap.LabelBackShape={DIAMOND:"DIAMOND",ELLIPSE:"ELLIPSE",MARKER:"MARKER",NONE:"NONE",RECT:"RECT",ROUNDRECT:"ROUNDRECT",TRIANGLE
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=e.SecurityManager=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,null,[{key:"generateToken",value:function(t,e){var o=this.servers[t];if(o)return r.FetchRequest.post(o.tokenServiceUrl,JSON.stringify(e.toJSON())).then(function(t){return t.text()})}},{key:"registerServers",value:function(t){this.servers=this.servers||{},l.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++){var o=t[e];this.servers[o.server]=o}}},{key:"registerToken",value:function(t,e){if(this.tokens=this.tokens||{},t&&e){var o=this._getTokenStorageKey(t);this.tokens[o]=e}}},{key:"registerKey",value:function(t,e){if(this.keys=this.keys||{},t&&!(t.length<1)&&e){t=l.Util.isArray(t)?t:[t];for(var o=0;o<t.length;o++){var n=this._getUrlRestString(t[0])||t[0];this.keys[n]=e}}}},{key:"getServerInfo",value:function(t){return this.servers=this.servers||{},this.servers[t]}},{key:"getToken",value:function(t){if(t){this.tokens=this.tokens||{};var e=this._getTokenStorageKey(t);return this.tokens[e]}}},{key:"getKey",value:function(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;return this.keys[e]}},{key:"loginiServer",value:function(t,e,o,n){t+="/"===t.substr(t.length-1,1)?"services/security/login.json":"/services/security/login.json";var i={username:e&&e.toString(),password:o&&o.toString(),rememberme:n};i=JSON.stringify(i);return r.FetchRequest.post(t,i,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(t){return t.json()})}},{key:"logoutiServer",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginOnline",value:function(e,o){var n=t.SSO+"/login?service="+e;this._open(n,o)}},{key:"loginiPortal",value:function(t,e,o){t+="/"===t.substr(t.length-1,1)?"web/login.json":"/web/login.json";var n={username:e&&e.toString(),password:o&&o.toString()};n=JSON.stringify(n);return r.FetchRequest.post(t,n,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0}).then(function(t){return t.json()})}},{key:"logoutiPortal",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0,withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginManager",value:function(t,e,o){if(l.Util.isInTheSameDomain(t)){var n="/"===t.substr(t.length-1,1)?t+"icloud/security/tokens.json":t+"/icloud/security/tokens.json",i=e||{},a={username:i.userName&&i.userName.toString(),password:i.password&&i.password.toString()};a=JSON.stringify(a);var s=this;return r.FetchRequest.post(n,a,{headers:{Accept:"*/*","Content-Type":"application/json"}}).then(function(t){t.text().then(function(t){return s.imanagerToken=t,t})})}var u=!o||o.isNewTab;this._open(t,u)}},{key:"destroyAllCredentials",value:function(){this.keys=null,this.tokens=null,this.servers=null}},{key:"destroyToken",value:function(t){if(t){var e=this._getTokenStorageKey(t);this.tokens=this.tokens||{},this.tokens[e]&&delete this.tokens[e]}}},{key:"destroyKey",valu
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=e.Credential=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e||"",this.name=o||"token",this.CLASS_NAME="SuperMap.Credential"}return n(t,[{key:"getUrlParameters",value:function(){return this.name+"="+this.value}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.value=null,this.name=null}}]),t}();l.CREDENTIAL=null,i.SuperMap.Credential=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=o(0),i=o(1),l=e.Event=n.SuperMap.Event={observers:!1,KEY_SPACE:32,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(t){return t.target||t.srcElement},isSingleTouch:function(t){return t.touches&&1===t.touches.length},isMultiTouch:function(t){return t.touches&&t.touches.length>1},isLeftClick:function(t){return t.which&&1===t.which||t.button&&1===t.button},isRightClick:function(t){return t.which&&3===t.which||t.button&&2===t.button},stop:function(t,e){e||(t.preventDefault?t.preventDefault():t.returnValue=!1),t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},findElement:function(t,e){for(var o=n.SuperMap.Event.element(t);o.parentNode&&(!o.tagName||o.tagName.toUpperCase()!=e.toUpperCase());)o=o.parentNode;return o},observe:function(t,e,o,n){var l=i.Util.getElement(t);if(n=n||!1,"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||l.attachEvent)&&(e="keydown"),this.observers||(this.observers={}),!l._eventCacheID){var r="eventCacheID_";l.id&&(r=l.id+"_"+r),l._eventCacheID=i.Util.createUniqueID(r)}var a=l._eventCacheID;this.observers[a]||(this.observers[a]=[]),this.observers[a].push({element:l,name:e,observer:o,useCapture:n}),l.addEventListener?l.addEventListener(e,o,n):l.attachEvent&&l.attachEvent("on"+e,o)},stopObservingElement:function(t){var e=i.Util.getElement(t)._eventCacheID;this._removeElementObservers(n.SuperMap.Event.observers[e])},_removeElementObservers:function(t){if(t)for(var e=t.length-1;e>=0;e--){var o=t[e],i=new Array(o.element,o.name,o.observer,o.useCapture);n.SuperMap.Event.stopObserving.apply(this,i)}},stopObserving:function(t,e,o,l){l=l||!1;var r=i.Util.getElement(t),a=r._eventCacheID;"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||r.detachEvent)&&(e="keydown");var s=!1,u=n.SuperMap.Event.observers[a];if(u)for(var p=0;!s&&p<u.length;){var c=u[p];if(c.name===e&&c.observer===o&&c.useCapture===l){u.splice(p,1),0==u.length&&delete n.SuperMap.Event.observers[a],s=!0;break}p++}return s&&(r.removeEventListener?r.removeEventListener(e,o,l):r&&r.detachEvent&&r.detachEvent("on"+e,o)),s},unloadCache:function(){if(n.SuperMap.Event&&n.SuperMap.Event.observers){for(var t in n.SuperMap.Event.observers){var e=n.SuperMap.Event.observers[t];n.SuperMap.Event._removeElementObservers.apply(this,[e])}n.SuperMap.Event.observers=!1}},CLASS_NAME:"SuperMap.Event"};n.SuperMap.Event=l,n.SuperMap.Event.observe(window,"unload",n.SuperMap.Event.unloadCache,!1)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pixel=void 0;var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=e.Pixel=function(){function t(e,o,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e?parseFloat(e):0,this.y=o?parseFloat(o):0,this.mode=n,this.CLASS_NAME="SuperMap.Pixel",i.SuperMap.Pixel.Mode={LeftTop:"lefttop",RightTop:"righttop",RightBottom:"rightbottom",LeftBottom:"leftbottom"}}return n(t,[{key:"toString",value:function(){return"x="+this.x+",y="+this.y}},{key:"clone",value:function(){return new t(this.x,this.y,this.mode)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.x==t.x&&this.y==t.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(t.x)&&isNaN(t.y)),e}},{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}},{key:"add",value:function(e,o){if(null==e||null==o)throw new TypeError("Pixel.add cannot receive null values");return new t(this.x+e,this.y+o)}},{key:"offset",value:function(t){var e=this.clone();return t&&(e=this.add(t.x,t.y)),e}},{key:"destroy",value:function(){this.x=null,this.y=null,this.mode=null}}]),t}();i.SuperMap.Pixel=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),l=o(0),r=o(105),a=o(104),s=o(2),u=o(1);var p=e.Events=function(){function t(e,o,n,i,l){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"],this.listeners={},this.object=e,this.element=null,this.eventTypes=[],this.eventHandler=null,this.fallThrough=i,this.includeXY=!1,this.extensions={},this.extensionCount={},this.clearMouseListener=null,u.Util.extend(this,l),null!=n)for(var r=0,a=n.length;r<a;r++)this.addEventType(n[r]);null!=o&&this.attachToElement(o),this.CLASS_NAME="SuperMap.Events"}return i(t,[{key:"destroy",value:function(){for(var t in this.extensions)"boolean"!=typeof this.extensions[t]&&this.extensions[t].destroy();this.extensions=null,this.element&&(a.Event.stopObservingElement(this.element),this.element.hasScrollEvent&&a.Event.stopObserving(window,"scroll",this.clearMouseListener)),this.element=null,this.listeners=null,this.object=null,this.eventTypes=null,this.fallThrough=null,this.eventHandler=null}},{key:"addEventType",value:function(t){this.listeners[t]||(this.eventTypes.push(t),this.listeners[t]=[])}},{key:"attachToElement",value:function(t){this.element?a.Event.stopObservingElement(this.element):(this.eventHandler=s.FunctionExt.bindAsEventListener(this.handleBrowserEvent,this),this.clearMouseListener=s.FunctionExt.bind(this.clearMouseCache,this)),this.element=t;for(var e=0,o=this.BROWSER_EVENTS.length;e<o;e++){var n=this.BROWSER_EVENTS[e];this.addEventType(n),a.Event.observe(t,n,this.even
|
|||
|
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
|
|||
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|||
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var P=e.CommonServiceBase=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this;this.EVENT_TYPES=["processCompleted","processFailed"],this.events=null,this.eventListeners=null,this.url=null,this.urls=null,this.proxy=null,this.serverType=null,this.index=null,this.length=null,this.options=null,this.totalTimes=null,this.POLLING_TIMES=3,this._processSuccess=null,this._processFailed=null,this.isInTheSameDomain=null,this.withCredentials=!1,u.Util.isArray(e)?(n.urls=e,n.length=e.length,n.totalTimes=n.length,1===n.length?n.url=e[0]:(n.index=parseInt(Math.random()*n.length),n.url=e[n.index])):(n.totalTimes=1,n.url=e),u.Util.isArray(e)&&!n.isServiceSupportPolling()&&(n.url=e[0],n.totalTimes=1),n.serverType=n.serverType||p.ServerType.ISERVER,o=o||{},u.Util.extend(this,o),n.isInTheSameDomain=u.Util.isInTheSameDomain(n.url),n.events=new r.Events(n,null,n.EVENT_TYPES,!0),n.eventListeners instanceof Object&&n.events.on(n.eventListeners),this.CLASS_NAME="SuperMap.CommonServiceBase"}return n(t,[{key:"destroy",value:function(){var t=this;u.Util.isArray(t.urls)&&(t.urls=null,t.index=null,t.length=null,t.totalTimes=null),t.url=null,t.options=null,t._processSuccess=null,t._processFailed=null,t.isInTheSameDomain=null,t.EVENT_TYPES=null,t.events&&(t.events.destroy(),t.events=null),t.eventListeners&&(t.eventListeners=null)}},{key:"request",value:function(t){var e=this;t.url=t.url||e.url,t.proxy=t.proxy||e.proxy,t.withCredentials=void 0!=t.withCredentials?t.withCredentials:e.withCredentials,t.isInTheSameDomain=e.isInTheSameDomain;var o=this.getCredential(t.url);if(o){var n=t.url.substring(t.url.length-1,t.url.length);t.url.indexOf("?")>-1&&"?"===n?t.url+=o.getUrlParameters():t.url.indexOf("?")>-1&&"?"!==n?t.url+="&"+o.getUrlParameters():t.url+="?"+o.getUrlParameters()}e.calculatePollingTimes(),e._processSuccess=t.success,e._processFailed=t.failure,t.scope=e,t.success=e.getUrlCompleted,t.failure=e.getUrlFailed,e.options=t,e._commit(e.options)}},{key:"getCredential",value:function(t){var e=t,o=void 0,n=void 0;switch(this.serverType){case p.ServerType.IPORTAL:(o=(n=s.SecurityManager.getToken(e))?new a.Credential(n,"token"):null)||(o=(n=s.SecurityManager.getKey(e))?new a.Credential(n,"key"):null);break;case p.ServerType.ONLINE:o=(n=s.SecurityManager.getKey(e))?new a.Credential(n,"key"):null;break;default:o=(n=s.SecurityManager.getToken(e))?new a.Credential(n,"token"):null}return o}},{key:"getUrlCompleted",value:function(t){this._processSuccess(t)}},{key:"getUrlFailed",value:function(t){this.totalTimes>0?(this.totalTimes--,this.ajaxPolling()):this._processFailed(t)}},{key:"ajaxPolling",value:function(){var t=this,e=t.options.url,o=/^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/;t.index=parseInt(Math.random()*t.length),t.url=t.urls[t.index],e=e.replace(o,o.exec(t.url)[0]),t.options.url=e,t.options.isInTheSameDomain=u.Util.isInTheSameDomain(e),t._commit(t.options)}},{key:"calculatePollingTimes",value:function(){var t=this;t.times?t.totalTimes>t.POLLING_TIMES?t.times>t.POLLING_TIMES?t.totalTimes=t.POLLING_TIMES:t.totalTimes=t.times:t.times<t.totalTimes&&(t.totalTimes=t.times):t.totalTimes>t.POLLING_TIMES&&(t.totalTimes=t.POLLING_TIMES),t.totalTimes--}},{key:"isServiceSupportPolling",value:function(){return!("SuperMap.REST.ThemeService"===this.CLASS_NAME||"SuperMap.REST.EditFeaturesService"===this.CLASS_NAME)}}
|
|||
|
|
|||
|
/***/ }),
|
|||
|
/* 5 */
|
|||
|
/***/ (function(module, exports, __webpack_require__) {
|
|||
|
|
|||
|
__webpack_require__(4);
|
|||
|
__webpack_require__(1);
|
|||
|
__webpack_require__(2);
|
|||
|
__webpack_require__(3);
|
|||
|
__webpack_require__(0);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
/***/ })
|
|||
|
/******/ ]);
|