deeptwins-engine-3d 0.1.39 → 0.1.40

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.
@@ -2,10 +2,11 @@ export default class DeepTwins {
2
2
  private _isLoaded;
3
3
  private _loadEvent;
4
4
  private _YunJing;
5
+ private _YunjingCesiumPlugins;
5
6
  constructor();
6
7
  private _init;
7
8
  private isLoaded;
8
- private onLoad;
9
+ onLoad(fun: any): void;
9
10
  _getBaseLayer(): any;
10
11
  _getTerrain(type: string): any;
11
12
  _getModuleLayer(options: any): {
@@ -17,13 +17,14 @@ var DeepTwins = /*#__PURE__*/function () {
17
17
  _defineProperty(this, "_isLoaded", false);
18
18
  _defineProperty(this, "_loadEvent", []);
19
19
  _defineProperty(this, "_YunJing", void 0);
20
+ _defineProperty(this, "_YunjingCesiumPlugins", void 0);
20
21
  this._init();
21
22
  }
22
23
  _createClass(DeepTwins, [{
23
24
  key: "_init",
24
25
  value: function () {
25
26
  var _init2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26
- var i, loadFun;
27
+ var i, _this$_YunjingCesiumP, loadFun;
27
28
  return _regeneratorRuntime().wrap(function _callee$(_context) {
28
29
  while (1) switch (_context.prev = _context.next) {
29
30
  case 0:
@@ -31,6 +32,22 @@ var DeepTwins = /*#__PURE__*/function () {
31
32
  return utils.loadUMDModule(utils.getDeepTwinsFile('YunJing/yunjing-for-cesium.js'), 'YunJing');
32
33
  case 2:
33
34
  this._YunJing = _context.sent;
35
+ _context.prev = 3;
36
+ _context.next = 6;
37
+ return utils.loadUMDModule(utils.getDeepTwinsFile('YunJing/yunjing-cesium-plugins.min.js'), 'YunjingCesiumPlugins');
38
+ case 6:
39
+ this._YunjingCesiumPlugins = _context.sent;
40
+ _context.next = 13;
41
+ break;
42
+ case 9:
43
+ _context.prev = 9;
44
+ _context.t0 = _context["catch"](3);
45
+ // 如果加载失败,尝试从 window 获取(可能已经通过其他方式加载)
46
+ this._YunjingCesiumPlugins = window.YunjingCesiumPlugins;
47
+ if (!this._YunjingCesiumPlugins) {
48
+ console.warn('DeepTwins: 无法加载 YunjingCesiumPlugins,GridVTLayer 可能不可用');
49
+ }
50
+ case 13:
34
51
  this._isLoaded = true;
35
52
  for (i = 0; i < this._loadEvent.length; i++) {
36
53
  loadFun = this._loadEvent[i];
@@ -40,14 +57,15 @@ var DeepTwins = /*#__PURE__*/function () {
40
57
  moduleLayer: this._getModuleLayer.bind(this),
41
58
  trafficHistoryLayer: this._YunJing.TrafficHistoryLayer,
42
59
  trafficLayer: this._YunJing.TrafficLayer,
43
- gridVTLayer: this._YunJing.GridVTLayer
60
+ // 优先从 YunjingCesiumPlugins 获取 GridVTLayer(与示例代码一致)
61
+ gridVTLayer: (_this$_YunjingCesiumP = this._YunjingCesiumPlugins) === null || _this$_YunjingCesiumP === void 0 ? void 0 : _this$_YunjingCesiumP.GridVTLayer
44
62
  });
45
63
  }
46
- case 5:
64
+ case 15:
47
65
  case "end":
48
66
  return _context.stop();
49
67
  }
50
- }, _callee, this);
68
+ }, _callee, this, [[3, 9]]);
51
69
  }));
52
70
  function _init() {
53
71
  return _init2.apply(this, arguments);
@@ -7,6 +7,7 @@ export declare class DeepTwinsEngine3D {
7
7
  static WmsLayer: any;
8
8
  static WmtsLayer: any;
9
9
  static ArcGisLayer: any;
10
+ static BarrierLayer: any;
10
11
  static DeepTwins: any;
11
12
  static WeatherEffects: any;
12
13
  static Drawer: any;
package/dist/esm/index.js CHANGED
@@ -31,6 +31,7 @@ import ImageGlowingMaterialAppearance from "./material/primitive/ImageGlowingMat
31
31
  import Measure from "./measure";
32
32
  import PositionProperty from "./property/PositionProperty";
33
33
  import ArcGisLayer from "./tileLayer/ArcGisLayer";
34
+ import BarrierLayer from "./tileLayer/BarrierLayer";
34
35
  import RasterLayer from "./tileLayer/RasterLayer";
35
36
  import WmsLayer from "./tileLayer/WmsLayer";
36
37
  import WmtsLayer from "./tileLayer/WmtsLayer";
@@ -52,17 +53,18 @@ DEEP_TWINS_BASE_URL && (window.CESIUM_BASE_URL = DEEP_TWINS_BASE_URL);
52
53
  // 全局加载css
53
54
  loadCss(Cesium.buildModuleUrl('Widgets/widgets.css'));
54
55
  // 打印版本信息
55
- console.log('DeepTwinsEngine3D Version:', "0.1.39");
56
+ console.log('DeepTwinsEngine3D Version:', "0.1.40");
56
57
  export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
57
58
  _classCallCheck(this, DeepTwinsEngine3D);
58
59
  });
59
- _defineProperty(DeepTwinsEngine3D, "Version", "0.1.39");
60
+ _defineProperty(DeepTwinsEngine3D, "Version", "0.1.40");
60
61
  _defineProperty(DeepTwinsEngine3D, "Map", Map);
61
62
  _defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
62
63
  _defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);
63
64
  _defineProperty(DeepTwinsEngine3D, "WmsLayer", WmsLayer);
64
65
  _defineProperty(DeepTwinsEngine3D, "WmtsLayer", WmtsLayer);
65
66
  _defineProperty(DeepTwinsEngine3D, "ArcGisLayer", ArcGisLayer);
67
+ _defineProperty(DeepTwinsEngine3D, "BarrierLayer", BarrierLayer);
66
68
  _defineProperty(DeepTwinsEngine3D, "DeepTwins", DeepTwins);
67
69
  _defineProperty(DeepTwinsEngine3D, "WeatherEffects", WeatherEffects);
68
70
  _defineProperty(DeepTwinsEngine3D, "Drawer", Drawer);
@@ -0,0 +1,73 @@
1
+ /**
2
+ * 障碍物图层 - 基于MVT数据渲染障碍物网格
3
+ *
4
+ * 使用方式:
5
+ * ```js
6
+ * const DeepTwins = new DeepTwinsEngine3D.DeepTwins();
7
+ * DeepTwins.onLoad(async ({ gridVTLayer }) => {
8
+ * const barrierLayer = new BarrierLayer(viewer, {
9
+ * gridVTLayer: gridVTLayer,
10
+ * url: 'https://...',
11
+ * });
12
+ * });
13
+ * ```
14
+ */
15
+ export default class BarrierLayer {
16
+ private _gridVTLayer;
17
+ private _viewer;
18
+ private _options;
19
+ private _heightColors;
20
+ private static readonly DEFAULT_HEIGHT_COLORS;
21
+ /**
22
+ * 创建障碍物图层
23
+ * @param viewer Cesium Viewer实例
24
+ * @param options 配置选项
25
+ * @param options.gridVTLayer GridVTLayer类(从DeepTwins.onLoad中获取)
26
+ * @param options.url MVT数据URL模板,默认为障碍物数据地址
27
+ * @param options.dataType 数据类型,默认为'barrier'
28
+ * @param options.zooms 缩放级别范围,默认[10, 22]
29
+ * @param options.dataZooms 数据缩放级别,默认[16, 16]
30
+ * @param options.cacheSize 缓存大小,默认20
31
+ * @param options.heightColors 高度颜色映射数组,默认使用内置颜色
32
+ * @param options.minHeight 最小高度(米),低于此高度的障碍物不渲染,默认0
33
+ * @param options.maxHeight 最大高度(米),高于此高度的障碍物不渲染,默认Infinity
34
+ */
35
+ constructor(viewer: any, options?: any);
36
+ /**
37
+ * 创建primitives
38
+ * 按照示例代码的逻辑实现,每个feature创建一个障碍物实例
39
+ */
40
+ private _createPrimitives;
41
+ /**
42
+ * 销毁primitives
43
+ */
44
+ private _destroyPrimitives;
45
+ /**
46
+ * 显示primitives
47
+ */
48
+ private _showPrimitives;
49
+ /**
50
+ * 隐藏primitives
51
+ */
52
+ private _hidePrimitives;
53
+ /**
54
+ * 更新primitives
55
+ */
56
+ private _updatePrimitives;
57
+ /**
58
+ * 显示图层
59
+ */
60
+ show(): void;
61
+ /**
62
+ * 隐藏图层
63
+ */
64
+ hide(): void;
65
+ /**
66
+ * 销毁图层
67
+ */
68
+ destroy(): void;
69
+ /**
70
+ * 获取底层GridVTLayer实例
71
+ */
72
+ getGridVTLayer(): any;
73
+ }
@@ -0,0 +1,281 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
+ 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); }
7
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
8
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
9
+ 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; }
10
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
12
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
+ import * as Cesium from 'deeptwins-cesium';
17
+
18
+ /**
19
+ * 障碍物图层 - 基于MVT数据渲染障碍物网格
20
+ *
21
+ * 使用方式:
22
+ * ```js
23
+ * const DeepTwins = new DeepTwinsEngine3D.DeepTwins();
24
+ * DeepTwins.onLoad(async ({ gridVTLayer }) => {
25
+ * const barrierLayer = new BarrierLayer(viewer, {
26
+ * gridVTLayer: gridVTLayer,
27
+ * url: 'https://...',
28
+ * });
29
+ * });
30
+ * ```
31
+ */
32
+ var BarrierLayer = /*#__PURE__*/function () {
33
+ /**
34
+ * 创建障碍物图层
35
+ * @param viewer Cesium Viewer实例
36
+ * @param options 配置选项
37
+ * @param options.gridVTLayer GridVTLayer类(从DeepTwins.onLoad中获取)
38
+ * @param options.url MVT数据URL模板,默认为障碍物数据地址
39
+ * @param options.dataType 数据类型,默认为'barrier'
40
+ * @param options.zooms 缩放级别范围,默认[10, 22]
41
+ * @param options.dataZooms 数据缩放级别,默认[16, 16]
42
+ * @param options.cacheSize 缓存大小,默认20
43
+ * @param options.heightColors 高度颜色映射数组,默认使用内置颜色
44
+ * @param options.minHeight 最小高度(米),低于此高度的障碍物不渲染,默认0
45
+ * @param options.maxHeight 最大高度(米),高于此高度的障碍物不渲染,默认Infinity
46
+ */
47
+ function BarrierLayer(viewer) {
48
+ var _this = this;
49
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
50
+ _classCallCheck(this, BarrierLayer);
51
+ _defineProperty(this, "_gridVTLayer", null);
52
+ _defineProperty(this, "_viewer", null);
53
+ _defineProperty(this, "_options", {});
54
+ _defineProperty(this, "_heightColors", []);
55
+ this._viewer = viewer;
56
+ if (!options.gridVTLayer) {
57
+ console.error('BarrierLayer: 请提供gridVTLayer参数,可通过DeepTwins.onLoad获取');
58
+ return;
59
+ }
60
+ var GridVTLayer = options.gridVTLayer;
61
+
62
+ // 验证并设置 dataZooms
63
+ var dataZooms = options.dataZooms || [16, 16];
64
+ if (!Array.isArray(dataZooms) || dataZooms.length !== 2) {
65
+ console.warn('BarrierLayer: dataZooms 应该是 [minZoom, maxZoom] 格式的数组,使用默认值 [16, 16]');
66
+ dataZooms = [16, 16];
67
+ }
68
+
69
+ // 设置颜色配置
70
+ if (options.heightColors && Array.isArray(options.heightColors)) {
71
+ this._heightColors = options.heightColors;
72
+ } else {
73
+ this._heightColors = _toConsumableArray(BarrierLayer.DEFAULT_HEIGHT_COLORS);
74
+ }
75
+ this._options = _objectSpread({
76
+ url: options.url || 'https://amappc.oss-cn-zhangjiakou.aliyuncs.com/yunjing/data/dikong/barrier/mvt/{z}_{x}_{y}.mvt',
77
+ dataType: options.dataType || 'barrier',
78
+ zooms: options.zooms || [10, 22],
79
+ dataZooms: dataZooms,
80
+ cacheSize: options.cacheSize || 20,
81
+ minHeight: options.minHeight !== undefined ? options.minHeight : 0,
82
+ maxHeight: options.maxHeight !== undefined ? options.maxHeight : Infinity
83
+ }, options);
84
+
85
+ // 创建 GridVTLayer
86
+ var customPrimitiveCallbacks = {
87
+ createPrimitives: function createPrimitives(tileNum, renderData, viewer) {
88
+ var targetViewer = viewer || _this._viewer;
89
+ return _this._createPrimitives(tileNum, renderData, targetViewer);
90
+ },
91
+ destroyPrimitives: function destroyPrimitives(tileNum, primitives) {
92
+ return _this._destroyPrimitives(tileNum, primitives);
93
+ },
94
+ showPrimitives: function showPrimitives(tileNum, primitives) {
95
+ return _this._showPrimitives(tileNum, primitives);
96
+ },
97
+ hidePrimitives: function hidePrimitives(tileNum, primitives) {
98
+ return _this._hidePrimitives(tileNum, primitives);
99
+ },
100
+ updatePrimitives: function updatePrimitives(tileNum, primitives) {
101
+ return _this._updatePrimitives(tileNum, primitives);
102
+ }
103
+ };
104
+ this._gridVTLayer = new GridVTLayer({
105
+ viewer: this._viewer,
106
+ url: this._options.url,
107
+ cacheSize: this._options.cacheSize,
108
+ dataZooms: this._options.dataZooms,
109
+ zooms: this._options.zooms,
110
+ dataType: this._options.dataType,
111
+ customPrimitive: customPrimitiveCallbacks
112
+ });
113
+
114
+ // 默认显示图层
115
+ if (typeof this._gridVTLayer.show === 'function') {
116
+ this._gridVTLayer.show();
117
+ } else if (this._gridVTLayer.visible !== undefined) {
118
+ this._gridVTLayer.visible = true;
119
+ }
120
+ }
121
+
122
+ /**
123
+ * 创建primitives
124
+ * 按照示例代码的逻辑实现,每个feature创建一个障碍物实例
125
+ */
126
+ _createClass(BarrierLayer, [{
127
+ key: "_createPrimitives",
128
+ value: function _createPrimitives(tileNum, renderData, viewer) {
129
+ var features = (renderData === null || renderData === void 0 ? void 0 : renderData.default) || [];
130
+ var instances = [];
131
+ var minHeight = this._options.minHeight || 0;
132
+ var maxHeight = this._options.maxHeight !== undefined ? this._options.maxHeight : Infinity;
133
+ for (var i = 0; i < features.length; i++) {
134
+ var feature = features[i];
135
+ if (!feature || !feature.lnglat || !feature.gridSize) {
136
+ continue;
137
+ }
138
+ var lnglat = [feature.lnglat[0], feature.lnglat[1], feature.lnglat[2]];
139
+
140
+ // 根据高度范围过滤障碍物
141
+ var height = lnglat[2];
142
+ if (height < minHeight || height > maxHeight) {
143
+ continue;
144
+ }
145
+ var modelMatrix = Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(lnglat[0], lnglat[1], lnglat[2])), new Cesium.Cartesian3(0, 0, 0), new Cesium.Matrix4());
146
+
147
+ // 根据高度计算颜色索引
148
+ var colorIndex = Math.floor(feature.lnglat[2] / 7.66 / 3);
149
+ var clampedIndex = Math.max(0, Math.min(colorIndex, this._heightColors.length - 1));
150
+ var color = this._heightColors[clampedIndex] || '#d8daeb';
151
+ var instance = new Cesium.GeometryInstance({
152
+ geometry: Cesium.BoxGeometry.fromDimensions({
153
+ vertexFormat: Cesium.VertexFormat.POSITION_AND_NORMAL,
154
+ dimensions: new Cesium.Cartesian3(feature.gridSize[0], feature.gridSize[1], feature.gridSize[2])
155
+ }),
156
+ modelMatrix: modelMatrix,
157
+ attributes: {
158
+ color: Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString(color))
159
+ }
160
+ });
161
+ instances.push(instance);
162
+ }
163
+ var primitives = [];
164
+ if (instances.length > 0) {
165
+ var primitive = new Cesium.Primitive({
166
+ geometryInstances: instances,
167
+ appearance: new Cesium.PerInstanceColorAppearance({
168
+ translucent: false,
169
+ closed: true
170
+ })
171
+ });
172
+ var targetViewer = viewer || this._viewer;
173
+ targetViewer.scene.primitives.add(primitive);
174
+ primitives.push(primitive);
175
+ }
176
+ return primitives;
177
+ }
178
+
179
+ /**
180
+ * 销毁primitives
181
+ */
182
+ }, {
183
+ key: "_destroyPrimitives",
184
+ value: function _destroyPrimitives(tileNum, primitives) {
185
+ var _this2 = this;
186
+ if (!(primitives !== null && primitives !== void 0 && primitives.length)) return;
187
+ primitives.forEach(function (primitive) {
188
+ primitive.show = false;
189
+ _this2._viewer.scene.primitives.remove(primitive);
190
+ primitive.destroy();
191
+ });
192
+ primitives.length = 0;
193
+ }
194
+
195
+ /**
196
+ * 显示primitives
197
+ */
198
+ }, {
199
+ key: "_showPrimitives",
200
+ value: function _showPrimitives(tileNum, primitives) {
201
+ primitives.forEach(function (primitive) {
202
+ if (primitive) {
203
+ primitive.show = true;
204
+ }
205
+ });
206
+ }
207
+
208
+ /**
209
+ * 隐藏primitives
210
+ */
211
+ }, {
212
+ key: "_hidePrimitives",
213
+ value: function _hidePrimitives(tileNum, primitives) {
214
+ primitives.forEach(function (primitive) {
215
+ primitive.show = false;
216
+ });
217
+ }
218
+
219
+ /**
220
+ * 更新primitives
221
+ */
222
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
223
+ }, {
224
+ key: "_updatePrimitives",
225
+ value: function _updatePrimitives(_tileNum, _primitives) {
226
+ // 预留接口,可根据需要实现更新逻辑
227
+ }
228
+
229
+ /**
230
+ * 显示图层
231
+ */
232
+ }, {
233
+ key: "show",
234
+ value: function show() {
235
+ if (this._gridVTLayer) {
236
+ if (typeof this._gridVTLayer.show === 'function') {
237
+ this._gridVTLayer.show();
238
+ } else if (this._gridVTLayer.visible !== undefined) {
239
+ this._gridVTLayer.visible = true;
240
+ }
241
+ }
242
+ }
243
+
244
+ /**
245
+ * 隐藏图层
246
+ */
247
+ }, {
248
+ key: "hide",
249
+ value: function hide() {
250
+ if (this._gridVTLayer) {
251
+ this._gridVTLayer.hide();
252
+ }
253
+ }
254
+
255
+ /**
256
+ * 销毁图层
257
+ */
258
+ }, {
259
+ key: "destroy",
260
+ value: function destroy() {
261
+ if (this._gridVTLayer) {
262
+ var _this$_gridVTLayer$de, _this$_gridVTLayer;
263
+ (_this$_gridVTLayer$de = (_this$_gridVTLayer = this._gridVTLayer).destroy) === null || _this$_gridVTLayer$de === void 0 || _this$_gridVTLayer$de.call(_this$_gridVTLayer);
264
+ this._gridVTLayer = null;
265
+ }
266
+ }
267
+
268
+ /**
269
+ * 获取底层GridVTLayer实例
270
+ */
271
+ }, {
272
+ key: "getGridVTLayer",
273
+ value: function getGridVTLayer() {
274
+ return this._gridVTLayer;
275
+ }
276
+ }]);
277
+ return BarrierLayer;
278
+ }();
279
+ // 默认高度颜色映射(从低到高)
280
+ _defineProperty(BarrierLayer, "DEFAULT_HEIGHT_COLORS", ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'].reverse());
281
+ export { BarrierLayer as default };