Skip to content

Commit de13c90

Browse files
author
杜美瑶
committed
添加查询单个场景详情 更新单个场景属性 --reviewed by huangqh
1 parent 0c23c58 commit de13c90

29 files changed

+1570
-84
lines changed

dist/leaflet/iclient-leaflet-es6.js

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,8 +2456,11 @@ module.exports = function(){try{return elasticsearch}catch(e){return {}}}();
24562456
"use strict";
24572457
__webpack_require__.r(__webpack_exports__);
24582458

2459+
// EXTERNAL MODULE: ./src/common/css/webmapfont/iconfont.css
2460+
var iconfont = __webpack_require__(70);
2461+
24592462
// EXTERNAL MODULE: ./src/common/css/supermapol-icons.css
2460-
var supermapol_icons = __webpack_require__(66);
2463+
var supermapol_icons = __webpack_require__(64);
24612464

24622465
// EXTERNAL MODULE: ./src/common/components/css/components-icon.css
24632466
var components_icon = __webpack_require__(59);
@@ -2546,6 +2549,8 @@ var ChangeTileVersion = __webpack_require__(27);
25462549

25472550

25482551

2552+
2553+
25492554
/***/ }),
25502555
/* 17 */
25512556
/***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -15050,7 +15055,7 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1505015055
}
1505115056

1505215057
/**
15053-
* @function SuperMap.iPortal.prototype.viewInsightDetail
15058+
* @function SuperMap.iPortal.prototype.queryMapdashboard
1505415059
* @param {Array} ids - 大屏的序号。
1505515060
* @description 查看某个大屏资源的详情。
1505615061
* @returns {Promise} 返回包含某条大屏资源操作状态的 Promise 对象。
@@ -15109,7 +15114,7 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1510915114
}
1511015115

1511115116
/**
15112-
* @function SuperMap.iPortal.prototype.viewInsightDetail
15117+
* @function SuperMap.iPortal.prototype.queryInsight
1511315118
* @param {Array} ids - 洞察的序号。
1511415119
* @description 查看某个洞察资源的详情。
1511515120
* @returns {Promise} 返回包含某条洞察资源操作状态的 Promise 对象。
@@ -15123,7 +15128,7 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1512315128
}
1512415129

1512515130
/**
15126-
* @function SuperMap.iPortal.prototype.updateInsight
15131+
* @function SuperMap.iPortal.prototype.updateInsightAttrs
1512715132
* @param {Array} ids - 洞察的序号。
1512815133
* @description 更新某个洞察信息。
1512915134
* @returns {Promise} 返回包含更新洞察属性操作状态的 Promise 对象。
@@ -15177,6 +15182,31 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1517715182
return sceneRetult;
1517815183
});
1517915184
}
15185+
15186+
/**
15187+
* @function SuperMap.iPortal.prototype.queryScene
15188+
* @param {Array} ids - 场景的序号。
15189+
* @description 查看某个场景资源的详情。
15190+
* @returns {Promise} 返回包含某条场景资源操作状态的 Promise 对象。
15191+
*/
15192+
queryScene(id){
15193+
var sceneUrl = this.iportalUrl + "/web/scenes/"+id;
15194+
var scene = new iPortalScene_IPortalScene(sceneUrl);
15195+
return scene.load().then(()=>{
15196+
return scene
15197+
})
15198+
}
15199+
15200+
/**
15201+
* @function SuperMap.iPortal.prototype.updateSceneAttrs
15202+
* @param {Array} ids - 场景的序号。
15203+
* @description 更新某个场景信息。
15204+
* @returns {Promise} 返回包含更新场景属性操作状态的 Promise 对象。
15205+
*/
15206+
updateSceneAttrs(id,updateParam){
15207+
var sceneAttributesUrl = this.iportalUrl + "/web/scenes/"+id+"/attributes.json";
15208+
return new iPortalScene_IPortalScene(sceneAttributesUrl, updateParam).update();
15209+
}
1518015210
}
1518115211

1518215212
SuperMap.iPortal = iPortal_IPortal;
@@ -87454,6 +87484,7 @@ external_L_default.a.supermap.turfLayer = TurfLayer_turfLayer;
8745487484
* @param {number} [options.radius=50] - 热点渲染的最大半径(热点像素半径),单位为 px,当 useGeoUnit 参数 为 true 时,单位使用当前图层地理坐标单位。热点显示的时候以精确点为中心点开始往四周辐射衰减,其衰减半径和权重值成比列。
8745587485
* @param {number} [options.opacity=1] - 图层透明度。
8745687486
* @param {boolean} [options.useGeoUnit=false] - 使用地理单位,即默认热点半径默认使用像素单位。 当设置为 true 时,热点半径和图层地理坐标保持一致。
87487+
* @param {boolean} [options.blur] - 模糊量,默认值为半径的二分之一。
8745787488
* @param {string} [options.attribution='Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>'] - 版权信息。
8745887489
*
8745987490
* @extends {L.Layer}
@@ -87503,6 +87534,7 @@ var HeatMapLayer_HeatMapLayer = external_L_default.a.Layer.extend({
8750387534
this.useGeoUnit = this.options.useGeoUnit;
8750487535
this.opacity = this.options.opacity;
8750587536
this.radius = this.options.radius;
87537+
this.blur = this.options.blur;
8750687538
this.movingOffset = [0, 0];
8750787539
},
8750887540

@@ -87720,7 +87752,7 @@ var HeatMapLayer_HeatMapLayer = external_L_default.a.Layer.extend({
8772087752
* @private
8772187753
*/
8772287754
drawCircle: function (r) {
87723-
var blur = r / 2;
87755+
var blur = this.blur || r / 2;
8772487756

8772587757
var circle = this.circle = document.createElement('canvas'),
8772687758
ctx = circle.getContext("2d");
@@ -97412,9 +97444,18 @@ module.exports = __webpack_require__(16);
9741297444
/* 61 */,
9741397445
/* 62 */,
9741497446
/* 63 */,
97415-
/* 64 */,
97447+
/* 64 */
97448+
/***/ (function(module, exports) {
97449+
97450+
// removed by extract-text-webpack-plugin
97451+
97452+
/***/ }),
9741697453
/* 65 */,
97417-
/* 66 */
97454+
/* 66 */,
97455+
/* 67 */,
97456+
/* 68 */,
97457+
/* 69 */,
97458+
/* 70 */
9741897459
/***/ (function(module, exports) {
9741997460

9742097461
// removed by extract-text-webpack-plugin

dist/leaflet/iclient-leaflet-es6.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet.css

Lines changed: 313 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet.js

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66197,7 +66197,7 @@ _SuperMap.SuperMap.Size = Size;
6619766197
"use strict";
6619866198

6619966199

66200-
__webpack_require__(648);
66200+
__webpack_require__(646);
6620166201

6620266202
__webpack_require__(641);
6620366203

@@ -66240,6 +66240,8 @@ __webpack_require__(610);
6624066240
"use strict";
6624166241

6624266242

66243+
__webpack_require__(652);
66244+
6624366245
__webpack_require__(343);
6624466246

6624566247
__webpack_require__(609);
@@ -72151,6 +72153,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
7215172153
* @param {number} [options.radius=50] - 热点渲染的最大半径(热点像素半径),单位为 px,当 useGeoUnit 参数 为 true 时,单位使用当前图层地理坐标单位。热点显示的时候以精确点为中心点开始往四周辐射衰减,其衰减半径和权重值成比列。
7215272154
* @param {number} [options.opacity=1] - 图层透明度。
7215372155
* @param {boolean} [options.useGeoUnit=false] - 使用地理单位,即默认热点半径默认使用像素单位。 当设置为 true 时,热点半径和图层地理坐标保持一致。
72156+
* @param {boolean} [options.blur] - 模糊量,默认值为半径的二分之一。
7215472157
* @param {string} [options.attribution='Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>'] - 版权信息。
7215572158
*
7215672159
* @extends {L.Layer}
@@ -72200,6 +72203,7 @@ var HeatMapLayer = exports.HeatMapLayer = _leaflet2["default"].Layer.extend({
7220072203
this.useGeoUnit = this.options.useGeoUnit;
7220172204
this.opacity = this.options.opacity;
7220272205
this.radius = this.options.radius;
72206+
this.blur = this.options.blur;
7220372207
this.movingOffset = [0, 0];
7220472208
},
7220572209

@@ -72422,7 +72426,7 @@ var HeatMapLayer = exports.HeatMapLayer = _leaflet2["default"].Layer.extend({
7242272426
* @private
7242372427
*/
7242472428
drawCircle: function drawCircle(r) {
72425-
var blur = r / 2;
72429+
var blur = this.blur || r / 2;
7242672430

7242772431
var circle = this.circle = document.createElement('canvas'),
7242872432
ctx = circle.getContext("2d");
@@ -83804,7 +83808,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
8380483808
/* 439 */
8380583809
/***/ (function(module) {
8380683810

83807-
module.exports = {"_from":"proj4@2.5.0","_id":"proj4@2.5.0","_inBundle":false,"_integrity":"sha1-46iM5+egciGqzLxnYN0ur+50XwM=","_location":"/proj4","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"proj4@2.5.0","name":"proj4","escapedName":"proj4","rawSpec":"2.5.0","saveSpec":null,"fetchSpec":"2.5.0"},"_requiredBy":["/"],"_resolved":"http://r.cnpmjs.org/proj4/download/proj4-2.5.0.tgz","_shasum":"e3a88ce7e7a07221aaccbc6760dd2eafee745f03","_spec":"proj4@2.5.0","_where":"D:\\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":"1.0.0","wkt-parser":"^1.2.0"},"deprecated":false,"description":"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.","devDependencies":{"chai":"~4.1.2","curl-amd":"github:cujojs/curl","grunt":"^1.0.1","grunt-cli":"~1.2.0","grunt-contrib-connect":"~1.0.2","grunt-contrib-jshint":"~1.1.0","grunt-contrib-uglify":"~3.1.0","grunt-mocha-phantomjs":"~4.0.0","grunt-rollup":"^6.0.0","istanbul":"~0.4.5","mocha":"~4.0.0","rollup":"^0.50.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0","tin":"~0.5.0"},"directories":{"test":"test","doc":"docs"},"homepage":"https://github.com/proj4js/proj4js#readme","license":"MIT","main":"dist/proj4-src.js","module":"lib/index.js","name":"proj4","repository":{"type":"git","url":"git://github.com/proj4js/proj4js.git"},"scripts":{"build":"grunt","build:tmerc":"grunt build:tmerc","test":"npm run build && istanbul test _mocha test/test.js"},"version":"2.5.0"};
83811+
module.exports = {"_from":"proj4@2.5.0","_id":"proj4@2.5.0","_inBundle":false,"_integrity":"sha512-XZTRT7OPdLzgvtTqL8DG2cEj8lYdovztOwiwpwRSYayOty5Ipf3H68dh/fiL+HKDEyetmQSMhkkMGiJoyziz3w==","_location":"/proj4","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"proj4@2.5.0","name":"proj4","escapedName":"proj4","rawSpec":"2.5.0","saveSpec":null,"fetchSpec":"2.5.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/proj4/-/proj4-2.5.0.tgz","_shasum":"e3a88ce7e7a07221aaccbc6760dd2eafee745f03","_spec":"proj4@2.5.0","_where":"E:\\gitdev\\iclient\\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":"1.0.0","wkt-parser":"^1.2.0"},"deprecated":false,"description":"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.","devDependencies":{"chai":"~4.1.2","curl-amd":"github:cujojs/curl","grunt":"^1.0.1","grunt-cli":"~1.2.0","grunt-contrib-connect":"~1.0.2","grunt-contrib-jshint":"~1.1.0","grunt-contrib-uglify":"~3.1.0","grunt-mocha-phantomjs":"~4.0.0","grunt-rollup":"^6.0.0","istanbul":"~0.4.5","mocha":"~4.0.0","rollup":"^0.50.0","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.0","tin":"~0.5.0"},"directories":{"test":"test","doc":"docs"},"homepage":"https://github.com/proj4js/proj4js#readme","license":"MIT","main":"dist/proj4-src.js","module":"lib/index.js","name":"proj4","repository":{"type":"git","url":"git://github.com/proj4js/proj4js.git"},"scripts":{"build":"grunt","build:tmerc":"grunt build:tmerc","test":"npm run build && istanbul test _mocha test/test.js"},"version":"2.5.0"};
8380883812

8380983813
/***/ }),
8381083814
/* 440 */
@@ -111209,7 +111213,7 @@ var IPortal = exports.IPortal = function (_IPortalServiceBase) {
111209111213
}
111210111214

111211111215
/**
111212-
* @function SuperMap.iPortal.prototype.viewInsightDetail
111216+
* @function SuperMap.iPortal.prototype.queryMapdashboard
111213111217
* @param {Array} ids - 大屏的序号。
111214111218
* @description 查看某个大屏资源的详情。
111215111219
* @returns {Promise} 返回包含某条大屏资源操作状态的 Promise 对象。
@@ -111277,7 +111281,7 @@ var IPortal = exports.IPortal = function (_IPortalServiceBase) {
111277111281
}
111278111282

111279111283
/**
111280-
* @function SuperMap.iPortal.prototype.viewInsightDetail
111284+
* @function SuperMap.iPortal.prototype.queryInsight
111281111285
* @param {Array} ids - 洞察的序号。
111282111286
* @description 查看某个洞察资源的详情。
111283111287
* @returns {Promise} 返回包含某条洞察资源操作状态的 Promise 对象。
@@ -111294,7 +111298,7 @@ var IPortal = exports.IPortal = function (_IPortalServiceBase) {
111294111298
}
111295111299

111296111300
/**
111297-
* @function SuperMap.iPortal.prototype.updateInsight
111301+
* @function SuperMap.iPortal.prototype.updateInsightAttrs
111298111302
* @param {Array} ids - 洞察的序号。
111299111303
* @description 更新某个洞察信息。
111300111304
* @returns {Promise} 返回包含更新洞察属性操作状态的 Promise 对象。
@@ -111357,6 +111361,37 @@ var IPortal = exports.IPortal = function (_IPortalServiceBase) {
111357111361
return sceneRetult;
111358111362
});
111359111363
}
111364+
111365+
/**
111366+
* @function SuperMap.iPortal.prototype.queryScene
111367+
* @param {Array} ids - 场景的序号。
111368+
* @description 查看某个场景资源的详情。
111369+
* @returns {Promise} 返回包含某条场景资源操作状态的 Promise 对象。
111370+
*/
111371+
111372+
}, {
111373+
key: "queryScene",
111374+
value: function queryScene(id) {
111375+
var sceneUrl = this.iportalUrl + "/web/scenes/" + id;
111376+
var scene = new _iPortalScene.IPortalScene(sceneUrl);
111377+
return scene.load().then(function () {
111378+
return scene;
111379+
});
111380+
}
111381+
111382+
/**
111383+
* @function SuperMap.iPortal.prototype.updateSceneAttrs
111384+
* @param {Array} ids - 场景的序号。
111385+
* @description 更新某个场景信息。
111386+
* @returns {Promise} 返回包含更新场景属性操作状态的 Promise 对象。
111387+
*/
111388+
111389+
}, {
111390+
key: "updateSceneAttrs",
111391+
value: function updateSceneAttrs(id, updateParam) {
111392+
var sceneAttributesUrl = this.iportalUrl + "/web/scenes/" + id + "/attributes.json";
111393+
return new _iPortalScene.IPortalScene(sceneAttributesUrl, updateParam).update();
111394+
}
111360111395
}]);
111361111396

111362111397
return IPortal;
@@ -114315,9 +114350,18 @@ module.exports = __webpack_require__(344);
114315114350
/* 643 */,
114316114351
/* 644 */,
114317114352
/* 645 */,
114318-
/* 646 */,
114353+
/* 646 */
114354+
/***/ (function(module, exports) {
114355+
114356+
// removed by extract-text-webpack-plugin
114357+
114358+
/***/ }),
114319114359
/* 647 */,
114320-
/* 648 */
114360+
/* 648 */,
114361+
/* 649 */,
114362+
/* 650 */,
114363+
/* 651 */,
114364+
/* 652 */
114321114365
/***/ (function(module, exports) {
114322114366

114323114367
// removed by extract-text-webpack-plugin

dist/leaflet/iclient-leaflet.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mapboxgl/iclient-mapboxgl-es6.js

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13719,7 +13719,7 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1371913719
}
1372013720

1372113721
/**
13722-
* @function SuperMap.iPortal.prototype.viewInsightDetail
13722+
* @function SuperMap.iPortal.prototype.queryMapdashboard
1372313723
* @param {Array} ids - 大屏的序号。
1372413724
* @description 查看某个大屏资源的详情。
1372513725
* @returns {Promise} 返回包含某条大屏资源操作状态的 Promise 对象。
@@ -13778,7 +13778,7 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1377813778
}
1377913779

1378013780
/**
13781-
* @function SuperMap.iPortal.prototype.viewInsightDetail
13781+
* @function SuperMap.iPortal.prototype.queryInsight
1378213782
* @param {Array} ids - 洞察的序号。
1378313783
* @description 查看某个洞察资源的详情。
1378413784
* @returns {Promise} 返回包含某条洞察资源操作状态的 Promise 对象。
@@ -13792,7 +13792,7 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1379213792
}
1379313793

1379413794
/**
13795-
* @function SuperMap.iPortal.prototype.updateInsight
13795+
* @function SuperMap.iPortal.prototype.updateInsightAttrs
1379613796
* @param {Array} ids - 洞察的序号。
1379713797
* @description 更新某个洞察信息。
1379813798
* @returns {Promise} 返回包含更新洞察属性操作状态的 Promise 对象。
@@ -13846,6 +13846,31 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1384613846
return sceneRetult;
1384713847
});
1384813848
}
13849+
13850+
/**
13851+
* @function SuperMap.iPortal.prototype.queryScene
13852+
* @param {Array} ids - 场景的序号。
13853+
* @description 查看某个场景资源的详情。
13854+
* @returns {Promise} 返回包含某条场景资源操作状态的 Promise 对象。
13855+
*/
13856+
queryScene(id){
13857+
var sceneUrl = this.iportalUrl + "/web/scenes/"+id;
13858+
var scene = new iPortalScene_IPortalScene(sceneUrl);
13859+
return scene.load().then(()=>{
13860+
return scene
13861+
})
13862+
}
13863+
13864+
/**
13865+
* @function SuperMap.iPortal.prototype.updateSceneAttrs
13866+
* @param {Array} ids - 场景的序号。
13867+
* @description 更新某个场景信息。
13868+
* @returns {Promise} 返回包含更新场景属性操作状态的 Promise 对象。
13869+
*/
13870+
updateSceneAttrs(id,updateParam){
13871+
var sceneAttributesUrl = this.iportalUrl + "/web/scenes/"+id+"/attributes.json";
13872+
return new iPortalScene_IPortalScene(sceneAttributesUrl, updateParam).update();
13873+
}
1384913874
}
1385013875

1385113876
SuperMap.iPortal = iPortal_IPortal;

0 commit comments

Comments
 (0)