@antv/l7-layers 2.13.6 → 2.13.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Geometry/models/billboard.js +2 -6
- package/es/Geometry/models/plane.js +2 -6
- package/es/Geometry/models/sprite.js +2 -6
- package/es/citybuliding/models/build.js +2 -6
- package/es/core/BaseLayer.d.ts +1 -1
- package/es/core/BaseLayer.js +14 -8
- package/es/earth/models/atmosphere.js +2 -6
- package/es/earth/models/base.js +2 -6
- package/es/earth/models/bloomsphere.js +2 -6
- package/es/heatmap/models/grid.js +2 -6
- package/es/heatmap/models/grid3d.js +2 -6
- package/es/heatmap/models/heatmap.js +2 -6
- package/es/heatmap/models/hexagon.js +2 -6
- package/es/image/models/image.js +2 -6
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -2
- package/es/line/models/arc.js +2 -6
- package/es/line/models/arc_3d.js +2 -6
- package/es/line/models/earthArc_3d.js +2 -6
- package/es/line/models/great_circle.js +2 -6
- package/es/line/models/half.js +2 -6
- package/es/line/models/line.js +2 -2
- package/es/line/models/linearline.js +2 -6
- package/es/line/models/simpleLine.js +2 -6
- package/es/line/models/wall.js +2 -6
- package/es/mask/models/fill.js +6 -7
- package/es/plugins/DataMappingPlugin.js +10 -6
- package/es/plugins/DataSourcePlugin.js +4 -4
- package/es/plugins/FeatureScalePlugin.js +8 -6
- package/es/plugins/LayerModelPlugin.js +8 -6
- package/es/point/models/earthExtrude.js +2 -6
- package/es/point/models/earthFill.js +2 -6
- package/es/point/models/extrude.js +2 -6
- package/es/point/models/normal.js +5 -7
- package/es/point/models/radar.js +3 -7
- package/es/point/models/simplePoint.js +2 -6
- package/es/polygon/models/extrude.js +4 -8
- package/es/polygon/models/fill.js +2 -6
- package/es/polygon/models/ocean.js +2 -6
- package/es/polygon/models/water.js +2 -6
- package/es/raster/models/raster.js +3 -7
- package/es/raster/models/rasterRgb.js +5 -9
- package/es/raster/models/rasterTerrainRgb.js +3 -7
- package/es/tile/manager/base.d.ts +1 -1
- package/es/tile/manager/base.js +16 -4
- package/es/tile/service/TileLayerService.d.ts +3 -3
- package/es/tile/service/TileLayerService.js +16 -18
- package/es/tile/service/TileSourceService.js +1 -1
- package/es/tile/tileFactory/DebugTile.js +3 -3
- package/es/tile/tileFactory/ImageTile.js +1 -0
- package/es/tile/tileFactory/MaskTile.js +5 -1
- package/es/tile/tileFactory/RasterRGBTile.js +1 -0
- package/es/tile/tileFactory/RasterTerrainRGBTile.js +1 -0
- package/es/tile/tileFactory/RasterTile.js +3 -2
- package/es/tile/tileFactory/Tile.js +5 -3
- package/es/tile/tileFactory/VectorTile.js +0 -1
- package/es/tile/tileFactory/index.d.ts +4 -4
- package/es/tile/tileFactory/index.js +4 -4
- package/es/tile/tileFactory/layers/TileDebugLayer.js +3 -0
- package/es/tile/tileFactory/util.d.ts +1 -1
- package/es/tile/tileFactory/util.js +1 -1
- package/es/tile/tileLayer/BaseLayer.d.ts +1 -1
- package/es/tile/tileLayer/BaseLayer.js +6 -4
- package/es/wind/models/wind.js +2 -6
- package/lib/Geometry/models/billboard.js +2 -6
- package/lib/Geometry/models/plane.js +2 -6
- package/lib/Geometry/models/sprite.js +2 -6
- package/lib/citybuliding/models/build.js +2 -6
- package/lib/core/BaseLayer.js +13 -7
- package/lib/earth/models/atmosphere.js +2 -6
- package/lib/earth/models/base.js +2 -6
- package/lib/earth/models/bloomsphere.js +2 -6
- package/lib/heatmap/models/grid.js +2 -6
- package/lib/heatmap/models/grid3d.js +2 -6
- package/lib/heatmap/models/heatmap.js +2 -6
- package/lib/heatmap/models/hexagon.js +2 -6
- package/lib/image/models/image.js +2 -6
- package/lib/line/models/arc.js +2 -6
- package/lib/line/models/arc_3d.js +2 -6
- package/lib/line/models/earthArc_3d.js +2 -6
- package/lib/line/models/great_circle.js +2 -6
- package/lib/line/models/half.js +2 -6
- package/lib/line/models/line.js +2 -2
- package/lib/line/models/linearline.js +2 -6
- package/lib/line/models/simpleLine.js +2 -6
- package/lib/line/models/wall.js +2 -6
- package/lib/mask/models/fill.js +6 -7
- package/lib/plugins/DataMappingPlugin.js +9 -5
- package/lib/plugins/DataSourcePlugin.js +3 -3
- package/lib/plugins/FeatureScalePlugin.js +7 -5
- package/lib/plugins/LayerModelPlugin.js +7 -5
- package/lib/point/models/earthExtrude.js +2 -6
- package/lib/point/models/earthFill.js +2 -6
- package/lib/point/models/extrude.js +2 -6
- package/lib/point/models/normal.js +5 -7
- package/lib/point/models/radar.js +4 -8
- package/lib/point/models/simplePoint.js +2 -6
- package/lib/polygon/models/extrude.js +4 -8
- package/lib/polygon/models/fill.js +2 -6
- package/lib/polygon/models/ocean.js +2 -6
- package/lib/polygon/models/water.js +2 -6
- package/lib/raster/models/raster.js +2 -6
- package/lib/raster/models/rasterRgb.js +5 -9
- package/lib/raster/models/rasterTerrainRgb.js +2 -6
- package/lib/tile/manager/base.js +16 -4
- package/lib/tile/service/TileLayerService.js +16 -18
- package/lib/tile/service/TileSourceService.js +1 -1
- package/lib/tile/tileFactory/DebugTile.js +3 -3
- package/lib/tile/tileFactory/ImageTile.js +1 -0
- package/lib/tile/tileFactory/MaskTile.js +5 -1
- package/lib/tile/tileFactory/RasterRGBTile.js +1 -0
- package/lib/tile/tileFactory/RasterTerrainRGBTile.js +1 -0
- package/lib/tile/tileFactory/RasterTile.js +4 -3
- package/lib/tile/tileFactory/Tile.js +5 -3
- package/lib/tile/tileFactory/VectorTile.js +0 -1
- package/lib/tile/tileFactory/index.js +5 -5
- package/lib/tile/tileFactory/layers/TileDebugLayer.js +3 -0
- package/lib/tile/tileFactory/util.js +2 -2
- package/lib/tile/tileLayer/BaseLayer.js +7 -5
- package/lib/wind/models/wind.js +2 -6
- package/package.json +7 -6
|
@@ -161,13 +161,9 @@ var BillBoardModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
161
161
|
while (1) {
|
|
162
162
|
switch (_context2.prev = _context2.next) {
|
|
163
163
|
case 0:
|
|
164
|
-
_context2.
|
|
165
|
-
return this.initModels();
|
|
164
|
+
return _context2.abrupt("return", this.initModels());
|
|
166
165
|
|
|
167
|
-
case
|
|
168
|
-
return _context2.abrupt("return", _context2.sent);
|
|
169
|
-
|
|
170
|
-
case 3:
|
|
166
|
+
case 1:
|
|
171
167
|
case "end":
|
|
172
168
|
return _context2.stop();
|
|
173
169
|
}
|
|
@@ -238,13 +238,9 @@ var PlaneModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
238
238
|
while (1) {
|
|
239
239
|
switch (_context2.prev = _context2.next) {
|
|
240
240
|
case 0:
|
|
241
|
-
_context2.
|
|
242
|
-
return this.initModels();
|
|
241
|
+
return _context2.abrupt("return", this.initModels());
|
|
243
242
|
|
|
244
|
-
case
|
|
245
|
-
return _context2.abrupt("return", _context2.sent);
|
|
246
|
-
|
|
247
|
-
case 3:
|
|
243
|
+
case 1:
|
|
248
244
|
case "end":
|
|
249
245
|
return _context2.stop();
|
|
250
246
|
}
|
|
@@ -262,13 +262,9 @@ var SpriteModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
262
262
|
while (1) {
|
|
263
263
|
switch (_context2.prev = _context2.next) {
|
|
264
264
|
case 0:
|
|
265
|
-
_context2.
|
|
266
|
-
return this.initModels();
|
|
265
|
+
return _context2.abrupt("return", this.initModels());
|
|
267
266
|
|
|
268
|
-
case
|
|
269
|
-
return _context2.abrupt("return", _context2.sent);
|
|
270
|
-
|
|
271
|
-
case 3:
|
|
267
|
+
case 1:
|
|
272
268
|
case "end":
|
|
273
269
|
return _context2.stop();
|
|
274
270
|
}
|
|
@@ -104,13 +104,9 @@ var CityBuildModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
104
104
|
case 0:
|
|
105
105
|
this.calCityGeo();
|
|
106
106
|
this.startModelAnimate();
|
|
107
|
-
_context.
|
|
108
|
-
return this.buildModels();
|
|
107
|
+
return _context.abrupt("return", this.buildModels());
|
|
109
108
|
|
|
110
|
-
case
|
|
111
|
-
return _context.abrupt("return", _context.sent);
|
|
112
|
-
|
|
113
|
-
case 5:
|
|
109
|
+
case 3:
|
|
114
110
|
case "end":
|
|
115
111
|
return _context.stop();
|
|
116
112
|
}
|
package/es/core/BaseLayer.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ export default class BaseLayer<ChildLayerStyleOptions = {}> extends EventEmitter
|
|
|
117
117
|
getContainer(): Container;
|
|
118
118
|
addPlugin(plugin: ILayerPlugin): ILayer;
|
|
119
119
|
init(): Promise<void>;
|
|
120
|
-
log(logType: string,
|
|
120
|
+
log(logType: string, step?: string): void;
|
|
121
121
|
updateModelData(data: IAttributeAndElements): void;
|
|
122
122
|
createModelData(data: any, option?: ISourceCFG): any;
|
|
123
123
|
setLayerPickService(layerPickService: ILayerPickService): void;
|
package/es/core/BaseLayer.js
CHANGED
|
@@ -30,7 +30,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
30
30
|
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { AsyncSeriesBailHook, AsyncWaterfallHook, SyncBailHook, SyncHook } from '@antv/async-hook';
|
|
33
|
-
import { BlendType, IDebugLog, lazyInject, TYPES } from '@antv/l7-core';
|
|
33
|
+
import { BlendType, IDebugLog, ILayerStage, lazyInject, TYPES } from '@antv/l7-core';
|
|
34
34
|
import Source from '@antv/l7-source';
|
|
35
35
|
import { encodePickingColor, WorkerSourceMap } from '@antv/l7-utils';
|
|
36
36
|
import { EventEmitter } from 'eventemitter3';
|
|
@@ -380,22 +380,19 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
|
|
|
380
380
|
}()
|
|
381
381
|
}, {
|
|
382
382
|
key: "log",
|
|
383
|
-
value: function log(logType
|
|
383
|
+
value: function log(logType) {
|
|
384
|
+
var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'init';
|
|
385
|
+
|
|
384
386
|
// @ts-ignore 瓦片、瓦片图层目前不参与日志
|
|
385
387
|
if (this.tileLayer || this.isTileLayer) {
|
|
386
388
|
return;
|
|
387
389
|
}
|
|
388
390
|
|
|
389
|
-
var key = "".concat(this.id, ".").concat(logType);
|
|
391
|
+
var key = "".concat(this.id, ".").concat(step, ".").concat(logType);
|
|
390
392
|
var values = {
|
|
391
393
|
id: this.id,
|
|
392
394
|
type: this.type
|
|
393
395
|
};
|
|
394
|
-
|
|
395
|
-
if (time) {
|
|
396
|
-
values.time = time;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
396
|
this.debugService.log(key, values);
|
|
400
397
|
}
|
|
401
398
|
}, {
|
|
@@ -557,10 +554,15 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
|
|
|
557
554
|
value: function setData(data, options) {
|
|
558
555
|
var _this4 = this;
|
|
559
556
|
|
|
557
|
+
this.log(IDebugLog.SourceInitStart, ILayerStage.UPDATE);
|
|
558
|
+
|
|
560
559
|
if (this.inited) {
|
|
561
560
|
this.layerSource.setData(data, options);
|
|
561
|
+
this.log(IDebugLog.SourceInitEnd, ILayerStage.UPDATE);
|
|
562
562
|
} else {
|
|
563
563
|
this.on('inited', function () {
|
|
564
|
+
_this4.log(IDebugLog.SourceInitStart, ILayerStage.UPDATE);
|
|
565
|
+
|
|
564
566
|
var currentSource = _this4.getSource();
|
|
565
567
|
|
|
566
568
|
if (!currentSource) {
|
|
@@ -569,6 +571,10 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
|
|
|
569
571
|
} else {
|
|
570
572
|
_this4.layerSource.setData(data, options);
|
|
571
573
|
}
|
|
574
|
+
|
|
575
|
+
_this4.layerSource.once('update', function () {
|
|
576
|
+
_this4.log(IDebugLog.SourceInitEnd, ILayerStage.UPDATE);
|
|
577
|
+
});
|
|
572
578
|
});
|
|
573
579
|
}
|
|
574
580
|
|
|
@@ -51,13 +51,9 @@ var EarthAtomSphereModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
51
51
|
while (1) {
|
|
52
52
|
switch (_context.prev = _context.next) {
|
|
53
53
|
case 0:
|
|
54
|
-
_context.
|
|
55
|
-
return this.buildModels();
|
|
54
|
+
return _context.abrupt("return", this.buildModels());
|
|
56
55
|
|
|
57
|
-
case
|
|
58
|
-
return _context.abrupt("return", _context.sent);
|
|
59
|
-
|
|
60
|
-
case 3:
|
|
56
|
+
case 1:
|
|
61
57
|
case "end":
|
|
62
58
|
return _context.stop();
|
|
63
59
|
}
|
package/es/earth/models/base.js
CHANGED
|
@@ -123,13 +123,9 @@ var BaseEarthModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
123
123
|
|
|
124
124
|
_this2.layerService.reRender();
|
|
125
125
|
});
|
|
126
|
-
_context.
|
|
127
|
-
return this.buildModels();
|
|
126
|
+
return _context.abrupt("return", this.buildModels());
|
|
128
127
|
|
|
129
|
-
case
|
|
130
|
-
return _context.abrupt("return", _context.sent);
|
|
131
|
-
|
|
132
|
-
case 9:
|
|
128
|
+
case 7:
|
|
133
129
|
case "end":
|
|
134
130
|
return _context.stop();
|
|
135
131
|
}
|
|
@@ -51,13 +51,9 @@ var EarthBloomSphereModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
51
51
|
while (1) {
|
|
52
52
|
switch (_context.prev = _context.next) {
|
|
53
53
|
case 0:
|
|
54
|
-
_context.
|
|
55
|
-
return this.buildModels();
|
|
54
|
+
return _context.abrupt("return", this.buildModels());
|
|
56
55
|
|
|
57
|
-
case
|
|
58
|
-
return _context.abrupt("return", _context.sent);
|
|
59
|
-
|
|
60
|
-
case 3:
|
|
56
|
+
case 1:
|
|
61
57
|
case "end":
|
|
62
58
|
return _context.stop();
|
|
63
59
|
}
|
|
@@ -55,13 +55,9 @@ var GridModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
55
55
|
while (1) {
|
|
56
56
|
switch (_context.prev = _context.next) {
|
|
57
57
|
case 0:
|
|
58
|
-
_context.
|
|
59
|
-
return this.buildModels();
|
|
58
|
+
return _context.abrupt("return", this.buildModels());
|
|
60
59
|
|
|
61
|
-
case
|
|
62
|
-
return _context.abrupt("return", _context.sent);
|
|
63
|
-
|
|
64
|
-
case 3:
|
|
60
|
+
case 1:
|
|
65
61
|
case "end":
|
|
66
62
|
return _context.stop();
|
|
67
63
|
}
|
|
@@ -55,13 +55,9 @@ var Grid3DModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
55
55
|
while (1) {
|
|
56
56
|
switch (_context.prev = _context.next) {
|
|
57
57
|
case 0:
|
|
58
|
-
_context.
|
|
59
|
-
return this.buildModels();
|
|
58
|
+
return _context.abrupt("return", this.buildModels());
|
|
60
59
|
|
|
61
|
-
case
|
|
62
|
-
return _context.abrupt("return", _context.sent);
|
|
63
|
-
|
|
64
|
-
case 3:
|
|
60
|
+
case 1:
|
|
65
61
|
case "end":
|
|
66
62
|
return _context.stop();
|
|
67
63
|
}
|
|
@@ -146,13 +146,9 @@ var HeatMapModel = (_dec = injectable(), _dec(_class = /*#__PURE__*/function (_B
|
|
|
146
146
|
while (1) {
|
|
147
147
|
switch (_context2.prev = _context2.next) {
|
|
148
148
|
case 0:
|
|
149
|
-
_context2.
|
|
150
|
-
return this.initModels();
|
|
149
|
+
return _context2.abrupt("return", this.initModels());
|
|
151
150
|
|
|
152
|
-
case
|
|
153
|
-
return _context2.abrupt("return", _context2.sent);
|
|
154
|
-
|
|
155
|
-
case 3:
|
|
151
|
+
case 1:
|
|
156
152
|
case "end":
|
|
157
153
|
return _context2.stop();
|
|
158
154
|
}
|
|
@@ -55,13 +55,9 @@ var HexagonModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
55
55
|
while (1) {
|
|
56
56
|
switch (_context.prev = _context.next) {
|
|
57
57
|
case 0:
|
|
58
|
-
_context.
|
|
59
|
-
return this.buildModels();
|
|
58
|
+
return _context.abrupt("return", this.buildModels());
|
|
60
59
|
|
|
61
|
-
case
|
|
62
|
-
return _context.abrupt("return", _context.sent);
|
|
63
|
-
|
|
64
|
-
case 3:
|
|
60
|
+
case 1:
|
|
65
61
|
case "end":
|
|
66
62
|
return _context.stop();
|
|
67
63
|
}
|
package/es/image/models/image.js
CHANGED
|
@@ -152,13 +152,9 @@ var ImageModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
152
152
|
while (1) {
|
|
153
153
|
switch (_context2.prev = _context2.next) {
|
|
154
154
|
case 0:
|
|
155
|
-
_context2.
|
|
156
|
-
return this.initModels();
|
|
155
|
+
return _context2.abrupt("return", this.initModels());
|
|
157
156
|
|
|
158
|
-
case
|
|
159
|
-
return _context2.abrupt("return", _context2.sent);
|
|
160
|
-
|
|
161
|
-
case 3:
|
|
157
|
+
case 1:
|
|
162
158
|
case "end":
|
|
163
159
|
return _context2.stop();
|
|
164
160
|
}
|
package/es/index.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ import TileDebugLayer from './tile/tileFactory/layers/TileDebugLayer';
|
|
|
13
13
|
import EarthLayer from './earth';
|
|
14
14
|
import MaskLayer from './mask';
|
|
15
15
|
import WindLayer from './wind';
|
|
16
|
-
export { BaseLayer, BaseModel, PointLayer, PolygonLayer, LineLayer, CityBuildingLayer, GeometryLayer, CanvasLayer, ImageLayer, RasterLayer, HeatmapLayer, EarthLayer, WindLayer, MaskLayer, TileDebugLayer, };
|
|
17
16
|
export * from './core/interface';
|
|
17
|
+
export { BaseLayer, BaseModel, PointLayer, PolygonLayer, LineLayer, CityBuildingLayer, GeometryLayer, CanvasLayer, ImageLayer, RasterLayer, HeatmapLayer, EarthLayer, WindLayer, MaskLayer, TileDebugLayer, };
|
package/es/index.js
CHANGED
|
@@ -103,5 +103,5 @@ container.bind(TYPES.ILayerPlugin).to(PixelPickingPlugin).inRequestScope();
|
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
105
|
container.bind(TYPES.ILayerPlugin).to(LayerModelPlugin).inRequestScope();
|
|
106
|
-
export
|
|
107
|
-
export
|
|
106
|
+
export * from "./core/interface";
|
|
107
|
+
export { BaseLayer, BaseModel, PointLayer, PolygonLayer, LineLayer, CityBuildingLayer, GeometryLayer, CanvasLayer, ImageLayer, RasterLayer, HeatmapLayer, EarthLayer, WindLayer, MaskLayer, TileDebugLayer };
|
package/es/line/models/arc.js
CHANGED
|
@@ -208,13 +208,9 @@ var ArcModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
208
208
|
case 0:
|
|
209
209
|
this.updateTexture();
|
|
210
210
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
211
|
-
_context.
|
|
212
|
-
return this.buildModels();
|
|
211
|
+
return _context.abrupt("return", this.buildModels());
|
|
213
212
|
|
|
214
|
-
case
|
|
215
|
-
return _context.abrupt("return", _context.sent);
|
|
216
|
-
|
|
217
|
-
case 5:
|
|
213
|
+
case 3:
|
|
218
214
|
case "end":
|
|
219
215
|
return _context.stop();
|
|
220
216
|
}
|
package/es/line/models/arc_3d.js
CHANGED
|
@@ -199,13 +199,9 @@ var Arc3DModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
199
199
|
case 0:
|
|
200
200
|
this.updateTexture();
|
|
201
201
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
202
|
-
_context.
|
|
203
|
-
return this.buildModels();
|
|
202
|
+
return _context.abrupt("return", this.buildModels());
|
|
204
203
|
|
|
205
|
-
case
|
|
206
|
-
return _context.abrupt("return", _context.sent);
|
|
207
|
-
|
|
208
|
-
case 5:
|
|
204
|
+
case 3:
|
|
209
205
|
case "end":
|
|
210
206
|
return _context.stop();
|
|
211
207
|
}
|
|
@@ -199,13 +199,9 @@ var Arc3DModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
199
199
|
case 0:
|
|
200
200
|
this.updateTexture();
|
|
201
201
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
202
|
-
_context.
|
|
203
|
-
return this.buildModels();
|
|
202
|
+
return _context.abrupt("return", this.buildModels());
|
|
204
203
|
|
|
205
|
-
case
|
|
206
|
-
return _context.abrupt("return", _context.sent);
|
|
207
|
-
|
|
208
|
-
case 5:
|
|
204
|
+
case 3:
|
|
209
205
|
case "end":
|
|
210
206
|
return _context.stop();
|
|
211
207
|
}
|
|
@@ -186,13 +186,9 @@ var GreatCircleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
186
186
|
case 0:
|
|
187
187
|
this.updateTexture();
|
|
188
188
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
189
|
-
_context.
|
|
190
|
-
return this.buildModels();
|
|
189
|
+
return _context.abrupt("return", this.buildModels());
|
|
191
190
|
|
|
192
|
-
case
|
|
193
|
-
return _context.abrupt("return", _context.sent);
|
|
194
|
-
|
|
195
|
-
case 5:
|
|
191
|
+
case 3:
|
|
196
192
|
case "end":
|
|
197
193
|
return _context.stop();
|
|
198
194
|
}
|
package/es/line/models/half.js
CHANGED
|
@@ -117,13 +117,9 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
117
117
|
while (1) {
|
|
118
118
|
switch (_context.prev = _context.next) {
|
|
119
119
|
case 0:
|
|
120
|
-
_context.
|
|
121
|
-
return this.buildModels();
|
|
120
|
+
return _context.abrupt("return", this.buildModels());
|
|
122
121
|
|
|
123
|
-
case
|
|
124
|
-
return _context.abrupt("return", _context.sent);
|
|
125
|
-
|
|
126
|
-
case 3:
|
|
122
|
+
case 1:
|
|
127
123
|
case "end":
|
|
128
124
|
return _context.stop();
|
|
129
125
|
}
|
package/es/line/models/line.js
CHANGED
|
@@ -135,8 +135,8 @@ var LineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
135
135
|
dashArray.push(0, 0);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
if (this.rendererService.getDirty()) {
|
|
139
|
-
this.texture
|
|
138
|
+
if (this.rendererService.getDirty() && this.texture) {
|
|
139
|
+
this.texture.bind();
|
|
140
140
|
} // 转化渐变色
|
|
141
141
|
|
|
142
142
|
|
|
@@ -143,13 +143,9 @@ var LinearLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
143
143
|
switch (_context.prev = _context.next) {
|
|
144
144
|
case 0:
|
|
145
145
|
this.updateTexture();
|
|
146
|
-
_context.
|
|
147
|
-
return this.buildModels();
|
|
146
|
+
return _context.abrupt("return", this.buildModels());
|
|
148
147
|
|
|
149
|
-
case
|
|
150
|
-
return _context.abrupt("return", _context.sent);
|
|
151
|
-
|
|
152
|
-
case 4:
|
|
148
|
+
case 2:
|
|
153
149
|
case "end":
|
|
154
150
|
return _context.stop();
|
|
155
151
|
}
|
|
@@ -112,13 +112,9 @@ var SimpleLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
112
112
|
while (1) {
|
|
113
113
|
switch (_context.prev = _context.next) {
|
|
114
114
|
case 0:
|
|
115
|
-
_context.
|
|
116
|
-
return this.buildModels();
|
|
115
|
+
return _context.abrupt("return", this.buildModels());
|
|
117
116
|
|
|
118
|
-
case
|
|
119
|
-
return _context.abrupt("return", _context.sent);
|
|
120
|
-
|
|
121
|
-
case 3:
|
|
117
|
+
case 1:
|
|
122
118
|
case "end":
|
|
123
119
|
return _context.stop();
|
|
124
120
|
}
|
package/es/line/models/wall.js
CHANGED
|
@@ -140,13 +140,9 @@ var LineWallModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
140
140
|
case 0:
|
|
141
141
|
this.updateTexture();
|
|
142
142
|
this.iconService.on('imageUpdate', this.updateTexture);
|
|
143
|
-
_context.
|
|
144
|
-
return this.buildModels();
|
|
143
|
+
return _context.abrupt("return", this.buildModels());
|
|
145
144
|
|
|
146
|
-
case
|
|
147
|
-
return _context.abrupt("return", _context.sent);
|
|
148
|
-
|
|
149
|
-
case 5:
|
|
145
|
+
case 3:
|
|
150
146
|
case "end":
|
|
151
147
|
return _context.stop();
|
|
152
148
|
}
|
package/es/mask/models/fill.js
CHANGED
|
@@ -55,13 +55,9 @@ var MaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
55
55
|
while (1) {
|
|
56
56
|
switch (_context.prev = _context.next) {
|
|
57
57
|
case 0:
|
|
58
|
-
_context.
|
|
59
|
-
return this.buildModels();
|
|
58
|
+
return _context.abrupt("return", this.buildModels());
|
|
60
59
|
|
|
61
|
-
case
|
|
62
|
-
return _context.abrupt("return", _context.sent);
|
|
63
|
-
|
|
64
|
-
case 3:
|
|
60
|
+
case 1:
|
|
65
61
|
case "end":
|
|
66
62
|
return _context.stop();
|
|
67
63
|
}
|
|
@@ -133,7 +129,10 @@ var MaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
133
129
|
key: "clearModels",
|
|
134
130
|
value: function clearModels() {
|
|
135
131
|
var refresh = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
136
|
-
|
|
132
|
+
|
|
133
|
+
if (refresh) {
|
|
134
|
+
this.layerService.clear();
|
|
135
|
+
}
|
|
137
136
|
}
|
|
138
137
|
}, {
|
|
139
138
|
key: "registerBuiltinAttributes",
|
|
@@ -10,7 +10,7 @@ import _initializerWarningHelper from "@babel/runtime/helpers/esm/initializerWar
|
|
|
10
10
|
var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
|
|
11
11
|
|
|
12
12
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
13
|
-
import { IDebugLog, TYPES } from '@antv/l7-core';
|
|
13
|
+
import { IDebugLog, ILayerStage, TYPES } from '@antv/l7-core';
|
|
14
14
|
import { Version } from '@antv/l7-maps';
|
|
15
15
|
import { normalize, rgb2arr } from '@antv/l7-utils';
|
|
16
16
|
import { inject, injectable } from 'inversify';
|
|
@@ -36,13 +36,13 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
|
|
|
36
36
|
while (1) {
|
|
37
37
|
switch (_context.prev = _context.next) {
|
|
38
38
|
case 0:
|
|
39
|
-
layer.log(IDebugLog.MappingStart); // 初始化重新生成 map
|
|
39
|
+
layer.log(IDebugLog.MappingStart, ILayerStage.INIT); // 初始化重新生成 map
|
|
40
40
|
|
|
41
41
|
_this.generateMaping(layer, {
|
|
42
42
|
styleAttributeService: styleAttributeService
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
layer.log(IDebugLog.MappingEnd);
|
|
45
|
+
layer.log(IDebugLog.MappingEnd, ILayerStage.INIT);
|
|
46
46
|
|
|
47
47
|
case 3:
|
|
48
48
|
case "end":
|
|
@@ -53,6 +53,7 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
|
|
|
53
53
|
})));
|
|
54
54
|
layer.hooks.beforeRenderData.tapPromise('DataMappingPlugin', /*#__PURE__*/function () {
|
|
55
55
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(flag) {
|
|
56
|
+
var mappingResult;
|
|
56
57
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
57
58
|
while (1) {
|
|
58
59
|
switch (_context2.prev = _context2.next) {
|
|
@@ -66,11 +67,14 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
|
|
|
66
67
|
|
|
67
68
|
case 2:
|
|
68
69
|
layer.dataState.dataMappingNeedUpdate = false;
|
|
69
|
-
|
|
70
|
+
layer.log(IDebugLog.MappingStart, ILayerStage.UPDATE);
|
|
71
|
+
mappingResult = _this.generateMaping(layer, {
|
|
70
72
|
styleAttributeService: styleAttributeService
|
|
71
|
-
})
|
|
73
|
+
});
|
|
74
|
+
layer.log(IDebugLog.MappingEnd, ILayerStage.UPDATE);
|
|
75
|
+
return _context2.abrupt("return", mappingResult);
|
|
72
76
|
|
|
73
|
-
case
|
|
77
|
+
case 7:
|
|
74
78
|
case "end":
|
|
75
79
|
return _context2.stop();
|
|
76
80
|
}
|
|
@@ -5,7 +5,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
var _dec, _class;
|
|
6
6
|
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
|
-
import { IDebugLog, TYPES } from '@antv/l7-core';
|
|
8
|
+
import { IDebugLog, ILayerStage, TYPES } from '@antv/l7-core';
|
|
9
9
|
import Source from '@antv/l7-source';
|
|
10
10
|
import { injectable } from 'inversify';
|
|
11
11
|
import 'reflect-metadata';
|
|
@@ -27,7 +27,7 @@ var DataSourcePlugin = (_dec = injectable(), _dec(_class = /*#__PURE__*/function
|
|
|
27
27
|
while (1) {
|
|
28
28
|
switch (_context.prev = _context.next) {
|
|
29
29
|
case 0:
|
|
30
|
-
layer.log(IDebugLog.SourceInitStart);
|
|
30
|
+
layer.log(IDebugLog.SourceInitStart, ILayerStage.INIT);
|
|
31
31
|
source = layer.getSource();
|
|
32
32
|
|
|
33
33
|
if (!source) {
|
|
@@ -44,7 +44,7 @@ var DataSourcePlugin = (_dec = injectable(), _dec(_class = /*#__PURE__*/function
|
|
|
44
44
|
|
|
45
45
|
_this.updateClusterData(layer);
|
|
46
46
|
|
|
47
|
-
layer.log(IDebugLog.SourceInitEnd);
|
|
47
|
+
layer.log(IDebugLog.SourceInitEnd, ILayerStage.INIT);
|
|
48
48
|
_context.next = 10;
|
|
49
49
|
break;
|
|
50
50
|
|
|
@@ -55,7 +55,7 @@ var DataSourcePlugin = (_dec = injectable(), _dec(_class = /*#__PURE__*/function
|
|
|
55
55
|
if (e.type === 'inited') {
|
|
56
56
|
_this.updateClusterData(layer);
|
|
57
57
|
|
|
58
|
-
layer.log(IDebugLog.SourceInitEnd);
|
|
58
|
+
layer.log(IDebugLog.SourceInitEnd, ILayerStage.INIT);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
resolve(null);
|
|
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
7
7
|
var _scaleMap, _dec, _class;
|
|
8
8
|
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
|
-
import { IDebugLog, ScaleTypes, StyleScaleType } from '@antv/l7-core';
|
|
10
|
+
import { IDebugLog, ILayerStage, ScaleTypes, StyleScaleType } from '@antv/l7-core';
|
|
11
11
|
import { extent } from 'd3-array';
|
|
12
12
|
import * as d3interpolate from 'd3-interpolate';
|
|
13
13
|
import * as d3 from 'd3-scale';
|
|
@@ -42,7 +42,7 @@ var FeatureScalePlugin = (_dec = injectable(), _dec(_class = /*#__PURE__*/functi
|
|
|
42
42
|
while (1) {
|
|
43
43
|
switch (_context.prev = _context.next) {
|
|
44
44
|
case 0:
|
|
45
|
-
layer.log(IDebugLog.ScaleInitStart);
|
|
45
|
+
layer.log(IDebugLog.ScaleInitStart, ILayerStage.INIT);
|
|
46
46
|
_this.scaleOptions = layer.getScaleOptions();
|
|
47
47
|
attributes = styleAttributeService.getLayerStyleAttributes();
|
|
48
48
|
dataArray = (_layer$getSource = layer.getSource()) === null || _layer$getSource === void 0 ? void 0 : _layer$getSource.data.dataArray;
|
|
@@ -58,7 +58,7 @@ var FeatureScalePlugin = (_dec = injectable(), _dec(_class = /*#__PURE__*/functi
|
|
|
58
58
|
_this.caculateScalesForAttributes(attributes || [], dataArray);
|
|
59
59
|
|
|
60
60
|
case 9:
|
|
61
|
-
layer.log(IDebugLog.ScaleInitEnd);
|
|
61
|
+
layer.log(IDebugLog.ScaleInitEnd, ILayerStage.INIT);
|
|
62
62
|
|
|
63
63
|
case 10:
|
|
64
64
|
case "end":
|
|
@@ -83,24 +83,26 @@ var FeatureScalePlugin = (_dec = injectable(), _dec(_class = /*#__PURE__*/functi
|
|
|
83
83
|
return _context2.abrupt("return", flag);
|
|
84
84
|
|
|
85
85
|
case 2:
|
|
86
|
+
layer.log(IDebugLog.ScaleInitStart, ILayerStage.UPDATE);
|
|
86
87
|
_this.scaleOptions = layer.getScaleOptions();
|
|
87
88
|
attributes = styleAttributeService.getLayerStyleAttributes();
|
|
88
89
|
dataArray = layer.getSource().data.dataArray;
|
|
89
90
|
|
|
90
91
|
if (!(Array.isArray(dataArray) && dataArray.length === 0)) {
|
|
91
|
-
_context2.next =
|
|
92
|
+
_context2.next = 8;
|
|
92
93
|
break;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
return _context2.abrupt("return", true);
|
|
96
97
|
|
|
97
|
-
case
|
|
98
|
+
case 8:
|
|
98
99
|
_this.caculateScalesForAttributes(attributes || [], dataArray);
|
|
99
100
|
|
|
101
|
+
layer.log(IDebugLog.ScaleInitEnd, ILayerStage.UPDATE);
|
|
100
102
|
layer.layerModelNeedUpdate = true;
|
|
101
103
|
return _context2.abrupt("return", true);
|
|
102
104
|
|
|
103
|
-
case
|
|
105
|
+
case 12:
|
|
104
106
|
case "end":
|
|
105
107
|
return _context2.stop();
|
|
106
108
|
}
|