@antv/l7-layers 2.10.2 → 2.10.3

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.
Files changed (128) hide show
  1. package/es/Geometry/index.js +8 -8
  2. package/es/Geometry/models/billboard.js +9 -9
  3. package/es/Geometry/models/plane.js +10 -10
  4. package/es/Geometry/models/sprite.js +10 -10
  5. package/es/canvas/index.js +8 -8
  6. package/es/canvas/models/canvas.js +9 -9
  7. package/es/citybuliding/building.js +8 -8
  8. package/es/citybuliding/models/build.js +7 -7
  9. package/es/core/BaseLayer.js +37 -46
  10. package/es/core/BaseModel.js +8 -8
  11. package/es/core/LayerPickService.js +4 -4
  12. package/es/core/shape/Path.js +1 -1
  13. package/es/core/shape/extrude.js +1 -1
  14. package/es/core/triangulation.js +2 -2
  15. package/es/earth/index.js +8 -8
  16. package/es/earth/models/atmosphere.js +6 -6
  17. package/es/earth/models/base.js +8 -8
  18. package/es/earth/models/bloomsphere.js +6 -6
  19. package/es/earth/utils.js +1 -1
  20. package/es/heatmap/index.js +8 -8
  21. package/es/heatmap/models/grid.js +6 -6
  22. package/es/heatmap/models/grid3d.js +6 -6
  23. package/es/heatmap/models/heatmap.js +8 -8
  24. package/es/heatmap/models/hexagon.js +6 -6
  25. package/es/image/index.js +8 -8
  26. package/es/image/models/dataImage.js +6 -6
  27. package/es/image/models/image.js +6 -6
  28. package/es/image/models/tileDataImage.js +6 -6
  29. package/es/line/index.js +9 -9
  30. package/es/line/models/arc.js +8 -8
  31. package/es/line/models/arc_3d.js +8 -8
  32. package/es/line/models/earthArc_3d.js +8 -8
  33. package/es/line/models/great_circle.js +8 -8
  34. package/es/line/models/half.js +6 -6
  35. package/es/line/models/line.js +8 -8
  36. package/es/line/models/linearline.js +8 -8
  37. package/es/line/models/simpleLine.js +6 -6
  38. package/es/line/models/simpleTileLine.js +6 -6
  39. package/es/line/models/tile.js +6 -6
  40. package/es/line/models/wall.js +8 -8
  41. package/es/mask/index.js +8 -8
  42. package/es/mask/models/fill.js +6 -6
  43. package/es/plugins/DataMappingPlugin.d.ts +0 -2
  44. package/es/plugins/DataMappingPlugin.js +24 -97
  45. package/es/plugins/DataSourcePlugin.js +27 -19
  46. package/es/plugins/FeatureScalePlugin.d.ts +0 -1
  47. package/es/plugins/FeatureScalePlugin.js +7 -23
  48. package/es/plugins/LayerAnimateStylePlugin.js +3 -3
  49. package/es/plugins/LayerModelPlugin.js +4 -7
  50. package/es/plugins/LayerStylePlugin.js +2 -2
  51. package/es/plugins/LightingPlugin.js +4 -4
  52. package/es/plugins/MultiPassRendererPlugin.js +2 -2
  53. package/es/plugins/PixelPickingPlugin.js +2 -2
  54. package/es/plugins/RegisterStyleAttributePlugin.js +2 -2
  55. package/es/plugins/ShaderUniformPlugin.js +6 -6
  56. package/es/plugins/UpdateModelPlugin.js +5 -2
  57. package/es/plugins/UpdateStyleAttributePlugin.js +3 -7
  58. package/es/point/index.js +8 -8
  59. package/es/point/models/earthExtrude.js +8 -8
  60. package/es/point/models/earthFill.js +8 -8
  61. package/es/point/models/extrude.js +8 -8
  62. package/es/point/models/fill.js +9 -9
  63. package/es/point/models/fillmage.js +9 -9
  64. package/es/point/models/image.js +8 -8
  65. package/es/point/models/normal.js +7 -7
  66. package/es/point/models/radar.js +9 -9
  67. package/es/point/models/simplePoint.js +7 -7
  68. package/es/point/models/text.js +45 -29
  69. package/es/point/models/tile.js +6 -6
  70. package/es/point/models/tileText.js +9 -9
  71. package/es/point/shape/extrude.js +1 -1
  72. package/es/polygon/index.js +8 -8
  73. package/es/polygon/models/extrude.js +7 -7
  74. package/es/polygon/models/fill.js +6 -6
  75. package/es/polygon/models/ocean.js +7 -7
  76. package/es/polygon/models/tile.js +6 -6
  77. package/es/polygon/models/water.js +7 -7
  78. package/es/raster/index.js +8 -8
  79. package/es/raster/models/raster.js +6 -6
  80. package/es/raster/models/rasterRgb.js +8 -8
  81. package/es/raster/models/rasterTile.js +6 -6
  82. package/es/raster/raster.js +10 -10
  83. package/es/tile/interaction/getRasterData.js +1 -1
  84. package/es/tile/interaction/utils.js +1 -1
  85. package/es/tile/manager/base.js +5 -5
  86. package/es/tile/service/TileLayerService.js +5 -5
  87. package/es/tile/service/TilePickService.d.ts +3 -3
  88. package/es/tile/service/TilePickService.js +31 -7
  89. package/es/tile/service/TileSourceService.d.ts +7 -0
  90. package/es/tile/service/TileSourceService.js +39 -0
  91. package/es/tile/style/utils.js +1 -1
  92. package/es/tile/tileFactory/DebugTile.js +6 -6
  93. package/es/tile/tileFactory/ImageTile.js +7 -7
  94. package/es/tile/tileFactory/MaskTile.js +8 -8
  95. package/es/tile/tileFactory/RasterRGBTile.js +7 -7
  96. package/es/tile/tileFactory/RasterTile.js +7 -7
  97. package/es/tile/tileFactory/Tile.d.ts +11 -0
  98. package/es/tile/tileFactory/Tile.js +68 -5
  99. package/es/tile/tileFactory/VectorTile.d.ts +1 -1
  100. package/es/tile/tileFactory/VectorTile.js +8 -14
  101. package/es/tile/tileFactory/layers/RasterDataLayer.js +8 -8
  102. package/es/tile/tileFactory/layers/TileDebugLayer.js +8 -8
  103. package/es/tile/tileLayer/BaseLayer.js +4 -4
  104. package/es/utils/blend.js +1 -1
  105. package/es/utils/collision-index.js +4 -4
  106. package/es/utils/extrude_polyline.js +5 -5
  107. package/es/utils/grid-index.js +3 -3
  108. package/es/utils/multiPassRender.js +1 -1
  109. package/es/utils/polylineNormal.js +1 -1
  110. package/es/utils/simpleLine.js +3 -3
  111. package/es/wind/index.js +8 -8
  112. package/es/wind/models/wind.js +11 -8
  113. package/es/wind/models/windRender.js +3 -3
  114. package/lib/core/BaseLayer.js +24 -33
  115. package/lib/plugins/DataMappingPlugin.js +16 -87
  116. package/lib/plugins/DataSourcePlugin.js +24 -16
  117. package/lib/plugins/FeatureScalePlugin.js +2 -18
  118. package/lib/plugins/LayerModelPlugin.js +1 -4
  119. package/lib/plugins/UpdateModelPlugin.js +3 -0
  120. package/lib/plugins/UpdateStyleAttributePlugin.js +1 -5
  121. package/lib/point/models/text.js +36 -20
  122. package/lib/tile/service/TilePickService.js +29 -3
  123. package/lib/tile/service/TileSourceService.js +59 -0
  124. package/lib/tile/tileFactory/MaskTile.js +1 -1
  125. package/lib/tile/tileFactory/Tile.js +64 -0
  126. package/lib/tile/tileFactory/VectorTile.js +1 -7
  127. package/lib/wind/models/wind.js +3 -0
  128. package/package.json +6 -6
@@ -134,13 +134,7 @@ var VectorTile = /*#__PURE__*/function (_Tile) {
134
134
  _this$parent$getLayer3 = _this$parent$getLayer.featureId,
135
135
  featureId = _this$parent$getLayer3 === void 0 ? 'id' : _this$parent$getLayer3;
136
136
 
137
- var vectorLayer = this.sourceTile.data.layers[sourceLayer];
138
-
139
- if (!vectorLayer) {
140
- return false;
141
- }
142
-
143
- var features = vectorLayer.features;
137
+ var features = this.getFeatures(sourceLayer);
144
138
  return {
145
139
  data: {
146
140
  type: 'FeatureCollection',
@@ -335,6 +335,8 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
335
335
  var _ref3 = this.layer.getLayerConfig(),
336
336
  opacity = _ref3.opacity;
337
337
 
338
+ this.layerService.beforeRenderData(this.layer);
339
+ this.layer.hooks.beforeRender.call();
338
340
  this.layerService.renderMask(this.layer.masks);
339
341
  (_this$colorModel = this.colorModel) === null || _this$colorModel === void 0 ? void 0 : _this$colorModel.draw({
340
342
  uniforms: {
@@ -342,6 +344,7 @@ var WindModel = /*#__PURE__*/function (_BaseModel) {
342
344
  u_texture: this.texture
343
345
  }
344
346
  });
347
+ this.layer.hooks.afterRender.call();
345
348
  }
346
349
  }]);
347
350
  return WindModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-layers",
3
- "version": "2.10.2",
3
+ "version": "2.10.3",
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.10.2",
31
- "@antv/l7-maps": "2.10.2",
32
- "@antv/l7-source": "2.10.2",
33
- "@antv/l7-utils": "2.10.2",
30
+ "@antv/l7-core": "2.10.3",
31
+ "@antv/l7-maps": "2.10.3",
32
+ "@antv/l7-source": "2.10.3",
33
+ "@antv/l7-utils": "2.10.3",
34
34
  "@babel/runtime": "^7.7.7",
35
35
  "@mapbox/martini": "^0.2.0",
36
36
  "@turf/clone": "^6.5.0",
@@ -61,7 +61,7 @@
61
61
  "@types/gl-matrix": "^2.4.5",
62
62
  "@types/lodash": "^4.14.138"
63
63
  },
64
- "gitHead": "2182dc4ba3ea9e59e964ea853eff2733e5861357",
64
+ "gitHead": "306900eeb5c60dbbee4331a44e42e101b711ba0d",
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  }