@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
package/es/image/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,9 +1,9 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
 
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,9 +1,9 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
 
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,9 +1,9 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
 
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
package/es/line/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
- import _createClass from "@babel/runtime/helpers/createClass";
5
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
5
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
6
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
7
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
8
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
9
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
10
10
  import _regeneratorRuntime from "@babel/runtime/regenerator";
11
11
 
12
12
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,11 +1,11 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,11 +1,11 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,11 +1,11 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,11 +1,11 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,9 +1,9 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
 
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,11 +1,11 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,11 +1,11 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,9 +1,9 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
 
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,9 +1,9 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
 
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,9 +1,9 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
 
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,11 +1,11 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
package/es/mask/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
10
 
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1,9 +1,9 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
1
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
 
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -8,11 +8,9 @@ export default class DataMappingPlugin implements ILayerPlugin {
8
8
  }): void;
9
9
  private generateMaping;
10
10
  private mapping;
11
- private mapLayerMapping;
12
11
  private adjustData2Amap2Coordinates;
13
12
  private adjustData2SimpleCoordinates;
14
13
  private unProjectCoordinates;
15
14
  private applyAttributeMapping;
16
- private applyMapLayerAttributeMapping;
17
15
  private getArrowPoints;
18
16
  }
@@ -1,11 +1,11 @@
1
- import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
- import _initializerDefineProperty from "@babel/runtime/helpers/initializerDefineProperty";
4
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
- import _createClass from "@babel/runtime/helpers/createClass";
6
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
- import _applyDecoratedDescriptor from "@babel/runtime/helpers/applyDecoratedDescriptor";
8
- import _initializerWarningHelper from "@babel/runtime/helpers/initializerWarningHelper";
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import _initializerDefineProperty from "@babel/runtime/helpers/esm/initializerDefineProperty";
4
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
5
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
6
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
7
+ import _applyDecoratedDescriptor from "@babel/runtime/helpers/esm/applyDecoratedDescriptor";
8
+ import _initializerWarningHelper from "@babel/runtime/helpers/esm/initializerWarningHelper";
9
9
 
10
10
  var _dec, _dec2, _dec3, _class, _class2, _descriptor, _descriptor2;
11
11
 
@@ -84,13 +84,6 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
84
84
  }()); // remapping before render
85
85
 
86
86
  layer.hooks.beforeRender.tap('DataMappingPlugin', function () {
87
- var _layer$getLayerConfig = layer.getLayerConfig(),
88
- usage = _layer$getLayerConfig.usage;
89
-
90
- if (usage === 'basemap') {
91
- return;
92
- }
93
-
94
87
  var source = layer.getSource();
95
88
 
96
89
  if (layer.layerModelNeedUpdate || !source || !source.inited) {
@@ -99,7 +92,12 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
99
92
 
100
93
  var attributes = styleAttributeService.getLayerStyleAttributes() || [];
101
94
  var filter = styleAttributeService.getLayerStyleAttribute('filter');
102
- var dataArray = source.data.dataArray;
95
+ var dataArray = source.data.dataArray; // TODO 数据为空的情况
96
+
97
+ if (Array.isArray(dataArray) && dataArray.length === 0) {
98
+ return;
99
+ }
100
+
103
101
  var attributesToRemapping = attributes.filter(function (attribute) {
104
102
  return attribute.needRemapping;
105
103
  } // 如果filter变化
@@ -123,10 +121,9 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
123
121
  var _encodeData = _this.mapping(layer, attributesToRemapping, filterData, layer.getEncodedData());
124
122
 
125
123
  layer.setEncodedData(_encodeData);
126
- } // 处理文本更新
124
+ } // 处理文本更新,更新文字形状
125
+ // layer.emit('remapping', null);
127
126
 
128
-
129
- layer.emit('remapping', null);
130
127
  }
131
128
  });
132
129
  }
@@ -219,57 +216,10 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
219
216
  this.adjustData2SimpleCoordinates(mappedData);
220
217
  return mappedData;
221
218
  }
222
- }, {
223
- key: "mapLayerMapping",
224
- value: function mapLayerMapping(layer, attributes, data, predata) {
225
- var _this4 = this;
226
-
227
- var usedAttributes = attributes.filter(function (attribute) {
228
- return attribute.scale !== undefined;
229
- });
230
- var mappedData = data.map(function (record, i) {
231
- var preRecord = predata ? predata[i] : {};
232
-
233
- var encodeRecord = _objectSpread({
234
- id: record._id,
235
- coordinates: record.coordinates
236
- }, preRecord);
237
-
238
- usedAttributes.forEach(function (attribute) {
239
- var _layer$shapeOption;
240
-
241
- if (attribute.name === 'shape' && // @ts-ignore
242
- ((_layer$shapeOption = layer.shapeOption) === null || _layer$shapeOption === void 0 ? void 0 : _layer$shapeOption.field) === 'simple') {
243
- encodeRecord[attribute.name] = 'simple';
244
- attribute.needRemapping = false;
245
- } else {
246
- var values = _this4.applyMapLayerAttributeMapping(attribute, record);
247
-
248
- attribute.needRemapping = false; // @ts-ignore
249
-
250
- encodeRecord[attribute.name] = Array.isArray(values) && values.length === 1 ? values[0] : values; // 增加对 layer/text/iconfont unicode 映射的解析
251
-
252
- if (attribute.name === 'shape') {
253
- encodeRecord.shape = _this4.fontService.getIconFontKey(encodeRecord[attribute.name]);
254
- }
255
- }
256
- });
257
-
258
- if (encodeRecord.size === undefined) {
259
- // in case not set size
260
- encodeRecord.size = 1;
261
- }
262
-
263
- return encodeRecord;
264
- }); // 调整数据兼容 Amap2.0
265
-
266
- this.adjustData2Amap2Coordinates(mappedData, layer);
267
- return mappedData;
268
- }
269
219
  }, {
270
220
  key: "adjustData2Amap2Coordinates",
271
221
  value: function adjustData2Amap2Coordinates(mappedData, layer) {
272
- var _this5 = this;
222
+ var _this4 = this;
273
223
 
274
224
  // 根据地图的类型判断是否需要对点位数据进行处理, 若是高德2.0则需要对坐标进行相对偏移
275
225
  if (mappedData.length > 0 && this.mapService.version === Version['GAODE2.x']) {
@@ -288,7 +238,7 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
288
238
  // @ts-ignore
289
239
  // d.coordinates = this.mapService.lngLatToCoord(d.coordinates);
290
240
 
291
- d.coordinates = _this5.mapService.lngLatToCoordByLayer(d.coordinates, layerCenter);
241
+ d.coordinates = _this4.mapService.lngLatToCoordByLayer(d.coordinates, layerCenter);
292
242
  });
293
243
  } else {
294
244
  // 连续的线、面数据
@@ -302,7 +252,7 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
302
252
  // @ts-ignore
303
253
  // d.coordinates = this.mapService.lngLatToCoords(d.coordinates);
304
254
 
305
- d.coordinates = _this5.mapService.lngLatToCoordsByLayer(d.coordinates, layerCenter);
255
+ d.coordinates = _this4.mapService.lngLatToCoordsByLayer(d.coordinates, layerCenter);
306
256
  });
307
257
  }
308
258
  }
@@ -310,12 +260,12 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
310
260
  }, {
311
261
  key: "adjustData2SimpleCoordinates",
312
262
  value: function adjustData2SimpleCoordinates(mappedData) {
313
- var _this6 = this;
263
+ var _this5 = this;
314
264
 
315
265
  if (mappedData.length > 0 && this.mapService.version === Version.SIMPLE) {
316
266
  mappedData.map(function (d) {
317
267
  if (!d.simpleCoordinate) {
318
- d.coordinates = _this6.unProjectCoordinates(d.coordinates);
268
+ d.coordinates = _this5.unProjectCoordinates(d.coordinates);
319
269
  d.simpleCoordinate = true;
320
270
  }
321
271
  });
@@ -324,7 +274,7 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
324
274
  }, {
325
275
  key: "unProjectCoordinates",
326
276
  value: function unProjectCoordinates(coordinates) {
327
- var _this7 = this;
277
+ var _this6 = this;
328
278
 
329
279
  if (typeof coordinates[0] === 'number') {
330
280
  return this.mapService.simpleMapCoord.unproject(coordinates);
@@ -337,7 +287,7 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
337
287
  // @ts-ignore
338
288
  var c1 = [];
339
289
  coord.map(function (co) {
340
- c1.push(_this7.mapService.simpleMapCoord.unproject(co));
290
+ c1.push(_this6.mapService.simpleMapCoord.unproject(co));
341
291
  }); // @ts-ignore
342
292
 
343
293
  coords.push(c1);
@@ -349,7 +299,7 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
349
299
  var _coords = []; // @ts-ignore
350
300
 
351
301
  coordinates.map(function (coord) {
352
- _coords.push(_this7.mapService.simpleMapCoord.unproject(coord));
302
+ _coords.push(_this6.mapService.simpleMapCoord.unproject(coord));
353
303
  }); // @ts-ignore
354
304
 
355
305
  return _coords;
@@ -379,29 +329,6 @@ var DataMappingPlugin = (_dec = injectable(), _dec2 = inject(TYPES.IMapService),
379
329
  var mappingResult = attribute.mapping ? attribute.mapping(params) : [];
380
330
  return mappingResult; // return attribute.mapping ? attribute.mapping(params) : [];
381
331
  }
382
- }, {
383
- key: "applyMapLayerAttributeMapping",
384
- value: function applyMapLayerAttributeMapping(attribute, record) {
385
- var _attribute$scale3;
386
-
387
- if (!attribute.scale) {
388
- return [];
389
- }
390
-
391
- var scalers = (attribute === null || attribute === void 0 ? void 0 : (_attribute$scale3 = attribute.scale) === null || _attribute$scale3 === void 0 ? void 0 : _attribute$scale3.scalers) || [];
392
- var params = [];
393
- scalers.forEach(function (_ref7) {
394
- var _attribute$scale4;
395
-
396
- var field = _ref7.field;
397
-
398
- if (record.hasOwnProperty(field) || ((_attribute$scale4 = attribute.scale) === null || _attribute$scale4 === void 0 ? void 0 : _attribute$scale4.type) === 'variable') {
399
- params.push(record[field]);
400
- }
401
- });
402
- var mappingResult = attribute.mapping ? attribute.mapping(params) : [];
403
- return mappingResult;
404
- }
405
332
  }, {
406
333
  key: "getArrowPoints",
407
334
  value: function getArrowPoints(p1, p2) {