Skip to content

Commit e83a51d

Browse files
去掉mapboxgl / overlay下部分类的destroy方法
1 parent 66d2a05 commit e83a51d

File tree

7 files changed

+18
-167
lines changed

7 files changed

+18
-167
lines changed

dist/iclient9-mapboxgl.js

Lines changed: 17 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -17732,32 +17732,13 @@ var Graph = function (_Theme) {
1773217732
}
1773317733

1773417734
/**
17735-
* @function mapboxgl.supermap.GraphThemeLayer.prototype.destroy
17736-
* @description 释放资源,将引用资源的属性置空。
17735+
* @function mapboxgl.supermap.GraphThemeLayer.prototype.setChartsType
17736+
* @description 设置图表类型,此函数可动态改变图表类型。在调用此函数前请通过 chartsSetting 为新类型的图表做相关配置。
17737+
* @param chartsType - {string} 图表类型。目前可用:"Bar", "Line", "Pie"。
1773717738
*/
1773817739

1773917740

1774017741
_createClass(Graph, [{
17741-
key: 'destroy',
17742-
value: function destroy() {
17743-
this.chartsType = null;
17744-
this.chartsSetting = null;
17745-
this.themeFields = null;
17746-
this.overlayWeightField = null;
17747-
this.isOverLay = null;
17748-
_ThemeLayer2.default.prototype.destroy.apply(this, arguments);
17749-
// charts cache 为缓存,需要在父类destory后置为null(父类destory中有方法会初始化缓存参数)
17750-
this.charts = null;
17751-
this.cache = null;
17752-
}
17753-
17754-
/**
17755-
* @function mapboxgl.supermap.GraphThemeLayer.prototype.setChartsType
17756-
* @description 设置图表类型,此函数可动态改变图表类型。在调用此函数前请通过 chartsSetting 为新类型的图表做相关配置。
17757-
* @param chartsType - {string} 图表类型。目前可用:"Bar", "Line", "Pie"。
17758-
*/
17759-
17760-
}, {
1776117742
key: 'setChartsType',
1776217743
value: function setChartsType(chartsType) {
1776317744
this.chartsType = chartsType;
@@ -21222,34 +21203,13 @@ var GeoFeature = function (_Theme) {
2122221203
}
2122321204

2122421205
/**
21225-
* @function mapboxgl.supermap.GeoFeatureThemeLayer.prototype.destroy
21226-
* @description 释放资源,将引用资源的属性置空。
21206+
* @function mapboxgl.supermap.GeoFeatureThemeLayer.prototype.addFeatures
21207+
* @description 添加要素
21208+
* @param features - {Object} 要素对象
2122721209
*/
2122821210

2122921211

2123021212
_createClass(GeoFeature, [{
21231-
key: 'destroy',
21232-
value: function destroy() {
21233-
this.maxCacheCount = null;
21234-
this.isCustomSetMaxCacheCount = null;
21235-
this.nodesClipPixel = null;
21236-
this.isHoverAble = null;
21237-
this.isMultiHover = null;
21238-
this.isClickAble = null;
21239-
this.cache = null;
21240-
this.cacheFields = null;
21241-
this.style = null;
21242-
this.highlightStyle = null;
21243-
this.isAllowFeatureStyle = null;
21244-
}
21245-
21246-
/**
21247-
* @function mapboxgl.supermap.GeoFeatureThemeLayer.prototype.addFeatures
21248-
* @description 添加要素
21249-
* @param features - {Object} 要素对象
21250-
*/
21251-
21252-
}, {
2125321213
key: 'addFeatures',
2125421214
value: function addFeatures(features) {
2125521215
//数组
@@ -32940,28 +32900,14 @@ var Range = function (_GeoFeature) {
3294032900
}
3294132901

3294232902
/**
32943-
* @function mapboxgl.supermap.RangeThemeLayer.prototype.destroy
32944-
* @description 释放资源,将引用资源的属性置空。
32903+
* @private
32904+
* @function mapboxgl.supermap.RangeThemeLayer.prototype.createThematicFeature
32905+
* @description 创建专题图要素
32906+
* @param feature -{Object} 要创建的专题图形要素
3294532907
*/
3294632908

3294732909

3294832910
_createClass(Range, [{
32949-
key: 'destroy',
32950-
value: function destroy() {
32951-
this.style = null;
32952-
this.themeField = null;
32953-
this.styleGroups = null;
32954-
_GeoFeatureThemeLayer2.default.prototype.destroy.apply(this, arguments);
32955-
}
32956-
32957-
/**
32958-
* @private
32959-
* @function mapboxgl.supermap.RangeThemeLayer.prototype.createThematicFeature
32960-
* @description 创建专题图要素
32961-
* @param feature -{Object} 要创建的专题图形要素
32962-
*/
32963-
32964-
}, {
3296532911
key: 'createThematicFeature',
3296632912
value: function createThematicFeature(feature) {
3296732913
//赋 style
@@ -33094,27 +33040,13 @@ var RankSymbol = function (_Graph) {
3309433040
}
3309533041

3309633042
/**
33097-
* @function mapboxgl.supermap.RankSymbolThemeLayer.prototype.destroy
33098-
* @description 释放资源,将引用资源的属性置空。
33043+
* @function mapboxgl.supermap.RankSymbolThemeLayer.prototype.setSymbolType
33044+
* @description 设置标志符号
33045+
* @param symbolType -{string} 符号类型
3309933046
*/
3310033047

3310133048

3310233049
_createClass(RankSymbol, [{
33103-
key: 'destroy',
33104-
value: function destroy() {
33105-
this.symbolType = null;
33106-
this.symbolSetting = null;
33107-
this.themeField = null;
33108-
_SuperMap2.default.Layer.Graph.prototype.destroy.apply(this, arguments);
33109-
}
33110-
33111-
/**
33112-
* @function mapboxgl.supermap.RankSymbolThemeLayer.prototype.setSymbolType
33113-
* @description 设置标志符号
33114-
* @param symbolType -{string} 符号类型
33115-
*/
33116-
33117-
}, {
3311833050
key: 'setSymbolType',
3311933051
value: function setSymbolType(symbolType) {
3312033052
this.symbolType = symbolType;
@@ -33356,28 +33288,14 @@ var Unique = function (_GeoFeature) {
3335633288
}
3335733289

3335833290
/**
33359-
* @function mapboxgl.supermap.UniqueThemeLayer.prototype.destroy
33360-
* @description 释放资源,将引用资源的属性置空。
33291+
* @private
33292+
* @function mapboxgl.supermap.UniqueThemeLayer.prototype.createThematicFeature
33293+
* @description 创建专题图要素
33294+
* @param feature - {Object} 要创建的专题图形要素
3336133295
*/
3336233296

3336333297

3336433298
_createClass(Unique, [{
33365-
key: 'destroy',
33366-
value: function destroy() {
33367-
this.style = null;
33368-
this.themeField = null;
33369-
this.styleGroups = null;
33370-
_GeoFeatureThemeLayer2.default.prototype.destroy.apply(this, arguments);
33371-
}
33372-
33373-
/**
33374-
* @private
33375-
* @function mapboxgl.supermap.UniqueThemeLayer.prototype.createThematicFeature
33376-
* @description 创建专题图要素
33377-
* @param feature - {Object} 要创建的专题图形要素
33378-
*/
33379-
33380-
}, {
3338133299
key: 'createThematicFeature',
3338233300
value: function createThematicFeature(feature) {
3338333301
//赋 style

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

src/mapboxgl/overlay/GraphThemeLayer.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,6 @@ export default class Graph extends Theme {
3333
this.chartsType = chartsType;
3434
}
3535

36-
/**
37-
* @function mapboxgl.supermap.GraphThemeLayer.prototype.destroy
38-
* @description 释放资源,将引用资源的属性置空。
39-
*/
40-
destroy() {
41-
this.chartsType = null;
42-
this.chartsSetting = null;
43-
this.themeFields = null;
44-
this.overlayWeightField = null;
45-
this.isOverLay = null;
46-
Theme.prototype.destroy.apply(this, arguments);
47-
// charts cache 为缓存,需要在父类destory后置为null(父类destory中有方法会初始化缓存参数)
48-
this.charts = null;
49-
this.cache = null;
50-
}
51-
5236
/**
5337
* @function mapboxgl.supermap.GraphThemeLayer.prototype.setChartsType
5438
* @description 设置图表类型,此函数可动态改变图表类型。在调用此函数前请通过 chartsSetting 为新类型的图表做相关配置。

src/mapboxgl/overlay/RangeThemeLayer.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ export default class Range extends GeoFeature {
2222
this.styleGroups = opt_options.styleGroups;
2323
}
2424

25-
/**
26-
* @function mapboxgl.supermap.RangeThemeLayer.prototype.destroy
27-
* @description 释放资源,将引用资源的属性置空。
28-
*/
29-
destroy() {
30-
this.style = null;
31-
this.themeField = null;
32-
this.styleGroups = null;
33-
GeoFeature.prototype.destroy.apply(this, arguments);
34-
}
35-
3625
/**
3726
* @private
3827
* @function mapboxgl.supermap.RangeThemeLayer.prototype.createThematicFeature

src/mapboxgl/overlay/RankSymbolThemeLayer.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ export default class RankSymbol extends Graph {
1919
this.themeField = opt_options.themeField;
2020
}
2121

22-
/**
23-
* @function mapboxgl.supermap.RankSymbolThemeLayer.prototype.destroy
24-
* @description 释放资源,将引用资源的属性置空。
25-
*/
26-
destroy() {
27-
this.symbolType = null;
28-
this.symbolSetting = null;
29-
this.themeField = null;
30-
SuperMap.Layer.Graph.prototype.destroy.apply(this, arguments);
31-
}
32-
3322
/**
3423
* @function mapboxgl.supermap.RankSymbolThemeLayer.prototype.setSymbolType
3524
* @description 设置标志符号

src/mapboxgl/overlay/UniqueThemeLayer.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@ export default class Unique extends GeoFeature {
2222
this.highlightStyle = opt_options.highlightStyle;
2323
}
2424

25-
/**
26-
* @function mapboxgl.supermap.UniqueThemeLayer.prototype.destroy
27-
* @description 释放资源,将引用资源的属性置空。
28-
*/
29-
destroy() {
30-
this.style = null;
31-
this.themeField = null;
32-
this.styleGroups = null;
33-
GeoFeature.prototype.destroy.apply(this, arguments);
34-
}
35-
3625
/**
3726
* @private
3827
* @function mapboxgl.supermap.UniqueThemeLayer.prototype.createThematicFeature

src/mapboxgl/overlay/theme/GeoFeatureThemeLayer.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,6 @@ export default class GeoFeature extends Theme {
2828
this.isAllowFeatureStyle = opt_options.isAllowFeatureStyle || false;
2929
}
3030

31-
/**
32-
* @function mapboxgl.supermap.GeoFeatureThemeLayer.prototype.destroy
33-
* @description 释放资源,将引用资源的属性置空。
34-
*/
35-
destroy() {
36-
this.maxCacheCount = null;
37-
this.isCustomSetMaxCacheCount = null;
38-
this.nodesClipPixel = null;
39-
this.isHoverAble = null;
40-
this.isMultiHover = null;
41-
this.isClickAble = null;
42-
this.cache = null;
43-
this.cacheFields = null;
44-
this.style = null;
45-
this.highlightStyle = null;
46-
this.isAllowFeatureStyle = null;
47-
}
48-
4931
/**
5032
* @function mapboxgl.supermap.GeoFeatureThemeLayer.prototype.addFeatures
5133
* @description 添加要素

0 commit comments

Comments
 (0)