@antv/l7-layers 2.9.23 → 2.9.25

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 (166) hide show
  1. package/es/Geometry/models/plane.d.ts +1 -0
  2. package/es/citybuliding/building.js +1 -1
  3. package/es/core/BaseLayer.js +10 -3
  4. package/es/core/interface.d.ts +26 -48
  5. package/es/core/interface.js +3 -0
  6. package/es/core/schema.d.ts +3 -3
  7. package/es/core/triangulation.d.ts +4 -3
  8. package/es/core/triangulation.js +54 -39
  9. package/es/heatmap/models/heatmap.js +1 -1
  10. package/es/image/models/image.js +7 -1
  11. package/es/line/index.js +4 -1
  12. package/es/line/models/arc.js +1 -1
  13. package/es/line/models/simpleLine.js +1 -1
  14. package/es/line/shaders/line_arc_vert.glsl +5 -3
  15. package/es/line/shaders/simple/simpleline_vert.glsl +1 -0
  16. package/es/plugins/FeatureScalePlugin.js +0 -1
  17. package/es/point/index.js +3 -1
  18. package/es/point/models/fill.js +5 -2
  19. package/es/point/models/fillmage.js +9 -3
  20. package/es/point/models/image.js +8 -2
  21. package/es/point/models/radar.js +2 -3
  22. package/es/point/models/tile.js +1 -1
  23. package/es/point/shaders/fill_vert.glsl +13 -6
  24. package/es/point/shaders/image/fillImage_vert.glsl +13 -5
  25. package/es/point/shaders/image_vert.glsl +17 -8
  26. package/es/polygon/index.js +4 -1
  27. package/es/raster/index.js +3 -1
  28. package/es/tile/manager/tileLayerManager.d.ts +3 -2
  29. package/es/tile/manager/tileLayerManager.js +5 -2
  30. package/es/tile/models/tileModel.js +4 -3
  31. package/es/tile/tileFactory/base.d.ts +1 -1
  32. package/es/tile/tileFactory/base.js +32 -5
  33. package/es/tile/tileFactory/vectorLayer.d.ts +3 -1
  34. package/es/tile/tileFactory/vectorLayer.js +22 -1
  35. package/es/tile/tileLayer/baseTileLayer.d.ts +1 -1
  36. package/es/tile/tileLayer/baseTileLayer.js +3 -2
  37. package/es/tile/utils.d.ts +2 -0
  38. package/es/tile/utils.js +5 -1
  39. package/lib/Geometry/index.js +114 -77
  40. package/lib/Geometry/models/billboard.js +232 -181
  41. package/lib/Geometry/models/index.js +18 -34
  42. package/lib/Geometry/models/plane.js +407 -278
  43. package/lib/Geometry/models/sprite.js +291 -189
  44. package/lib/canvas/index.js +101 -66
  45. package/lib/canvas/models/canvas.js +207 -140
  46. package/lib/canvas/models/index.js +12 -30
  47. package/lib/citybuliding/building.js +98 -63
  48. package/lib/citybuliding/models/build.js +192 -146
  49. package/lib/core/BaseLayer.js +1331 -809
  50. package/lib/core/BaseModel.js +457 -279
  51. package/lib/core/interface.js +40 -53
  52. package/lib/core/schema.js +21 -39
  53. package/lib/core/shape/Path.js +67 -79
  54. package/lib/core/shape/extrude.js +132 -91
  55. package/lib/core/triangulation.js +412 -213
  56. package/lib/earth/index.js +100 -62
  57. package/lib/earth/models/atmosphere.js +146 -112
  58. package/lib/earth/models/base.js +210 -150
  59. package/lib/earth/models/bloomsphere.js +146 -112
  60. package/lib/earth/utils.js +111 -91
  61. package/lib/heatmap/index.js +149 -92
  62. package/lib/heatmap/models/grid.js +118 -91
  63. package/lib/heatmap/models/grid3d.js +155 -123
  64. package/lib/heatmap/models/heatmap.js +475 -338
  65. package/lib/heatmap/models/hexagon.js +121 -92
  66. package/lib/heatmap/models/index.js +22 -37
  67. package/lib/heatmap/triangulation.js +31 -47
  68. package/lib/image/index.js +111 -74
  69. package/lib/image/models/dataImage.js +232 -174
  70. package/lib/image/models/image.js +175 -123
  71. package/lib/image/models/index.js +15 -32
  72. package/lib/index.js +263 -97
  73. package/lib/line/index.js +131 -83
  74. package/lib/line/models/arc.js +352 -237
  75. package/lib/line/models/arc_3d.js +334 -228
  76. package/lib/line/models/earthArc_3d.js +336 -228
  77. package/lib/line/models/great_circle.js +291 -200
  78. package/lib/line/models/half.js +286 -201
  79. package/lib/line/models/index.js +42 -50
  80. package/lib/line/models/line.js +428 -299
  81. package/lib/line/models/linearline.js +277 -203
  82. package/lib/line/models/simpleLine.js +239 -175
  83. package/lib/line/models/tile.js +348 -237
  84. package/lib/line/models/wall.js +327 -235
  85. package/lib/line/shaders/line_arc_vert.glsl +5 -3
  86. package/lib/line/shaders/simple/simpleline_vert.glsl +1 -0
  87. package/lib/mask/index.js +92 -59
  88. package/lib/mask/models/fill.js +134 -82
  89. package/lib/mask/models/index.js +12 -30
  90. package/lib/plugins/DataMappingPlugin.js +342 -224
  91. package/lib/plugins/DataSourcePlugin.js +102 -87
  92. package/lib/plugins/FeatureScalePlugin.js +330 -241
  93. package/lib/plugins/LayerAnimateStylePlugin.js +61 -55
  94. package/lib/plugins/LayerModelPlugin.js +80 -73
  95. package/lib/plugins/LayerStylePlugin.js +48 -51
  96. package/lib/plugins/LightingPlugin.js +80 -68
  97. package/lib/plugins/MultiPassRendererPlugin.js +91 -65
  98. package/lib/plugins/PixelPickingPlugin.js +150 -109
  99. package/lib/plugins/RegisterStyleAttributePlugin.js +110 -110
  100. package/lib/plugins/ShaderUniformPlugin.js +118 -99
  101. package/lib/plugins/UpdateModelPlugin.js +40 -47
  102. package/lib/plugins/UpdateStyleAttributePlugin.js +93 -75
  103. package/lib/point/index.js +226 -148
  104. package/lib/point/models/earthExtrude.js +279 -201
  105. package/lib/point/models/earthFill.js +287 -202
  106. package/lib/point/models/extrude.js +299 -203
  107. package/lib/point/models/fill.js +406 -273
  108. package/lib/point/models/fillmage.js +365 -252
  109. package/lib/point/models/image.js +241 -164
  110. package/lib/point/models/index.js +46 -52
  111. package/lib/point/models/normal.js +183 -134
  112. package/lib/point/models/radar.js +304 -212
  113. package/lib/point/models/simplePoint.js +194 -142
  114. package/lib/point/models/text.js +608 -385
  115. package/lib/point/models/tile.js +314 -223
  116. package/lib/point/shaders/fill_vert.glsl +13 -6
  117. package/lib/point/shaders/image/fillImage_vert.glsl +13 -5
  118. package/lib/point/shaders/image_vert.glsl +17 -8
  119. package/lib/point/shape/extrude.js +56 -52
  120. package/lib/polygon/index.js +154 -100
  121. package/lib/polygon/models/extrude.js +311 -223
  122. package/lib/polygon/models/fill.js +215 -153
  123. package/lib/polygon/models/index.js +46 -52
  124. package/lib/polygon/models/ocean.js +244 -173
  125. package/lib/polygon/models/tile.js +144 -100
  126. package/lib/polygon/models/water.js +222 -153
  127. package/lib/raster/buffers/triangulation.js +27 -40
  128. package/lib/raster/index.js +115 -74
  129. package/lib/raster/models/index.js +16 -33
  130. package/lib/raster/models/raster.js +178 -135
  131. package/lib/raster/raster.js +187 -132
  132. package/lib/tile/interface.js +4 -16
  133. package/lib/tile/manager/tileConfigManager.js +125 -86
  134. package/lib/tile/manager/tileLayerManager.js +314 -227
  135. package/lib/tile/manager/tilePickerManager.js +192 -123
  136. package/lib/tile/models/tileModel.js +71 -51
  137. package/lib/tile/tileFactory/base.js +433 -292
  138. package/lib/tile/tileFactory/index.js +51 -49
  139. package/lib/tile/tileFactory/line.js +65 -50
  140. package/lib/tile/tileFactory/point.js +65 -50
  141. package/lib/tile/tileFactory/polygon.js +65 -50
  142. package/lib/tile/tileFactory/raster.js +66 -54
  143. package/lib/tile/tileFactory/rasterData.js +88 -76
  144. package/lib/tile/tileFactory/rasterDataLayer.js +97 -62
  145. package/lib/tile/tileFactory/vectorLayer.js +169 -95
  146. package/lib/tile/tileLayer/baseTileLayer.js +420 -220
  147. package/lib/tile/tmsTileLayer.js +110 -67
  148. package/lib/tile/utils.js +113 -87
  149. package/lib/utils/blend.js +59 -79
  150. package/lib/utils/collision-index.js +107 -64
  151. package/lib/utils/dataMappingStyle.js +105 -60
  152. package/lib/utils/extrude_polyline.js +600 -398
  153. package/lib/utils/grid-index.js +163 -111
  154. package/lib/utils/layerData.js +130 -99
  155. package/lib/utils/multiPassRender.js +49 -41
  156. package/lib/utils/polylineNormal.js +148 -96
  157. package/lib/utils/simpleLine.js +100 -85
  158. package/lib/utils/symbol-layout.js +219 -116
  159. package/lib/utils/updateShape.js +15 -41
  160. package/lib/wind/index.js +109 -71
  161. package/lib/wind/models/index.js +12 -30
  162. package/lib/wind/models/utils.js +144 -105
  163. package/lib/wind/models/wind.js +333 -224
  164. package/lib/wind/models/windRender.js +329 -218
  165. package/lib/wind/models/windShader.js +23 -181
  166. package/package.json +7 -6
@@ -1,160 +1,238 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
-
22
- // src/point/index.ts
23
- var point_exports = {};
24
- __export(point_exports, {
25
- default: () => PointLayer
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
26
7
  });
27
- module.exports = __toCommonJS(point_exports);
28
- var import_BaseLayer = __toESM(require("../core/BaseLayer"));
29
- var import_models = __toESM(require("./models/index"));
30
- var PointLayer = class extends import_BaseLayer.default {
31
- constructor() {
32
- super(...arguments);
33
- this.type = "PointLayer";
34
- }
35
- buildModels() {
36
- const modelType = this.getModelType();
37
- this.layerModel = new import_models.default[modelType](this);
38
- this.layerModel.initModels((models) => {
39
- this.models = models;
40
- this.layerService.updateLayerRenderList();
41
- this.renderLayers();
42
- });
43
- }
44
- rebuildModels() {
45
- this.layerModel.buildModels((models) => this.models = models);
8
+ exports.default = void 0;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
15
+
16
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
+
18
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
+
20
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
+
22
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
+
24
+ var _BaseLayer2 = _interopRequireDefault(require("../core/BaseLayer"));
25
+
26
+ var _index = _interopRequireDefault(require("./models/index"));
27
+
28
+ var _utils = require("../tile/utils");
29
+
30
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
31
+
32
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
33
+
34
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
35
+
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); }; }
37
+
38
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
+
40
+ var PointLayer = /*#__PURE__*/function (_BaseLayer) {
41
+ (0, _inherits2.default)(PointLayer, _BaseLayer);
42
+
43
+ var _super = _createSuper(PointLayer);
44
+
45
+ function PointLayer() {
46
+ var _this;
47
+
48
+ (0, _classCallCheck2.default)(this, PointLayer);
49
+
50
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
51
+ args[_key] = arguments[_key];
52
+ }
53
+
54
+ _this = _super.call.apply(_super, [this].concat(args));
55
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", 'PointLayer');
56
+ return _this;
46
57
  }
47
- getModelTypeWillEmptyData() {
48
- if (this.shapeOption) {
49
- const { field, values } = this.shapeOption;
50
- const { shape2d, shape3d } = this.getLayerConfig();
51
- const iconMap = this.iconService.getIconMap();
52
- if (field && (shape2d == null ? void 0 : shape2d.indexOf(field)) !== -1) {
53
- return "fill";
54
- }
55
- if (values && values instanceof Array) {
56
- for (const v of values) {
57
- if (typeof v === "string" && iconMap.hasOwnProperty(v)) {
58
- return "image";
58
+
59
+ (0, _createClass2.default)(PointLayer, [{
60
+ key: "buildModels",
61
+ value: function buildModels() {
62
+ var _this2 = this;
63
+
64
+ var modelType = this.getModelType();
65
+ this.layerModel = new _index.default[modelType](this);
66
+ this.layerModel.initModels(function (models) {
67
+ _this2.models = models;
68
+
69
+ _this2.layerService.updateLayerRenderList();
70
+
71
+ _this2.renderLayers();
72
+ });
73
+ }
74
+ }, {
75
+ key: "rebuildModels",
76
+ value: function rebuildModels() {
77
+ var _this3 = this;
78
+
79
+ this.layerModel.buildModels(function (models) {
80
+ return _this3.models = models;
81
+ });
82
+ }
83
+ /**
84
+ * 在未传入数据的时候判断点图层的 shape 类型
85
+ * @returns
86
+ */
87
+
88
+ }, {
89
+ key: "getModelTypeWillEmptyData",
90
+ value: function getModelTypeWillEmptyData() {
91
+ if (this.shapeOption) {
92
+ var _this$shapeOption = this.shapeOption,
93
+ field = _this$shapeOption.field,
94
+ values = _this$shapeOption.values;
95
+
96
+ var _this$getLayerConfig = this.getLayerConfig(),
97
+ shape2d = _this$getLayerConfig.shape2d,
98
+ shape3d = _this$getLayerConfig.shape3d;
99
+
100
+ var iconMap = this.iconService.getIconMap();
101
+
102
+ if (field && (shape2d === null || shape2d === void 0 ? void 0 : shape2d.indexOf(field)) !== -1) {
103
+ return 'fill';
104
+ }
105
+
106
+ if (values && values instanceof Array) {
107
+ var _iterator = _createForOfIteratorHelper(values),
108
+ _step;
109
+
110
+ try {
111
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
112
+ var v = _step.value;
113
+
114
+ if (typeof v === 'string' && iconMap.hasOwnProperty(v)) {
115
+ return 'image';
116
+ }
117
+ }
118
+ } catch (err) {
119
+ _iterator.e(err);
120
+ } finally {
121
+ _iterator.f();
59
122
  }
60
123
  }
61
124
  }
125
+
126
+ return 'normal';
62
127
  }
63
- return "normal";
64
- }
65
- getConfigSchema() {
66
- return {
67
- properties: {
68
- opacity: {
69
- type: "number",
70
- minimum: 0,
71
- maximum: 1
128
+ }, {
129
+ key: "getConfigSchema",
130
+ value: function getConfigSchema() {
131
+ return {
132
+ properties: {
133
+ opacity: {
134
+ type: 'number',
135
+ minimum: 0,
136
+ maximum: 1
137
+ }
72
138
  }
73
- }
74
- };
75
- }
76
- getDefaultConfig() {
77
- const type = this.getModelType();
78
- const defaultConfig = {
79
- fillImage: {},
80
- normal: {
81
- blend: "additive"
82
- },
83
- radar: {},
84
- simplePoint: {},
85
- fill: { blend: "normal" },
86
- extrude: {},
87
- image: {},
88
- text: {
89
- blend: "normal"
90
- },
91
- vectorpoint: {},
92
- tile: {},
93
- earthFill: {},
94
- earthExtrude: {}
95
- };
96
- return defaultConfig[type];
97
- }
98
- getModelType() {
99
- const PointTypes = [
100
- "fillImage",
101
- "fill",
102
- "radar",
103
- "image",
104
- "normal",
105
- "simplePoint",
106
- "extrude",
107
- "text",
108
- "vectorpoint",
109
- "tile",
110
- "earthFill",
111
- "earthExtrude"
112
- ];
113
- if (this.layerSource.parser.type === "mvt") {
114
- return "vectorpoint";
139
+ };
115
140
  }
116
- const layerData = this.getEncodedData();
117
- const { shape2d, shape3d } = this.getLayerConfig();
118
- const iconMap = this.iconService.getIconMap();
119
- const item = layerData.find((fe) => {
120
- return fe.hasOwnProperty("shape");
121
- });
122
- if (!item) {
123
- return this.getModelTypeWillEmptyData();
124
- } else {
125
- const shape = item.shape;
126
- if (shape === "dot") {
127
- return "normal";
128
- }
129
- if (shape === "simple") {
130
- return "simplePoint";
131
- }
132
- if (shape === "radar") {
133
- return "radar";
134
- }
135
- if (this.layerType === "fillImage") {
136
- return "fillImage";
137
- }
138
- if ((shape2d == null ? void 0 : shape2d.indexOf(shape)) !== -1) {
139
- if (this.mapService.version === "GLOBEL") {
140
- return "earthFill";
141
- } else {
142
- return "fill";
141
+ }, {
142
+ key: "getDefaultConfig",
143
+ value: function getDefaultConfig() {
144
+ var type = this.getModelType();
145
+ var defaultConfig = {
146
+ fillImage: {},
147
+ normal: {
148
+ blend: 'additive'
149
+ },
150
+ radar: {},
151
+ simplePoint: {},
152
+ fill: {
153
+ blend: 'normal'
154
+ },
155
+ extrude: {},
156
+ image: {},
157
+ text: {
158
+ blend: 'normal'
159
+ },
160
+ vectorpoint: {},
161
+ tile: {},
162
+ earthFill: {},
163
+ earthExtrude: {}
164
+ };
165
+ return defaultConfig[type];
166
+ }
167
+ }, {
168
+ key: "getModelType",
169
+ value: function getModelType() {
170
+ var PointTypes = ['fillImage', 'fill', 'radar', 'image', 'normal', 'simplePoint', 'extrude', 'text', 'vectorpoint', 'tile', 'earthFill', 'earthExtrude'];
171
+ var parserType = this.layerSource.getParserType();
172
+
173
+ if ((0, _utils.isVectorTile)(parserType)) {
174
+ return 'vectorpoint';
175
+ } // pointlayer
176
+ // 2D、 3d、 shape、image、text、normal、
177
+
178
+
179
+ var layerData = this.getEncodedData();
180
+
181
+ var _this$getLayerConfig2 = this.getLayerConfig(),
182
+ shape2d = _this$getLayerConfig2.shape2d,
183
+ shape3d = _this$getLayerConfig2.shape3d;
184
+
185
+ var iconMap = this.iconService.getIconMap();
186
+ var item = layerData.find(function (fe) {
187
+ return fe.hasOwnProperty('shape');
188
+ });
189
+
190
+ if (!item) {
191
+ return this.getModelTypeWillEmptyData();
192
+ } else {
193
+ var shape = item.shape;
194
+
195
+ if (shape === 'dot') {
196
+ return 'normal';
143
197
  }
144
- }
145
- if ((shape3d == null ? void 0 : shape3d.indexOf(shape)) !== -1) {
146
- if (this.mapService.version === "GLOBEL") {
147
- return "earthExtrude";
148
- } else {
149
- return "extrude";
198
+
199
+ if (shape === 'simple') {
200
+ return 'simplePoint';
150
201
  }
202
+
203
+ if (shape === 'radar') {
204
+ return 'radar';
205
+ }
206
+
207
+ if (this.layerType === 'fillImage') {
208
+ return 'fillImage';
209
+ }
210
+
211
+ if ((shape2d === null || shape2d === void 0 ? void 0 : shape2d.indexOf(shape)) !== -1) {
212
+ if (this.mapService.version === 'GLOBEL') {
213
+ return 'earthFill';
214
+ } else {
215
+ return 'fill';
216
+ }
217
+ }
218
+
219
+ if ((shape3d === null || shape3d === void 0 ? void 0 : shape3d.indexOf(shape)) !== -1) {
220
+ if (this.mapService.version === 'GLOBEL') {
221
+ return 'earthExtrude';
222
+ } else {
223
+ return 'extrude';
224
+ }
225
+ }
226
+
227
+ if (iconMap.hasOwnProperty(shape)) {
228
+ return 'image';
229
+ }
230
+
231
+ return 'text';
151
232
  }
152
- if (iconMap.hasOwnProperty(shape)) {
153
- return "image";
154
- }
155
- return "text";
156
233
  }
157
- }
158
- };
159
- // Annotate the CommonJS export names for ESM import in node:
160
- 0 && (module.exports = {});
234
+ }]);
235
+ return PointLayer;
236
+ }(_BaseLayer2.default);
237
+
238
+ exports.default = PointLayer;