@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
|
@@ -54,6 +54,7 @@ var MaskTile = /*#__PURE__*/function (_Tile) {
|
|
|
54
54
|
layerOptions = this.getLayerOptions();
|
|
55
55
|
sourceOptions = this.getSourceOption();
|
|
56
56
|
layer = new _mask.default((0, _objectSpread2.default)({}, layerOptions)).source(sourceOptions.data, sourceOptions.options); // 初始化数据映射
|
|
57
|
+
// tslint:disable-next-line: no-unused-expression
|
|
57
58
|
|
|
58
59
|
attributes && Object.keys(attributes).forEach(function (type) {
|
|
59
60
|
var _attributes$attr, _attributes$attr2;
|
|
@@ -85,7 +86,10 @@ var MaskTile = /*#__PURE__*/function (_Tile) {
|
|
|
85
86
|
}, {
|
|
86
87
|
key: "getFeatures",
|
|
87
88
|
value: function getFeatures(sourceLayer) {
|
|
88
|
-
if (!sourceLayer)
|
|
89
|
+
if (!sourceLayer) {
|
|
90
|
+
return [];
|
|
91
|
+
}
|
|
92
|
+
|
|
89
93
|
var source = this.sourceTile.data;
|
|
90
94
|
return source.getTileData(sourceLayer);
|
|
91
95
|
}
|
|
@@ -58,6 +58,7 @@ var RasterTile = /*#__PURE__*/function (_Tile) {
|
|
|
58
58
|
layerOptions = this.getLayerOptions();
|
|
59
59
|
sourceOptions = this.getSourceOption();
|
|
60
60
|
layer = new _raster.default((0, _objectSpread2.default)({}, layerOptions)).source(sourceOptions.data, sourceOptions.options); // 初始化数据映射
|
|
61
|
+
// tslint:disable-next-line: no-unused-expression
|
|
61
62
|
|
|
62
63
|
attributes && Object.keys(attributes).forEach(function (type) {
|
|
63
64
|
var _attributes$attr, _attributes$attr2;
|
|
@@ -54,6 +54,7 @@ var RasterTerrainRGBTile = /*#__PURE__*/function (_Tile) {
|
|
|
54
54
|
layerOptions = this.getLayerOptions();
|
|
55
55
|
sourceOptions = this.getSourceOption();
|
|
56
56
|
layer = new _raster.default((0, _objectSpread2.default)({}, layerOptions)).source(sourceOptions.data, sourceOptions.options); // 初始化数据映射
|
|
57
|
+
// tslint:disable-next-line: no-unused-expression
|
|
57
58
|
|
|
58
59
|
attributes && Object.keys(attributes).forEach(function (type) {
|
|
59
60
|
var _attributes$attr, _attributes$attr2;
|
|
@@ -25,12 +25,12 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
25
25
|
|
|
26
26
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
27
27
|
|
|
28
|
+
var _l7Utils = require("@antv/l7-utils");
|
|
29
|
+
|
|
28
30
|
var _raster = _interopRequireDefault(require("../../raster"));
|
|
29
31
|
|
|
30
32
|
var _Tile2 = _interopRequireDefault(require("./Tile"));
|
|
31
33
|
|
|
32
|
-
var _l7Utils = require("@antv/l7-utils");
|
|
33
|
-
|
|
34
34
|
var _excluded = ["rasterData"];
|
|
35
35
|
|
|
36
36
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -70,6 +70,7 @@ var RasterTile = /*#__PURE__*/function (_Tile) {
|
|
|
70
70
|
layer = new _raster.default((0, _objectSpread2.default)((0, _objectSpread2.default)({}, layerOptions), {}, {
|
|
71
71
|
colorTexture: this.colorTexture
|
|
72
72
|
})).source(sourceOptions.data, sourceOptions.options); // 初始化数据映射
|
|
73
|
+
// tslint:disable-next-line: no-unused-expression
|
|
73
74
|
|
|
74
75
|
attributes && Object.keys(attributes).forEach(function (type) {
|
|
75
76
|
var _attributes$attr, _attributes$attr2;
|
|
@@ -118,7 +119,7 @@ var RasterTile = /*#__PURE__*/function (_Tile) {
|
|
|
118
119
|
}
|
|
119
120
|
/**
|
|
120
121
|
* 用于 style 更新 colorTexture 的优化
|
|
121
|
-
* @param arg
|
|
122
|
+
* @param arg
|
|
122
123
|
*/
|
|
123
124
|
|
|
124
125
|
}, {
|
|
@@ -47,7 +47,9 @@ var Tile = /*#__PURE__*/function () {
|
|
|
47
47
|
|
|
48
48
|
}, {
|
|
49
49
|
key: "styleUpdate",
|
|
50
|
-
value: function styleUpdate() {
|
|
50
|
+
value: function styleUpdate() {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
51
53
|
}, {
|
|
52
54
|
key: "lnglatInBounds",
|
|
53
55
|
value: function lnglatInBounds(lnglat) {
|
|
@@ -161,8 +163,8 @@ var Tile = /*#__PURE__*/function () {
|
|
|
161
163
|
}
|
|
162
164
|
/**
|
|
163
165
|
* 在一个 Tile 中可能存在一个相同 ID 的 feature
|
|
164
|
-
* @param id
|
|
165
|
-
* @returns
|
|
166
|
+
* @param id
|
|
167
|
+
* @returns
|
|
166
168
|
*/
|
|
167
169
|
|
|
168
170
|
}, {
|
|
@@ -10,19 +10,19 @@ var _exportNames = {
|
|
|
10
10
|
};
|
|
11
11
|
exports.getTileFactory = getTileFactory;
|
|
12
12
|
|
|
13
|
-
var _VectorTile = _interopRequireDefault(require("./VectorTile"));
|
|
14
|
-
|
|
15
13
|
var _DebugTile = _interopRequireDefault(require("./DebugTile"));
|
|
16
14
|
|
|
17
15
|
var _ImageTile = _interopRequireDefault(require("./ImageTile"));
|
|
18
16
|
|
|
19
|
-
var
|
|
17
|
+
var _MaskTile = _interopRequireDefault(require("./MaskTile"));
|
|
20
18
|
|
|
21
19
|
var _RasterRGBTile = _interopRequireDefault(require("./RasterRGBTile"));
|
|
22
20
|
|
|
23
21
|
var _RasterTerrainRGBTile = _interopRequireDefault(require("./RasterTerrainRGBTile"));
|
|
24
22
|
|
|
25
|
-
var
|
|
23
|
+
var _RasterTile = _interopRequireDefault(require("./RasterTile"));
|
|
24
|
+
|
|
25
|
+
var _VectorTile = _interopRequireDefault(require("./VectorTile"));
|
|
26
26
|
|
|
27
27
|
var _interface = require("../interface");
|
|
28
28
|
|
|
@@ -83,7 +83,7 @@ function getTileFactory(layer) {
|
|
|
83
83
|
case 'customArrayBuffer':
|
|
84
84
|
return _RasterTile.default;
|
|
85
85
|
|
|
86
|
-
case
|
|
86
|
+
case 'terrainRGB':
|
|
87
87
|
return _RasterTerrainRGBTile.default;
|
|
88
88
|
|
|
89
89
|
default:
|
|
@@ -8,10 +8,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.getTileLayer = getTileLayer;
|
|
9
9
|
exports.isNeedMask = isNeedMask;
|
|
10
10
|
|
|
11
|
-
var _index = _interopRequireDefault(require("../../point/index"));
|
|
12
|
-
|
|
13
11
|
var _line = _interopRequireDefault(require("../../line"));
|
|
14
12
|
|
|
13
|
+
var _index = _interopRequireDefault(require("../../point/index"));
|
|
14
|
+
|
|
15
15
|
var _polygon = _interopRequireDefault(require("../../polygon"));
|
|
16
16
|
|
|
17
17
|
function getTileLayer(type) {
|
|
@@ -19,16 +19,16 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
19
19
|
|
|
20
20
|
var _l7Core = require("@antv/l7-core");
|
|
21
21
|
|
|
22
|
+
var _lodash = require("lodash");
|
|
23
|
+
|
|
22
24
|
var _TileLayerService = require("../service/TileLayerService");
|
|
23
25
|
|
|
24
26
|
var _TilePickService = require("../service/TilePickService");
|
|
25
27
|
|
|
26
|
-
var
|
|
28
|
+
var _constants = require("../style/constants");
|
|
27
29
|
|
|
28
30
|
var _tileFactory = require("../tileFactory");
|
|
29
31
|
|
|
30
|
-
var _constants = require("../style/constants");
|
|
31
|
-
|
|
32
32
|
var BaseTileLayer = /*#__PURE__*/function () {
|
|
33
33
|
// 瓦片数据管理器
|
|
34
34
|
function BaseTileLayer(parent) {
|
|
@@ -303,7 +303,9 @@ var BaseTileLayer = /*#__PURE__*/function () {
|
|
|
303
303
|
|
|
304
304
|
}, {
|
|
305
305
|
key: "setPickState",
|
|
306
|
-
value: function setPickState(layers) {
|
|
306
|
+
value: function setPickState(layers) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
307
309
|
}, {
|
|
308
310
|
key: "pickRender",
|
|
309
311
|
value: function pickRender(target) {
|
|
@@ -321,7 +323,7 @@ var BaseTileLayer = /*#__PURE__*/function () {
|
|
|
321
323
|
}
|
|
322
324
|
/**
|
|
323
325
|
* 实现 TileLayer 对子图层方法的代理
|
|
324
|
-
* @param parent
|
|
326
|
+
* @param parent
|
|
325
327
|
*/
|
|
326
328
|
|
|
327
329
|
}, {
|
package/lib/wind/models/wind.js
CHANGED
|
@@ -206,13 +206,9 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
206
206
|
while (1) {
|
|
207
207
|
switch (_context2.prev = _context2.next) {
|
|
208
208
|
case 0:
|
|
209
|
-
_context2.
|
|
210
|
-
return this.initModels();
|
|
209
|
+
return _context2.abrupt("return", this.initModels());
|
|
211
210
|
|
|
212
|
-
case
|
|
213
|
-
return _context2.abrupt("return", _context2.sent);
|
|
214
|
-
|
|
215
|
-
case 3:
|
|
211
|
+
case 1:
|
|
216
212
|
case "end":
|
|
217
213
|
return _context2.stop();
|
|
218
214
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-layers",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.7",
|
|
4
4
|
"description": "L7's collection of built-in layers",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@antv/async-hook": "^2.2.9",
|
|
30
|
-
"@antv/l7-core": "2.13.
|
|
31
|
-
"@antv/l7-maps": "2.13.
|
|
32
|
-
"@antv/l7-source": "2.13.
|
|
33
|
-
"@antv/l7-utils": "2.13.
|
|
30
|
+
"@antv/l7-core": "2.13.7",
|
|
31
|
+
"@antv/l7-maps": "2.13.7",
|
|
32
|
+
"@antv/l7-source": "2.13.7",
|
|
33
|
+
"@antv/l7-utils": "2.13.7",
|
|
34
34
|
"@babel/runtime": "^7.7.7",
|
|
35
35
|
"@mapbox/martini": "^0.2.0",
|
|
36
36
|
"@turf/clone": "^6.5.0",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"reflect-metadata": "^0.1.13"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
+
"@antv/l7-test-utils": "2.13.7",
|
|
56
57
|
"@types/d3-array": "^2.0.0",
|
|
57
58
|
"@types/d3-color": "^1.2.2",
|
|
58
59
|
"@types/d3-interpolate": "1.1.6",
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
"@types/gl-matrix": "^2.4.5",
|
|
62
63
|
"@types/lodash": "^4.14.138"
|
|
63
64
|
},
|
|
64
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "322cff4a31491437a1409ec3f7d3a313ba8a3a2c",
|
|
65
66
|
"publishConfig": {
|
|
66
67
|
"access": "public"
|
|
67
68
|
}
|