|
44 | 44 | /******/ // define getter function for harmony exports
|
45 | 45 | /******/ __webpack_require__.d = function(exports, name, getter) {
|
46 | 46 | /******/ if(!__webpack_require__.o(exports, name)) {
|
47 |
| -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); |
| 47 | +/******/ Object.defineProperty(exports, name, { |
| 48 | +/******/ configurable: false, |
| 49 | +/******/ enumerable: true, |
| 50 | +/******/ get: getter |
| 51 | +/******/ }); |
48 | 52 | /******/ }
|
49 | 53 | /******/ };
|
50 | 54 | /******/
|
51 | 55 | /******/ // define __esModule on exports
|
52 | 56 | /******/ __webpack_require__.r = function(exports) {
|
53 |
| -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
54 |
| -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
55 |
| -/******/ } |
56 | 57 | /******/ Object.defineProperty(exports, '__esModule', { value: true });
|
57 | 58 | /******/ };
|
58 | 59 | /******/
|
59 |
| -/******/ // create a fake namespace object |
60 |
| -/******/ // mode & 1: value is a module id, require it |
61 |
| -/******/ // mode & 2: merge all properties of value into the ns |
62 |
| -/******/ // mode & 4: return value when already ns object |
63 |
| -/******/ // mode & 8|1: behave like require |
64 |
| -/******/ __webpack_require__.t = function(value, mode) { |
65 |
| -/******/ if(mode & 1) value = __webpack_require__(value); |
66 |
| -/******/ if(mode & 8) return value; |
67 |
| -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; |
68 |
| -/******/ var ns = Object.create(null); |
69 |
| -/******/ __webpack_require__.r(ns); |
70 |
| -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); |
71 |
| -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); |
72 |
| -/******/ return ns; |
73 |
| -/******/ }; |
74 |
| -/******/ |
75 | 60 | /******/ // getDefaultExport function for compatibility with non-harmony modules
|
76 | 61 | /******/ __webpack_require__.n = function(module) {
|
77 | 62 | /******/ var getter = module && module.__esModule ?
|
@@ -16231,7 +16216,7 @@ SuperMap.iPortal = iPortal_IPortal;
|
16231 | 16216 | * @category iServer
|
16232 | 16217 | * @classdesc 对接 iServer 各种服务的 Service 的基类。
|
16233 | 16218 | * @param {string} url - 服务地址。
|
16234 |
| - * @param {Object} options - 参数。 |
| 16219 | + * @param {Object} options - 参数。 |
16235 | 16220 | * @param {Object} options.eventListeners - 事件监听器对象。有 processCompleted 属性可传入处理完成后的回调函数。processFailed 属性传入处理失败后的回调函数。
|
16236 | 16221 | * @param {string} [options.proxy] - 服务代理地址。
|
16237 | 16222 | * @param {SuperMap.ServerType} [options.serverType=SuperMap.ServerType.ISERVER] - 服务器类型,iServer|iPortal|Online。
|
@@ -16342,15 +16327,15 @@ class CommonServiceBase_CommonServiceBase {
|
16342 | 16327 | * @function SuperMap.CommonServiceBase.prototype.request
|
16343 | 16328 | * @description: 该方法用于向服务发送请求。
|
16344 | 16329 | * @param {Object} options - 参数。
|
16345 |
| - * @param {string} [options.method='GET'] - 请求方式,包括 "GET","POST","PUT","DELETE"。 |
16346 |
| - * @param {string} [options.url] - 发送请求的地址。 |
16347 |
| - * @param {Object} [options.params] - 作为查询字符串添加到 URL 中的一组键值对,此参数只适用于 GET 方式发送的请求。 |
16348 |
| - * @param {string} [options.data] - 发送到服务器的数据。 |
16349 |
| - * @param {function} options.success - 请求成功后的回调函数。 |
16350 |
| - * @param {function} options.failure - 请求失败后的回调函数。 |
16351 |
| - * @param {Object} [options.scope] - 如果回调函数是对象的一个公共方法,设定该对象的范围。 |
16352 |
| - * @param {boolean} [options.isInTheSameDomain] - 请求是否在当前域中。 |
16353 |
| - * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。 |
| 16330 | + * @param {string} [options.method='GET'] - 请求方式,包括 "GET","POST","PUT","DELETE"。 |
| 16331 | + * @param {string} [options.url] - 发送请求的地址。 |
| 16332 | + * @param {Object} [options.params] - 作为查询字符串添加到 URL 中的一组键值对,此参数只适用于 GET 方式发送的请求。 |
| 16333 | + * @param {string} [options.data] - 发送到服务器的数据。 |
| 16334 | + * @param {function} options.success - 请求成功后的回调函数。 |
| 16335 | + * @param {function} options.failure - 请求失败后的回调函数。 |
| 16336 | + * @param {Object} [options.scope] - 如果回调函数是对象的一个公共方法,设定该对象的范围。 |
| 16337 | + * @param {boolean} [options.isInTheSameDomain] - 请求是否在当前域中。 |
| 16338 | + * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。 |
16354 | 16339 | */
|
16355 | 16340 | request(options) {
|
16356 | 16341 | let me = this;
|
@@ -16569,7 +16554,9 @@ class CommonServiceBase_CommonServiceBase {
|
16569 | 16554 | var success = (options.scope) ? FunctionExt.bind(options.success, options.scope) : options.success;
|
16570 | 16555 | success(result);
|
16571 | 16556 | }
|
16572 |
| - |
| 16557 | + }).catch(function (e) { |
| 16558 | + var failure = (options.scope) ? FunctionExt.bind(options.failure, options.scope) : options.failure; |
| 16559 | + failure(e); |
16573 | 16560 | })
|
16574 | 16561 | }
|
16575 | 16562 | }
|
@@ -91654,7 +91641,7 @@ module.exports = function(proj4){
|
91654 | 91641 | /* 74 */
|
91655 | 91642 | /***/ (function(module) {
|
91656 | 91643 |
|
91657 |
| -module.exports = {"_args":[["proj4@2.3.15","D:\\iClient-JavaScript"]],"_from":"proj4@2.3.15","_id":"proj4@2.3.15","_inBundle":false,"_integrity":"sha1-WtBui8owvg/6OJpJ5FZfUfBtCJ4=","_location":"/proj4","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"proj4@2.3.15","name":"proj4","escapedName":"proj4","rawSpec":"2.3.15","saveSpec":null,"fetchSpec":"2.3.15"},"_requiredBy":["/"],"_resolved":"http://registry.npm.taobao.org/proj4/download/proj4-2.3.15.tgz","_spec":"2.3.15","_where":"D:\\iClient-JavaScript","author":"","bugs":{"url":"https://github.com/proj4js/proj4js/issues"},"contributors":[{"name":"Mike Adair","email":"madair@dmsolutions.ca"},{"name":"Richard Greenwood","email":"rich@greenwoodmap.com"},{"name":"Calvin Metcalf","email":"calvin.metcalf@gmail.com"},{"name":"Richard Marsden","url":"http://www.winwaed.com"},{"name":"T. Mittan"},{"name":"D. Steinwand"},{"name":"S. Nelson"}],"dependencies":{"mgrs":"~0.0.2"},"description":"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.","devDependencies":{"browserify":"~12.0.1","chai":"~1.8.1","curl":"git://github.com/cujojs/curl.git","grunt":"~0.4.2","grunt-browserify":"~4.0.1","grunt-cli":"~0.1.13","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0","grunt-contrib-uglify":"~0.11.1","grunt-mocha-phantomjs":"~0.4.0","istanbul":"~0.2.4","mocha":"~1.17.1","tin":"~0.4.0"},"directories":{"test":"test","doc":"docs"},"homepage":"https://github.com/proj4js/proj4js#readme","jam":{"main":"dist/proj4.js","include":["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},"license":"MIT","main":"lib/index.js","name":"proj4","repository":{"type":"git","url":"git://github.com/proj4js/proj4js.git"},"scripts":{"test":"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},"version":"2.3.15"}; |
| 91644 | +module.exports = {"_from":"proj4@2.3.15","_id":"proj4@2.3.15","_inBundle":false,"_integrity":"sha1-WtBui8owvg/6OJpJ5FZfUfBtCJ4=","_location":"/proj4","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"proj4@2.3.15","name":"proj4","escapedName":"proj4","rawSpec":"2.3.15","saveSpec":null,"fetchSpec":"2.3.15"},"_requiredBy":["/"],"_resolved":"http://registry.npm.taobao.org/proj4/download/proj4-2.3.15.tgz","_shasum":"5ad06e8bca30be0ffa389a49e4565f51f06d089e","_spec":"proj4@2.3.15","_where":"F:\\dev\\iClient-JavaScript","author":"","bugs":{"url":"https://github.com/proj4js/proj4js/issues"},"bundleDependencies":false,"contributors":[{"name":"Mike Adair","email":"madair@dmsolutions.ca"},{"name":"Richard Greenwood","email":"rich@greenwoodmap.com"},{"name":"Calvin Metcalf","email":"calvin.metcalf@gmail.com"},{"name":"Richard Marsden","url":"http://www.winwaed.com"},{"name":"T. Mittan"},{"name":"D. Steinwand"},{"name":"S. Nelson"}],"dependencies":{"mgrs":"~0.0.2"},"deprecated":false,"description":"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.","devDependencies":{"browserify":"~12.0.1","chai":"~1.8.1","curl":"git://github.com/cujojs/curl.git","grunt":"~0.4.2","grunt-browserify":"~4.0.1","grunt-cli":"~0.1.13","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0","grunt-contrib-uglify":"~0.11.1","grunt-mocha-phantomjs":"~0.4.0","istanbul":"~0.2.4","mocha":"~1.17.1","tin":"~0.4.0"},"directories":{"test":"test","doc":"docs"},"homepage":"https://github.com/proj4js/proj4js#readme","jam":{"main":"dist/proj4.js","include":["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},"license":"MIT","main":"lib/index.js","name":"proj4","repository":{"type":"git","url":"git://github.com/proj4js/proj4js.git"},"scripts":{"test":"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},"version":"2.3.15"}; |
91658 | 91645 |
|
91659 | 91646 | /***/ }),
|
91660 | 91647 | /* 75 */
|
|
0 commit comments