Skip to content

Commit cae6f94

Browse files
committed
新增 mapboxgl DataFlowService UT review by songym
1 parent 2dd9483 commit cae6f94

File tree

11 files changed

+729
-387
lines changed

11 files changed

+729
-387
lines changed

dist/mapboxgl/iclient9-mapboxgl-es6.js

Lines changed: 407 additions & 379 deletions
Large diffs are not rendered by default.

dist/mapboxgl/iclient9-mapboxgl-es6.min.js

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/mapboxgl/iclient9-mapboxgl.js

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29111,6 +29111,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
2911129111
* @param {boolean} [opt_options.chartsSetting.circleHoverAble=true] - 是否允许圆形使用 hover 状态。同时设置 circleHoverAble 和 circleClickAble 为 false,可以直接屏蔽图形对专题图层事件的响应。
2911229112
* @param {boolean} [opt_options.chartsSetting.circleClickAble=true] - 是否允许圆形被点击。同时设置 circleHoverAble 和 circleClickAble 为 false,可以直接屏蔽图形对专题图层事件的响应。
2911329113
* @extends {mapboxgl.supermap.ThemeLayer}
29114+
* @fires mapboxgl.supermap.GraphThemeLayer#beforefeaturesadded
2911429115
*/
2911529116
var Graph = exports.Graph = function (_Theme) {
2911629117
_inherits(Graph, _Theme);
@@ -29153,6 +29154,11 @@ var Graph = exports.Graph = function (_Theme) {
2915329154
}, {
2915429155
key: 'addFeatures',
2915529156
value: function addFeatures(features) {
29157+
/**
29158+
* @event mapboxgl.supermap.GraphThemeLayer#beforefeaturesadded
29159+
* @description 要素添加之前触发。
29160+
* @property {SuperMap.ServerFeature} features - 要被添加的要素。
29161+
*/
2915629162
var ret = _mapboxGl2.default.Evented.prototype.fire('beforefeaturesadded', {
2915729163
features: features
2915829164
});
@@ -56025,7 +56031,7 @@ var NetworkAnalystService = exports.NetworkAnalystService = function (_ServiceBa
5602556031
}
5602656032

5602756033
if (params.event) {
56028-
return params.event = me._toPointObject(params.event);
56034+
params.event = me._toPointObject(params.event);
5602956035
}
5603056036

5603156037
if (params.facilities && _Util.Util.isArray(params.facilities)) {
@@ -58712,6 +58718,10 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
5871258718
* @param {Array.<string>} [options.colors=['blue','cyan','lime','yellow','red']] - 颜色线性渐变数组,颜色值必须为canvas所支。
5871358719
* @param {boolean} [options.useGeoUnit=false] - 使用地理单位,即默认热点半径默认使用像素单位。 当设置为 true 时,热点半径和图层地理坐标保持一致。
5871458720
* @extends {mapboxgl.Evented}
58721+
* @fires mapboxgl.supermap.HeatMapLayer#featuresadded
58722+
* @fires mapboxgl.supermap.HeatMapLayer#changelayer
58723+
* @fires mapboxgl.supermap.HeatMapLayer#featuresremoved
58724+
*
5871558725
*/
5871658726
var HeatMapLayer = exports.HeatMapLayer = function (_mapboxgl$Evented) {
5871758727
_inherits(HeatMapLayer, _mapboxgl$Evented);
@@ -58957,6 +58967,12 @@ var HeatMapLayer = exports.HeatMapLayer = function (_mapboxgl$Evented) {
5895758967
key: 'addFeatures',
5895858968
value: function addFeatures(features) {
5895958969
this.features = this.toiClientFeature(features);
58970+
/**
58971+
* @event mapboxgl.supermap.HeatMapLayer#featuresadded
58972+
* @description 要素添加完成之后触发。
58973+
* @property {GeoJSONObject} features - 被添加的要素。
58974+
* @property {boolean} succeed - 要素是否成功添加。
58975+
*/
5896058976
this.fire(this.EVENT_TYPES[0], { features: features, succeed: true });
5896158977
//支持更新features,刷新底图
5896258978
this.refresh();
@@ -58993,6 +59009,12 @@ var HeatMapLayer = exports.HeatMapLayer = function (_mapboxgl$Evented) {
5899359009
_iclientCommon.CommonUtil.modifyDOMElement(this.rootCanvas, null, null, null, null, null, null, opacity);
5899459010

5899559011
if (this.map !== null) {
59012+
/**
59013+
* @event mapboxgl.supermap.HeatMapLayer#changelayer
59014+
* @description 图层属性改变之后触发。
59015+
* @property {Object} layer - 图层。
59016+
* @property {string} property - 被改变的图层属性。
59017+
*/
5899659018
this.fire('changelayer', { layer: this, property: "opacity" });
5899759019
}
5899859020
}
@@ -59281,6 +59303,12 @@ var HeatMapLayer = exports.HeatMapLayer = function (_mapboxgl$Evented) {
5928159303
}
5928259304
var succeed = heatPointsFailedRemoved.length == 0 ? true : false;
5928359305
//派发删除features成功的事件
59306+
/**
59307+
* @event mapboxgl.supermap.HeatMapLayer#featuresremoved
59308+
* @description 要素删除之后触发。
59309+
* @property {Array.<SuperMap.Feature.Vector>} features - 需要被删除的要素。
59310+
* @property {boolean} succeed - 要素删除成功与否。
59311+
*/
5928459312
this.fire(this.EVENT_TYPES[1], { features: heatPointsFailedRemoved, succeed: succeed });
5928559313
this.refresh();
5928659314
}
@@ -85388,8 +85416,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
8538885416
* @extends {SuperMap.CommonServiceBase}
8538985417
* @param {string} url - 数据流服务地址
8539085418
* @param {Object} options - 参数。
85391-
* @function {function} options.style - 设置数据加载样式。
85392-
* @function {function} options.onEachFeature - 设置每个数据加载popup等。
85419+
* @param {function} options.style - 设置数据加载样式。
85420+
* @param {function} options.onEachFeature - 设置每个数据加载popup等。
8539385421
* @param {Array.<Object>} options.geometry - 设置增添的几何要素对象数组。
8539485422
* @param {Object} options.excludeField - -排除字段。
8539585423
*/

0 commit comments

Comments
 (0)