@vtx/cs-map 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_util/generateRandomPosition.js +25 -0
- package/lib/_util/generateRandomPosition.js.map +1 -0
- package/lib/assets/water.png +0 -0
- package/lib/fly-line-layer/FlyLineLayer.js +212 -0
- package/lib/fly-line-layer/FlyLineLayer.js.map +1 -0
- package/lib/fly-line-layer/index.js +83 -0
- package/lib/fly-line-layer/index.js.map +1 -0
- package/lib/fly-line-layer/lineFlowMaterialProperty.js +90 -0
- package/lib/fly-line-layer/lineFlowMaterialProperty.js.map +1 -0
- package/lib/fly-line-layer/style/css.js +4 -0
- package/lib/fly-line-layer/style/css.js.map +1 -0
- package/lib/fly-line-layer/style/index.css +0 -0
- package/lib/fly-line-layer/style/index.js +4 -0
- package/lib/fly-line-layer/style/index.js.map +1 -0
- package/lib/fly-line-layer/style/index.less +0 -0
- package/lib/heatmap-layer/CesiumHeatmap.js +345 -0
- package/lib/heatmap-layer/CesiumHeatmap.js.map +1 -0
- package/lib/heatmap-layer/HeatmapLayer.js +158 -0
- package/lib/heatmap-layer/HeatmapLayer.js.map +1 -0
- package/lib/heatmap-layer/index.js +34 -0
- package/lib/heatmap-layer/index.js.map +1 -0
- package/lib/heatmap-layer/style/css.js +4 -0
- package/lib/heatmap-layer/style/css.js.map +1 -0
- package/lib/heatmap-layer/style/index.css +0 -0
- package/lib/heatmap-layer/style/index.js +4 -0
- package/lib/heatmap-layer/style/index.js.map +1 -0
- package/lib/heatmap-layer/style/index.less +0 -0
- package/lib/index.js +28 -0
- package/lib/index.js.map +1 -1
- package/lib/{tools/legend → legend}/index.js +71 -61
- package/lib/legend/index.js.map +1 -0
- package/lib/legend/style/css.js +8 -0
- package/lib/legend/style/css.js.map +1 -0
- package/lib/legend/style/index.css +57 -0
- package/lib/legend/style/index.js +8 -0
- package/lib/legend/style/index.js.map +1 -0
- package/lib/legend/style/index.less +59 -0
- package/lib/map/index.js +13 -0
- package/lib/map/index.js.map +1 -1
- package/lib/tools/index.js +1 -5
- package/lib/tools/index.js.map +1 -1
- package/lib/tools/style/index.css +1 -23
- package/lib/tools/style/index.less +1 -23
- package/lib/trail-polyline-layer/TrailPolylineLayer.js +11 -13
- package/lib/trail-polyline-layer/TrailPolylineLayer.js.map +1 -1
- package/lib/trail-polyline-layer/TrailPolylineMaterial.js.map +1 -0
- package/lib/water-surface-layer/WaterSurfaceLayer.js +87 -0
- package/lib/water-surface-layer/WaterSurfaceLayer.js.map +1 -0
- package/lib/water-surface-layer/index.js +28 -0
- package/lib/water-surface-layer/index.js.map +1 -0
- package/lib/water-surface-layer/style/css.js +4 -0
- package/lib/water-surface-layer/style/css.js.map +1 -0
- package/lib/water-surface-layer/style/index.css +0 -0
- package/lib/water-surface-layer/style/index.js +4 -0
- package/lib/water-surface-layer/style/index.js.map +1 -0
- package/lib/water-surface-layer/style/index.less +0 -0
- package/package.json +2 -1
- package/lib/material/TrailPolylineMaterial.js.map +0 -1
- package/lib/tools/legend/index.js.map +0 -1
- /package/lib/{material → trail-polyline-layer}/TrailPolylineMaterial.js +0 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
var Cesium = _interopRequireWildcard(require("cesium"));
|
|
5
|
+
var _heatmap = _interopRequireDefault(require("heatmap.js"));
|
|
6
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
7
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
8
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
9
|
+
/*
|
|
10
|
+
* CesiumHeatmap.js v0.1 | Cesium Heatmap Library
|
|
11
|
+
*
|
|
12
|
+
* Works with heatmap.js v2.0.0: http://www.patrick-wied.at/static/heatmapjs/
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
(function (window) {
|
|
16
|
+
'use strict';
|
|
17
|
+
|
|
18
|
+
function define_CesiumHeatmap() {
|
|
19
|
+
var CesiumHeatmap = {
|
|
20
|
+
defaults: {
|
|
21
|
+
useEntitiesIfAvailable: true,
|
|
22
|
+
//whether to use entities if a Viewer is supplied or always use an ImageryProvider
|
|
23
|
+
minCanvasSize: 700,
|
|
24
|
+
// minimum size (in pixels) for the heatmap canvas
|
|
25
|
+
maxCanvasSize: 2000,
|
|
26
|
+
// maximum size (in pixels) for the heatmap canvas
|
|
27
|
+
radiusFactor: 60,
|
|
28
|
+
// data point size factor used if no radius is given (the greater of height and width divided by this number yields the used radius)
|
|
29
|
+
spacingFactor: 1.5,
|
|
30
|
+
// extra space around the borders (point radius multiplied by this number yields the spacing)
|
|
31
|
+
maxOpacity: 0.8,
|
|
32
|
+
// the maximum opacity used if not given in the heatmap options object
|
|
33
|
+
minOpacity: 0.1,
|
|
34
|
+
// the minimum opacity used if not given in the heatmap options object
|
|
35
|
+
blur: 0.85,
|
|
36
|
+
// the blur used if not given in the heatmap options object
|
|
37
|
+
gradient: {
|
|
38
|
+
// the gradient used if not given in the heatmap options object
|
|
39
|
+
'.3': 'blue',
|
|
40
|
+
'.65': 'yellow',
|
|
41
|
+
'.8': 'orange',
|
|
42
|
+
'.95': 'red'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/* Create a CesiumHeatmap instance
|
|
48
|
+
*
|
|
49
|
+
* cesium: the CesiumWidget or Viewer instance
|
|
50
|
+
* bb: the WGS84 bounding box like {north, east, south, west}
|
|
51
|
+
* options: a heatmap.js options object (see http://www.patrick-wied.at/static/heatmapjs/docs.html#h337-create)
|
|
52
|
+
*/
|
|
53
|
+
CesiumHeatmap.create = function (cesium, bb, options) {
|
|
54
|
+
var instance = new CHInstance(cesium, bb, options);
|
|
55
|
+
return instance;
|
|
56
|
+
};
|
|
57
|
+
CesiumHeatmap._getContainer = function (width, height, id) {
|
|
58
|
+
var c = document.createElement("div");
|
|
59
|
+
if (id) {
|
|
60
|
+
c.setAttribute("id", id);
|
|
61
|
+
}
|
|
62
|
+
c.setAttribute("style", "width: " + width + "px; height: " + height + "px; margin: 0px; display: none;");
|
|
63
|
+
document.body.appendChild(c);
|
|
64
|
+
return c;
|
|
65
|
+
};
|
|
66
|
+
CesiumHeatmap._getImageryProvider = function (instance) {
|
|
67
|
+
//var n = (new Date()).getTime();
|
|
68
|
+
var d = instance._heatmap.getDataURL();
|
|
69
|
+
//console.log("Create data URL: " + ((new Date()).getTime() - n));
|
|
70
|
+
|
|
71
|
+
//var n = (new Date()).getTime();
|
|
72
|
+
var imgprov = new Cesium.SingleTileImageryProvider({
|
|
73
|
+
url: d,
|
|
74
|
+
rectangle: instance._rectangle
|
|
75
|
+
});
|
|
76
|
+
//console.log("Create imageryprovider: " + ((new Date()).getTime() - n));
|
|
77
|
+
|
|
78
|
+
imgprov._tilingScheme = new Cesium.WebMercatorTilingScheme({
|
|
79
|
+
rectangleSouthwestInMeters: new Cesium.Cartesian2(instance._mbounds.west, instance._mbounds.south),
|
|
80
|
+
rectangleNortheastInMeters: new Cesium.Cartesian2(instance._mbounds.east, instance._mbounds.north)
|
|
81
|
+
});
|
|
82
|
+
return imgprov;
|
|
83
|
+
};
|
|
84
|
+
CesiumHeatmap._getID = function (len) {
|
|
85
|
+
var text = "";
|
|
86
|
+
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
87
|
+
for (var i = 0; i < (len ? len : 8); i++) text += possible.charAt(Math.floor(Math.random() * possible.length));
|
|
88
|
+
return text;
|
|
89
|
+
};
|
|
90
|
+
var WMP = new Cesium.WebMercatorProjection();
|
|
91
|
+
|
|
92
|
+
/* Convert a WGS84 location into a mercator location
|
|
93
|
+
*
|
|
94
|
+
* p: the WGS84 location like {x: lon, y: lat}
|
|
95
|
+
*/
|
|
96
|
+
CesiumHeatmap.wgs84ToMercator = function (p) {
|
|
97
|
+
var mp = WMP.project(Cesium.Cartographic.fromDegrees(p.x, p.y));
|
|
98
|
+
return {
|
|
99
|
+
x: mp.x,
|
|
100
|
+
y: mp.y
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/* Convert a WGS84 bounding box into a mercator bounding box
|
|
105
|
+
*
|
|
106
|
+
* bb: the WGS84 bounding box like {north, east, south, west}
|
|
107
|
+
*/
|
|
108
|
+
CesiumHeatmap.wgs84ToMercatorBB = function (bb) {
|
|
109
|
+
var sw = WMP.project(Cesium.Cartographic.fromDegrees(bb.west, bb.south));
|
|
110
|
+
var ne = WMP.project(Cesium.Cartographic.fromDegrees(bb.east, bb.north));
|
|
111
|
+
return {
|
|
112
|
+
north: ne.y,
|
|
113
|
+
east: ne.x,
|
|
114
|
+
south: sw.y,
|
|
115
|
+
west: sw.x
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/* Convert a mercator location into a WGS84 location
|
|
120
|
+
*
|
|
121
|
+
* p: the mercator lcation like {x, y}
|
|
122
|
+
*/
|
|
123
|
+
CesiumHeatmap.mercatorToWgs84 = function (p) {
|
|
124
|
+
var wp = WMP.unproject(new Cesium.Cartesian3(p.x, p.y));
|
|
125
|
+
return {
|
|
126
|
+
x: wp.longitude,
|
|
127
|
+
y: wp.latitude
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/* Convert a mercator bounding box into a WGS84 bounding box
|
|
132
|
+
*
|
|
133
|
+
* bb: the mercator bounding box like {north, east, south, west}
|
|
134
|
+
*/
|
|
135
|
+
CesiumHeatmap.mercatorToWgs84BB = function (bb) {
|
|
136
|
+
var sw = WMP.unproject(new Cesium.Cartesian3(bb.west, bb.south));
|
|
137
|
+
var ne = WMP.unproject(new Cesium.Cartesian3(bb.east, bb.north));
|
|
138
|
+
return {
|
|
139
|
+
north: this.rad2deg(ne.latitude),
|
|
140
|
+
east: this.rad2deg(ne.longitude),
|
|
141
|
+
south: this.rad2deg(sw.latitude),
|
|
142
|
+
west: this.rad2deg(sw.longitude)
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/* Convert degrees into radians
|
|
147
|
+
*
|
|
148
|
+
* d: the degrees to be converted to radians
|
|
149
|
+
*/
|
|
150
|
+
CesiumHeatmap.deg2rad = function (d) {
|
|
151
|
+
var r = d * (Math.PI / 180.0);
|
|
152
|
+
return r;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/* Convert radians into degrees
|
|
156
|
+
*
|
|
157
|
+
* r: the radians to be converted to degrees
|
|
158
|
+
*/
|
|
159
|
+
CesiumHeatmap.rad2deg = function (r) {
|
|
160
|
+
var d = r / (Math.PI / 180.0);
|
|
161
|
+
return d;
|
|
162
|
+
};
|
|
163
|
+
return CesiumHeatmap;
|
|
164
|
+
}
|
|
165
|
+
if (typeof CesiumHeatmap === 'undefined') {
|
|
166
|
+
window.CesiumHeatmap = define_CesiumHeatmap();
|
|
167
|
+
} else {
|
|
168
|
+
console.log("CesiumHeatmap already defined.");
|
|
169
|
+
}
|
|
170
|
+
})(window);
|
|
171
|
+
|
|
172
|
+
/* Initiate a CesiumHeatmap instance
|
|
173
|
+
*
|
|
174
|
+
* c: CesiumWidget instance
|
|
175
|
+
* bb: a WGS84 bounding box like {north, east, south, west}
|
|
176
|
+
* o: a heatmap.js options object (see http://www.patrick-wied.at/static/heatmapjs/docs.html#h337-create)
|
|
177
|
+
*/
|
|
178
|
+
function CHInstance(c, bb, o) {
|
|
179
|
+
if (!bb) {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
if (!o) {
|
|
183
|
+
o = {};
|
|
184
|
+
}
|
|
185
|
+
this._cesium = c;
|
|
186
|
+
this._options = o;
|
|
187
|
+
this._id = CesiumHeatmap._getID();
|
|
188
|
+
this._options.gradient = this._options.gradient ? this._options.gradient : CesiumHeatmap.defaults.gradient;
|
|
189
|
+
this._options.maxOpacity = this._options.maxOpacity ? this._options.maxOpacity : CesiumHeatmap.defaults.maxOpacity;
|
|
190
|
+
this._options.minOpacity = this._options.minOpacity ? this._options.minOpacity : CesiumHeatmap.defaults.minOpacity;
|
|
191
|
+
this._options.blur = this._options.blur ? this._options.blur : CesiumHeatmap.defaults.blur;
|
|
192
|
+
this._mbounds = CesiumHeatmap.wgs84ToMercatorBB(bb);
|
|
193
|
+
this._setWidthAndHeight(this._mbounds);
|
|
194
|
+
this._options.radius = Math.round(this._options.radius ? this._options.radius : this.width > this.height ? this.width / CesiumHeatmap.defaults.radiusFactor : this.height / CesiumHeatmap.defaults.radiusFactor);
|
|
195
|
+
this._spacing = this._options.radius * CesiumHeatmap.defaults.spacingFactor;
|
|
196
|
+
this._xoffset = this._mbounds.west;
|
|
197
|
+
this._yoffset = this._mbounds.south;
|
|
198
|
+
this.width = Math.round(this.width + this._spacing * 2);
|
|
199
|
+
this.height = Math.round(this.height + this._spacing * 2);
|
|
200
|
+
this._mbounds.west -= this._spacing * this._factor;
|
|
201
|
+
this._mbounds.east += this._spacing * this._factor;
|
|
202
|
+
this._mbounds.south -= this._spacing * this._factor;
|
|
203
|
+
this._mbounds.north += this._spacing * this._factor;
|
|
204
|
+
this.bounds = CesiumHeatmap.mercatorToWgs84BB(this._mbounds);
|
|
205
|
+
this._rectangle = Cesium.Rectangle.fromDegrees(this.bounds.west, this.bounds.south, this.bounds.east, this.bounds.north);
|
|
206
|
+
this._container = CesiumHeatmap._getContainer(this.width, this.height, this._id);
|
|
207
|
+
this._options.container = this._container;
|
|
208
|
+
this._heatmap = _heatmap["default"].create(this._options);
|
|
209
|
+
this._container.children[0].setAttribute("id", this._id + "-hm");
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* Convert a WGS84 location to the corresponding heatmap location
|
|
213
|
+
*
|
|
214
|
+
* p: a WGS84 location like {x:lon, y:lat}
|
|
215
|
+
*/
|
|
216
|
+
CHInstance.prototype.wgs84PointToHeatmapPoint = function (p) {
|
|
217
|
+
return this.mercatorPointToHeatmapPoint(CesiumHeatmap.wgs84ToMercator(p));
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/* Convert a mercator location to the corresponding heatmap location
|
|
221
|
+
*
|
|
222
|
+
* p: a WGS84 location like {x: lon, y:lat}
|
|
223
|
+
*/
|
|
224
|
+
CHInstance.prototype.mercatorPointToHeatmapPoint = function (p) {
|
|
225
|
+
var pn = {};
|
|
226
|
+
pn.x = Math.round((p.x - this._xoffset) / this._factor + this._spacing);
|
|
227
|
+
pn.y = Math.round((p.y - this._yoffset) / this._factor + this._spacing);
|
|
228
|
+
pn.y = this.height - pn.y;
|
|
229
|
+
return pn;
|
|
230
|
+
};
|
|
231
|
+
CHInstance.prototype._setWidthAndHeight = function (mbb) {
|
|
232
|
+
this.width = mbb.east > 0 && mbb.west < 0 ? mbb.east + Math.abs(mbb.west) : Math.abs(mbb.east - mbb.west);
|
|
233
|
+
this.height = mbb.north > 0 && mbb.south < 0 ? mbb.north + Math.abs(mbb.south) : Math.abs(mbb.north - mbb.south);
|
|
234
|
+
this._factor = 1;
|
|
235
|
+
if (this.width > this.height && this.width > CesiumHeatmap.defaults.maxCanvasSize) {
|
|
236
|
+
this._factor = this.width / CesiumHeatmap.defaults.maxCanvasSize;
|
|
237
|
+
if (this.height / this._factor < CesiumHeatmap.defaults.minCanvasSize) {
|
|
238
|
+
this._factor = this.height / CesiumHeatmap.defaults.minCanvasSize;
|
|
239
|
+
}
|
|
240
|
+
} else if (this.height > this.width && this.height > CesiumHeatmap.defaults.maxCanvasSize) {
|
|
241
|
+
this._factor = this.height / CesiumHeatmap.defaults.maxCanvasSize;
|
|
242
|
+
if (this.width / this._factor < CesiumHeatmap.defaults.minCanvasSize) {
|
|
243
|
+
this._factor = this.width / CesiumHeatmap.defaults.minCanvasSize;
|
|
244
|
+
}
|
|
245
|
+
} else if (this.width < this.height && this.width < CesiumHeatmap.defaults.minCanvasSize) {
|
|
246
|
+
this._factor = this.width / CesiumHeatmap.defaults.minCanvasSize;
|
|
247
|
+
if (this.height / this._factor > CesiumHeatmap.defaults.maxCanvasSize) {
|
|
248
|
+
this._factor = this.height / CesiumHeatmap.defaults.maxCanvasSize;
|
|
249
|
+
}
|
|
250
|
+
} else if (this.height < this.width && this.height < CesiumHeatmap.defaults.minCanvasSize) {
|
|
251
|
+
this._factor = this.height / CesiumHeatmap.defaults.minCanvasSize;
|
|
252
|
+
if (this.width / this._factor > CesiumHeatmap.defaults.maxCanvasSize) {
|
|
253
|
+
this._factor = this.width / CesiumHeatmap.defaults.maxCanvasSize;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
this.width = this.width / this._factor;
|
|
257
|
+
this.height = this.height / this._factor;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
/* Set an array of heatmap locations
|
|
261
|
+
*
|
|
262
|
+
* min: the minimum allowed value for the data values
|
|
263
|
+
* max: the maximum allowed value for the data values
|
|
264
|
+
* data: an array of data points in heatmap coordinates and values like {x, y, value}
|
|
265
|
+
*/
|
|
266
|
+
CHInstance.prototype.setData = function (min, max, data) {
|
|
267
|
+
if (data && data.length > 0 && min !== null && min !== false && max !== null && max !== false) {
|
|
268
|
+
this._heatmap.setData({
|
|
269
|
+
min: min,
|
|
270
|
+
max: max,
|
|
271
|
+
data: data
|
|
272
|
+
});
|
|
273
|
+
this.updateLayer();
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
276
|
+
return false;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
/* Set an array of WGS84 locations
|
|
280
|
+
*
|
|
281
|
+
* min: the minimum allowed value for the data values
|
|
282
|
+
* max: the maximum allowed value for the data values
|
|
283
|
+
* data: an array of data points in WGS84 coordinates and values like { x:lon, y:lat, value }
|
|
284
|
+
*/
|
|
285
|
+
CHInstance.prototype.setWGS84Data = function (min, max, data) {
|
|
286
|
+
if (data && data.length > 0 && min !== null && min !== false && max !== null && max !== false) {
|
|
287
|
+
var convdata = [];
|
|
288
|
+
for (var i = 0; i < data.length; i++) {
|
|
289
|
+
var gp = data[i];
|
|
290
|
+
var hp = this.wgs84PointToHeatmapPoint(gp);
|
|
291
|
+
if (gp.value || gp.value === 0) {
|
|
292
|
+
hp.value = gp.value;
|
|
293
|
+
}
|
|
294
|
+
convdata.push(hp);
|
|
295
|
+
}
|
|
296
|
+
return this.setData(min, max, convdata);
|
|
297
|
+
}
|
|
298
|
+
return false;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
/* Set whether or not the heatmap is shown on the map
|
|
302
|
+
*
|
|
303
|
+
* s: true means the heatmap is shown, false means the heatmap is hidden
|
|
304
|
+
*/
|
|
305
|
+
CHInstance.prototype.show = function (s) {
|
|
306
|
+
if (this._layer) {
|
|
307
|
+
this._layer.show = s;
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
/* Update/(re)draw the heatmap
|
|
312
|
+
*/
|
|
313
|
+
CHInstance.prototype.updateLayer = function () {
|
|
314
|
+
// only works with a Viewer instance since the cesiumWidget
|
|
315
|
+
// instance doesn't contain an entities property
|
|
316
|
+
if (CesiumHeatmap.defaults.useEntitiesIfAvailable && this._cesium.entities) {
|
|
317
|
+
if (this._layer) {
|
|
318
|
+
this._cesium.entities.remove(this._layer);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// Work around issue with material rendering in Cesium
|
|
322
|
+
// provided by https://github.com/criis
|
|
323
|
+
var material = new Cesium.ImageMaterialProperty({
|
|
324
|
+
image: this._heatmap._renderer.canvas
|
|
325
|
+
});
|
|
326
|
+
if (Cesium.VERSION >= "1.21") {
|
|
327
|
+
material.transparent = true;
|
|
328
|
+
} else if (Cesium.VERSION >= "1.16") {
|
|
329
|
+
material.alpha = 0.99;
|
|
330
|
+
}
|
|
331
|
+
this._layer = this._cesium.entities.add({
|
|
332
|
+
show: true,
|
|
333
|
+
rectangle: {
|
|
334
|
+
coordinates: this._rectangle,
|
|
335
|
+
material: material
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
} else {
|
|
339
|
+
if (this._layer) {
|
|
340
|
+
this._cesium.scene.imageryLayers.remove(this._layer);
|
|
341
|
+
}
|
|
342
|
+
this._layer = this._cesium.scene.imageryLayers.addImageryProvider(CesiumHeatmap._getImageryProvider(this));
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
//# sourceMappingURL=CesiumHeatmap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CesiumHeatmap.js","names":["Cesium","_interopRequireWildcard","require","_heatmap","_interopRequireDefault","obj","__esModule","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","window","define_CesiumHeatmap","CesiumHeatmap","defaults","useEntitiesIfAvailable","minCanvasSize","maxCanvasSize","radiusFactor","spacingFactor","maxOpacity","minOpacity","blur","gradient","create","cesium","bb","options","instance","CHInstance","_getContainer","width","height","id","c","document","createElement","setAttribute","body","appendChild","_getImageryProvider","d","getDataURL","imgprov","SingleTileImageryProvider","url","rectangle","_rectangle","_tilingScheme","WebMercatorTilingScheme","rectangleSouthwestInMeters","Cartesian2","_mbounds","west","south","rectangleNortheastInMeters","east","north","_getID","len","text","possible","i","charAt","Math","floor","random","length","WMP","WebMercatorProjection","wgs84ToMercator","p","mp","project","Cartographic","fromDegrees","x","y","wgs84ToMercatorBB","sw","ne","mercatorToWgs84","wp","unproject","Cartesian3","longitude","latitude","mercatorToWgs84BB","rad2deg","deg2rad","r","PI","console","log","o","_cesium","_options","_id","_setWidthAndHeight","radius","round","_spacing","_xoffset","_yoffset","_factor","bounds","Rectangle","_container","container","h337","children","wgs84PointToHeatmapPoint","mercatorPointToHeatmapPoint","pn","mbb","abs","setData","min","max","data","updateLayer","setWGS84Data","convdata","gp","hp","value","push","show","s","_layer","entities","remove","material","ImageMaterialProperty","image","_renderer","canvas","VERSION","transparent","alpha","add","coordinates","scene","imageryLayers","addImageryProvider"],"sources":["heatmap-layer/CesiumHeatmap.js"],"sourcesContent":["/*\n * CesiumHeatmap.js v0.1 | Cesium Heatmap Library\n *\n * Works with heatmap.js v2.0.0: http://www.patrick-wied.at/static/heatmapjs/\n */\nimport * as Cesium from 'cesium';\nimport h337 from 'heatmap.js';\n\n(function (window) {\n\t'use strict';\n\n\tfunction define_CesiumHeatmap() {\n\t\tvar CesiumHeatmap = {\n\t\t\tdefaults: {\n\t\t\t\tuseEntitiesIfAvailable: true, //whether to use entities if a Viewer is supplied or always use an ImageryProvider\n\t\t\t\tminCanvasSize: 700, // minimum size (in pixels) for the heatmap canvas\n\t\t\t\tmaxCanvasSize: 2000, // maximum size (in pixels) for the heatmap canvas\n\t\t\t\tradiusFactor: 60, // data point size factor used if no radius is given (the greater of height and width divided by this number yields the used radius)\n\t\t\t\tspacingFactor: 1.5, // extra space around the borders (point radius multiplied by this number yields the spacing)\n\t\t\t\tmaxOpacity: 0.8, // the maximum opacity used if not given in the heatmap options object\n\t\t\t\tminOpacity: 0.1, // the minimum opacity used if not given in the heatmap options object\n\t\t\t\tblur: 0.85, // the blur used if not given in the heatmap options object\n\t\t\t\tgradient: { // the gradient used if not given in the heatmap options object\n\t\t\t\t\t'.3': 'blue',\n\t\t\t\t\t'.65': 'yellow',\n\t\t\t\t\t'.8': 'orange',\n\t\t\t\t\t'.95': 'red'\n\t\t\t\t},\n\t\t\t}\n\t\t};\n\n\t\t/* Create a CesiumHeatmap instance\n\t\t *\n\t\t * cesium: the CesiumWidget or Viewer instance\n\t\t * bb: the WGS84 bounding box like {north, east, south, west}\n\t\t * options: a heatmap.js options object (see http://www.patrick-wied.at/static/heatmapjs/docs.html#h337-create)\n\t\t */\n\t\tCesiumHeatmap.create = function (cesium, bb, options) {\n\t\t\tvar instance = new CHInstance(cesium, bb, options);\n\t\t\treturn instance;\n\t\t};\n\n\t\tCesiumHeatmap._getContainer = function (width, height, id) {\n\t\t\tvar c = document.createElement(\"div\");\n\t\t\tif (id) {\n\t\t\t\tc.setAttribute(\"id\", id);\n\t\t\t}\n\t\t\tc.setAttribute(\"style\", \"width: \" + width + \"px; height: \" + height + \"px; margin: 0px; display: none;\");\n\t\t\tdocument.body.appendChild(c);\n\t\t\treturn c;\n\t\t};\n\n\t\tCesiumHeatmap._getImageryProvider = function (instance) {\n\t\t\t//var n = (new Date()).getTime();\n\t\t\tvar d = instance._heatmap.getDataURL();\n\t\t\t//console.log(\"Create data URL: \" + ((new Date()).getTime() - n));\n\n\t\t\t//var n = (new Date()).getTime();\n\t\t\tvar imgprov = new Cesium.SingleTileImageryProvider({\n\t\t\t\turl: d,\n\t\t\t\trectangle: instance._rectangle\n\t\t\t});\n\t\t\t//console.log(\"Create imageryprovider: \" + ((new Date()).getTime() - n));\n\n\t\t\timgprov._tilingScheme = new Cesium.WebMercatorTilingScheme({\n\t\t\t\trectangleSouthwestInMeters: new Cesium.Cartesian2(instance._mbounds.west, instance._mbounds.south),\n\t\t\t\trectangleNortheastInMeters: new Cesium.Cartesian2(instance._mbounds.east, instance._mbounds.north)\n\t\t\t});\n\n\t\t\treturn imgprov;\n\t\t};\n\n\t\tCesiumHeatmap._getID = function (len) {\n\t\t\tvar text = \"\";\n\t\t\tvar possible = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n\n\t\t\tfor (var i = 0; i < ((len) ? len : 8); i++)\n\t\t\t\ttext += possible.charAt(Math.floor(Math.random() * possible.length));\n\n\t\t\treturn text;\n\t\t};\n\n\t\tvar WMP = new Cesium.WebMercatorProjection();\n\n\t\t/* Convert a WGS84 location into a mercator location\n\t\t *\n\t\t * p: the WGS84 location like {x: lon, y: lat}\n\t\t */\n\t\tCesiumHeatmap.wgs84ToMercator = function (p) {\n\t\t\tvar mp = WMP.project(Cesium.Cartographic.fromDegrees(p.x, p.y));\n\t\t\treturn {\n\t\t\t\tx: mp.x,\n\t\t\t\ty: mp.y\n\t\t\t};\n\t\t};\n\n\t\t/* Convert a WGS84 bounding box into a mercator bounding box\n\t\t *\n\t\t * bb: the WGS84 bounding box like {north, east, south, west}\n\t\t */\n\t\tCesiumHeatmap.wgs84ToMercatorBB = function (bb) {\n\t\t\tvar sw = WMP.project(Cesium.Cartographic.fromDegrees(bb.west, bb.south));\n\t\t\tvar ne = WMP.project(Cesium.Cartographic.fromDegrees(bb.east, bb.north));\n\t\t\treturn {\n\t\t\t\tnorth: ne.y,\n\t\t\t\teast: ne.x,\n\t\t\t\tsouth: sw.y,\n\t\t\t\twest: sw.x\n\t\t\t};\n\t\t};\n\n\t\t/* Convert a mercator location into a WGS84 location\n\t\t *\n\t\t * p: the mercator lcation like {x, y}\n\t\t */\n\t\tCesiumHeatmap.mercatorToWgs84 = function (p) {\n\t\t\tvar wp = WMP.unproject(new Cesium.Cartesian3(p.x, p.y));\n\t\t\treturn {\n\t\t\t\tx: wp.longitude,\n\t\t\t\ty: wp.latitude\n\t\t\t};\n\t\t};\n\n\t\t/* Convert a mercator bounding box into a WGS84 bounding box\n\t\t *\n\t\t * bb: the mercator bounding box like {north, east, south, west}\n\t\t */\n\t\tCesiumHeatmap.mercatorToWgs84BB = function (bb) {\n\t\t\tvar sw = WMP.unproject(new Cesium.Cartesian3(bb.west, bb.south));\n\t\t\tvar ne = WMP.unproject(new Cesium.Cartesian3(bb.east, bb.north));\n\t\t\treturn {\n\t\t\t\tnorth: this.rad2deg(ne.latitude),\n\t\t\t\teast: this.rad2deg(ne.longitude),\n\t\t\t\tsouth: this.rad2deg(sw.latitude),\n\t\t\t\twest: this.rad2deg(sw.longitude)\n\t\t\t};\n\t\t};\n\n\t\t/* Convert degrees into radians\n\t\t *\n\t\t * d: the degrees to be converted to radians\n\t\t */\n\t\tCesiumHeatmap.deg2rad = function (d) {\n\t\t\tvar r = d * (Math.PI / 180.0);\n\t\t\treturn r;\n\t\t};\n\n\t\t/* Convert radians into degrees\n\t\t *\n\t\t * r: the radians to be converted to degrees\n\t\t */\n\t\tCesiumHeatmap.rad2deg = function (r) {\n\t\t\tvar d = r / (Math.PI / 180.0);\n\t\t\treturn d;\n\t\t};\n\n\t\treturn CesiumHeatmap;\n\t}\n\n\tif (typeof(CesiumHeatmap) === 'undefined') {\n\t\twindow.CesiumHeatmap = define_CesiumHeatmap();\n\t} else {\n\t\tconsole.log(\"CesiumHeatmap already defined.\");\n\t}\n})(window);\n\n/* Initiate a CesiumHeatmap instance\n *\n * c: CesiumWidget instance\n * bb: a WGS84 bounding box like {north, east, south, west}\n * o: a heatmap.js options object (see http://www.patrick-wied.at/static/heatmapjs/docs.html#h337-create)\n */\nfunction CHInstance(c, bb, o) {\n\tif (!bb) {\n\t\treturn null;\n\t}\n\tif (!o) {\n\t\to = {};\n\t}\n\n\tthis._cesium = c;\n\tthis._options = o;\n\tthis._id = CesiumHeatmap._getID();\n\n\tthis._options.gradient = ((this._options.gradient) ? this._options.gradient : CesiumHeatmap.defaults.gradient);\n\tthis._options.maxOpacity = ((this._options.maxOpacity) ? this._options.maxOpacity : CesiumHeatmap.defaults.maxOpacity);\n\tthis._options.minOpacity = ((this._options.minOpacity) ? this._options.minOpacity : CesiumHeatmap.defaults.minOpacity);\n\tthis._options.blur = ((this._options.blur) ? this._options.blur : CesiumHeatmap.defaults.blur);\n\n\tthis._mbounds = CesiumHeatmap.wgs84ToMercatorBB(bb);\n\tthis._setWidthAndHeight(this._mbounds);\n\n\tthis._options.radius = Math.round((this._options.radius) ? this._options.radius : ((this.width > this.height) ? this.width / CesiumHeatmap.defaults.radiusFactor : this.height / CesiumHeatmap.defaults.radiusFactor));\n\n\tthis._spacing = this._options.radius * CesiumHeatmap.defaults.spacingFactor;\n\tthis._xoffset = this._mbounds.west;\n\tthis._yoffset = this._mbounds.south;\n\n\tthis.width = Math.round(this.width + this._spacing * 2);\n\tthis.height = Math.round(this.height + this._spacing * 2);\n\n\tthis._mbounds.west -= this._spacing * this._factor;\n\tthis._mbounds.east += this._spacing * this._factor;\n\tthis._mbounds.south -= this._spacing * this._factor;\n\tthis._mbounds.north += this._spacing * this._factor;\n\n\tthis.bounds = CesiumHeatmap.mercatorToWgs84BB(this._mbounds);\n\n\tthis._rectangle = Cesium.Rectangle.fromDegrees(this.bounds.west, this.bounds.south, this.bounds.east, this.bounds.north);\n\tthis._container = CesiumHeatmap._getContainer(this.width, this.height, this._id);\n\tthis._options.container = this._container;\n\tthis._heatmap = h337.create(this._options);\n\tthis._container.children[0].setAttribute(\"id\", this._id + \"-hm\");\n}\n\n/* Convert a WGS84 location to the corresponding heatmap location\n *\n * p: a WGS84 location like {x:lon, y:lat}\n */\nCHInstance.prototype.wgs84PointToHeatmapPoint = function (p) {\n\treturn this.mercatorPointToHeatmapPoint(CesiumHeatmap.wgs84ToMercator(p));\n};\n\n/* Convert a mercator location to the corresponding heatmap location\n *\n * p: a WGS84 location like {x: lon, y:lat}\n */\nCHInstance.prototype.mercatorPointToHeatmapPoint = function (p) {\n\tvar pn = {};\n\n\tpn.x = Math.round((p.x - this._xoffset) / this._factor + this._spacing);\n\tpn.y = Math.round((p.y - this._yoffset) / this._factor + this._spacing);\n\tpn.y = this.height - pn.y;\n\n\treturn pn;\n};\n\nCHInstance.prototype._setWidthAndHeight = function (mbb) {\n\tthis.width = ((mbb.east > 0 && mbb.west < 0) ? mbb.east + Math.abs(mbb.west) : Math.abs(mbb.east - mbb.west));\n\tthis.height = ((mbb.north > 0 && mbb.south < 0) ? mbb.north + Math.abs(mbb.south) : Math.abs(mbb.north - mbb.south));\n\tthis._factor = 1;\n\n\tif (this.width > this.height && this.width > CesiumHeatmap.defaults.maxCanvasSize) {\n\t\tthis._factor = this.width / CesiumHeatmap.defaults.maxCanvasSize;\n\n\t\tif (this.height / this._factor < CesiumHeatmap.defaults.minCanvasSize) {\n\t\t\tthis._factor = this.height / CesiumHeatmap.defaults.minCanvasSize;\n\t\t}\n\t} else if (this.height > this.width && this.height > CesiumHeatmap.defaults.maxCanvasSize) {\n\t\tthis._factor = this.height / CesiumHeatmap.defaults.maxCanvasSize;\n\n\t\tif (this.width / this._factor < CesiumHeatmap.defaults.minCanvasSize) {\n\t\t\tthis._factor = this.width / CesiumHeatmap.defaults.minCanvasSize;\n\t\t}\n\t} else if (this.width < this.height && this.width < CesiumHeatmap.defaults.minCanvasSize) {\n\t\tthis._factor = this.width / CesiumHeatmap.defaults.minCanvasSize;\n\n\t\tif (this.height / this._factor > CesiumHeatmap.defaults.maxCanvasSize) {\n\t\t\tthis._factor = this.height / CesiumHeatmap.defaults.maxCanvasSize;\n\t\t}\n\t} else if (this.height < this.width && this.height < CesiumHeatmap.defaults.minCanvasSize) {\n\t\tthis._factor = this.height / CesiumHeatmap.defaults.minCanvasSize;\n\n\t\tif (this.width / this._factor > CesiumHeatmap.defaults.maxCanvasSize) {\n\t\t\tthis._factor = this.width / CesiumHeatmap.defaults.maxCanvasSize;\n\t\t}\n\t}\n\n\tthis.width = this.width / this._factor;\n\tthis.height = this.height / this._factor;\n};\n\n/* Set an array of heatmap locations\n *\n * min: the minimum allowed value for the data values\n * max: the maximum allowed value for the data values\n * data: an array of data points in heatmap coordinates and values like {x, y, value}\n */\nCHInstance.prototype.setData = function (min, max, data) {\n\tif (data && data.length > 0 && min !== null && min !== false && max !== null && max !== false) {\n\t\tthis._heatmap.setData({\n\t\t\tmin: min,\n\t\t\tmax: max,\n\t\t\tdata: data\n\t\t});\n\n\t\tthis.updateLayer();\n\t\treturn true;\n\t}\n\n\treturn false;\n};\n\n/* Set an array of WGS84 locations\n *\n * min: the minimum allowed value for the data values\n * max: the maximum allowed value for the data values\n * data: an array of data points in WGS84 coordinates and values like { x:lon, y:lat, value }\n */\nCHInstance.prototype.setWGS84Data = function (min, max, data) {\n\tif (data && data.length > 0 && min !== null && min !== false && max !== null && max !== false) {\n\t\tvar convdata = [];\n\n\t\tfor (var i = 0; i < data.length; i++) {\n\t\t\tvar gp = data[i];\n\n\t\t\tvar hp = this.wgs84PointToHeatmapPoint(gp);\n\t\t\tif (gp.value || gp.value === 0) {\n\t\t\t\thp.value = gp.value;\n\t\t\t}\n\n\t\t\tconvdata.push(hp);\n\t\t}\n\n\t\treturn this.setData(min, max, convdata);\n\t}\n\n\treturn false;\n};\n\n/* Set whether or not the heatmap is shown on the map\n *\n * s: true means the heatmap is shown, false means the heatmap is hidden\n */\nCHInstance.prototype.show = function (s) {\n\tif (this._layer) {\n\t\tthis._layer.show = s;\n\t}\n};\n\n/* Update/(re)draw the heatmap\n */\nCHInstance.prototype.updateLayer = function () {\n\n\t// only works with a Viewer instance since the cesiumWidget\n\t// instance doesn't contain an entities property\n\tif (CesiumHeatmap.defaults.useEntitiesIfAvailable && this._cesium.entities) {\n\t\tif (this._layer) {\n\t\t\tthis._cesium.entities.remove(this._layer);\n\t\t}\n\n\t\t// Work around issue with material rendering in Cesium\n\t\t// provided by https://github.com/criis\n\t\tconst material = new Cesium.ImageMaterialProperty({\n\t\t\timage: this._heatmap._renderer.canvas,\n\t\t});\n\t\tif (Cesium.VERSION >= \"1.21\") {\n\t\t\tmaterial.transparent = true;\n\t\t} else if (Cesium.VERSION >= \"1.16\") {\n\t\t\tmaterial.alpha = 0.99;\n\t\t}\n\n\t\tthis._layer = this._cesium.entities.add({\n\t\t\tshow: true,\n\t\t\trectangle: {\n\t\t\t\tcoordinates: this._rectangle,\n\t\t\t\tmaterial: material\n\t\t\t}\n\t\t});\n\t} else {\n\t\tif (this._layer) {\n\t\t\tthis._cesium.scene.imageryLayers.remove(this._layer);\n\t\t}\n\n\t\tthis._layer = this._cesium.scene.imageryLayers.addImageryProvider(CesiumHeatmap._getImageryProvider(this));\n\t}\n};\n"],"mappings":";;;AAKA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA8B,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAP,wBAAAI,GAAA,EAAAG,WAAA,SAAAA,WAAA,IAAAH,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAO,OAAA,CAAAP,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAQ,KAAA,GAAAN,wBAAA,CAAAC,WAAA,OAAAK,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,SAAAW,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,C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M,CAAC;IAC1C;;IAEA;IACA;IACA,IAAMG,QAAQ,GAAG,IAAIpJ,MAAM,CAACqJ,qBAAqB,CAAC;MACjDC,KAAK,EAAE,IAAI,CAACnJ,QAAQ,CAACoJ,SAAS,CAACC;IAChC,CAAC,CAAC;IACF,IAAIxJ,MAAM,CAACyJ,OAAO,IAAI,MAAM,EAAE;MAC7BL,QAAQ,CAACM,WAAW,GAAG,IAAI;IAC5B,CAAC,MAAM,IAAI1J,MAAM,CAACyJ,OAAO,IAAI,MAAM,EAAE;MACpCL,QAAQ,CAACO,KAAK,GAAG,IAAI;IACtB;IAEA,IAAI,CAACV,MAAM,GAAG,IAAI,CAAClC,OAAO,CAACmC,QAAQ,CAACU,GAAG,CAAC;MACvCb,IAAI,EAAE,IAAI;MACVjF,SAAS,EAAE;QACV+F,WAAW,EAAE,IAAI,CAAC9F,UAAU;QAC5BqF,QAAQ,EAAEA;MACX;IACD,CAAC,CAAC;EACH,CAAC,MAAM;IACN,IAAI,IAAI,CAACH,MAAM,EAAE;MAChB,IAAI,CAAClC,OAAO,CAAC+C,KAAK,CAACC,aAAa,CAACZ,MAAM,CAAC,IAAI,CAACF,MAAM,CAAC;IACrD;IAEA,IAAI,CAACA,MAAM,GAAG,IAAI,CAAClC,OAAO,CAAC+C,KAAK,CAACC,aAAa,CAACC,kBAAkB,CAACnI,aAAa,CAAC2B,mBAAmB,CAAC,IAAI,CAAC,CAAC;EAC3G;AACD,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _cesium = require("cesium");
|
|
9
|
+
var _createFeatureCollection = require("../feature-layer/createFeatureCollection");
|
|
10
|
+
var _heatmap = _interopRequireDefault(require("heatmap.js"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
17
|
+
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); }; }
|
|
18
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
20
|
+
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; } }
|
|
21
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
22
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
23
|
+
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."); }
|
|
24
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
25
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
26
|
+
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; }
|
|
27
|
+
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; }
|
|
28
|
+
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; }
|
|
29
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
30
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
31
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
32
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
33
|
+
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); }
|
|
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
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
36
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
+
var getData = function getData(data, width, height) {
|
|
38
|
+
var list = data.map(function (v) {
|
|
39
|
+
var geometryInfo = v.geometryInfo;
|
|
40
|
+
var _transformGeometry$co = _slicedToArray((0, _createFeatureCollection.transformGeometry)(geometryInfo).coordinates, 2),
|
|
41
|
+
x = _transformGeometry$co[0],
|
|
42
|
+
y = _transformGeometry$co[1];
|
|
43
|
+
return _objectSpread(_objectSpread({}, v), {}, {
|
|
44
|
+
x: x,
|
|
45
|
+
y: y
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// 获取边界数据
|
|
50
|
+
var value = 0.1;
|
|
51
|
+
var latMin = Math.min.apply(Math, _toConsumableArray(list.map(function (point) {
|
|
52
|
+
return point.y;
|
|
53
|
+
}))) - value;
|
|
54
|
+
var latMax = Math.max.apply(Math, _toConsumableArray(list.map(function (point) {
|
|
55
|
+
return point.y;
|
|
56
|
+
}))) + value;
|
|
57
|
+
var lonMin = Math.min.apply(Math, _toConsumableArray(list.map(function (point) {
|
|
58
|
+
return point.x;
|
|
59
|
+
}))) - value;
|
|
60
|
+
var lonMax = Math.max.apply(Math, _toConsumableArray(list.map(function (point) {
|
|
61
|
+
return point.x;
|
|
62
|
+
}))) + value;
|
|
63
|
+
list = list.map(function (v) {
|
|
64
|
+
return _objectSpread(_objectSpread({}, v), {}, {
|
|
65
|
+
x: Math.floor((v.x - lonMin) / (lonMax - lonMin) * width),
|
|
66
|
+
y: Math.floor((v.y - latMin) / (latMax - latMin) * height)
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
return {
|
|
70
|
+
data: list,
|
|
71
|
+
latMin: latMin,
|
|
72
|
+
latMax: latMax,
|
|
73
|
+
lonMin: lonMin,
|
|
74
|
+
lonMax: lonMax,
|
|
75
|
+
max: 10,
|
|
76
|
+
min: 0
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
var HeatmapLayer = /*#__PURE__*/function (_CustomDataSource) {
|
|
80
|
+
_inherits(HeatmapLayer, _CustomDataSource);
|
|
81
|
+
var _super = _createSuper(HeatmapLayer);
|
|
82
|
+
function HeatmapLayer(options) {
|
|
83
|
+
var _options$data;
|
|
84
|
+
var _this;
|
|
85
|
+
_classCallCheck(this, HeatmapLayer);
|
|
86
|
+
_this = _super.call(this);
|
|
87
|
+
_this.map = options.map;
|
|
88
|
+
_this.container = _this.createDom();
|
|
89
|
+
_this.layer = _heatmap["default"].create({
|
|
90
|
+
container: _this.container
|
|
91
|
+
});
|
|
92
|
+
if ((_options$data = options.data) !== null && _options$data !== void 0 && _options$data.length) {
|
|
93
|
+
_this.loadData(options.data);
|
|
94
|
+
}
|
|
95
|
+
return _this;
|
|
96
|
+
}
|
|
97
|
+
_createClass(HeatmapLayer, [{
|
|
98
|
+
key: "createDom",
|
|
99
|
+
value: function createDom() {
|
|
100
|
+
var map = this.map;
|
|
101
|
+
var _map$container$getBou = map.container.getBoundingClientRect(),
|
|
102
|
+
width = _map$container$getBou.width,
|
|
103
|
+
height = _map$container$getBou.height;
|
|
104
|
+
var heatMapDom = document.createElement('div');
|
|
105
|
+
heatMapDom.style.width = width + 'px';
|
|
106
|
+
heatMapDom.style.height = height + 'px';
|
|
107
|
+
heatMapDom.style.display = 'none';
|
|
108
|
+
map.container.appendChild(heatMapDom);
|
|
109
|
+
return heatMapDom;
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
key: "loadData",
|
|
113
|
+
value: function loadData(_data) {
|
|
114
|
+
var map = this.map;
|
|
115
|
+
this.entities.removeAll();
|
|
116
|
+
var _map$container$getBou2 = map.container.getBoundingClientRect(),
|
|
117
|
+
width = _map$container$getBou2.width,
|
|
118
|
+
height = _map$container$getBou2.height;
|
|
119
|
+
var _getData = getData(_data, width, height),
|
|
120
|
+
data = _getData.data,
|
|
121
|
+
max = _getData.max,
|
|
122
|
+
min = _getData.min,
|
|
123
|
+
lonMin = _getData.lonMin,
|
|
124
|
+
latMin = _getData.latMin,
|
|
125
|
+
lonMax = _getData.lonMax,
|
|
126
|
+
latMax = _getData.latMax;
|
|
127
|
+
this.layer.setData({
|
|
128
|
+
max: max,
|
|
129
|
+
min: min,
|
|
130
|
+
data: data
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
// 生成的热力图 canvas 元素类名为 heatmap-canvas
|
|
134
|
+
var canvas = document.getElementsByClassName('heatmap-canvas');
|
|
135
|
+
if (!canvas[0]) return;
|
|
136
|
+
this.entities.add({
|
|
137
|
+
name: 'heatmap',
|
|
138
|
+
rectangle: {
|
|
139
|
+
coordinates: _cesium.Rectangle.fromDegrees(lonMin, latMin, lonMax, latMax),
|
|
140
|
+
material: new _cesium.ImageMaterialProperty({
|
|
141
|
+
image: canvas[0],
|
|
142
|
+
transparent: true
|
|
143
|
+
})
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
}, {
|
|
148
|
+
key: "destroy",
|
|
149
|
+
value: function destroy() {
|
|
150
|
+
var map = this.map;
|
|
151
|
+
this.container && map.container.removeChild(this.container);
|
|
152
|
+
}
|
|
153
|
+
}]);
|
|
154
|
+
return HeatmapLayer;
|
|
155
|
+
}(_cesium.CustomDataSource);
|
|
156
|
+
var _default = HeatmapLayer;
|
|
157
|
+
exports["default"] = _default;
|
|
158
|
+
//# sourceMappingURL=HeatmapLayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeatmapLayer.js","names":["_cesium","require","_createFeatureCollection","_heatmap","_interopRequireDefault","obj","__esModule","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","prototype","_inherits","subClass","superClass","create","constructor","value","_setPrototypeOf","o","p","setPrototypeOf","bind","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","arguments","apply","_possibleConstructorReturn","self","call","_typeof","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","e","getPrototypeOf","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","iter","Symbol","iterator","Array","from","isArray","_arrayLikeToArray","ownKeys","r","t","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","push","_objectSpread","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_nonIterableRest","minLen","n","toString","slice","name","test","len","arr2","l","u","a","f","next","done","getData","data","width","height","list","map","v","geometryInfo","_transformGeometry$co","transformGeometry","coordinates","x","y","latMin","Math","min","point","latMax","max","lonMin","lonMax","floor","HeatmapLayer","_CustomDataSource","_super","options","_options$data","_this","container","createDom","layer","h337","loadData","_map$container$getBou","getBoundingClientRect","heatMapDom","document","createElement","style","display","appendChild","_data","entities","removeAll","_map$container$getBou2","_getData","setData","canvas","getElementsByClassName","add","rectangle","Rectangle","fromDegrees","material","ImageMaterialProperty","image","transparent","destroy","removeChild","CustomDataSource","_default","exports"],"sources":["heatmap-layer/HeatmapLayer.js"],"sourcesContent":["import { CustomDataSource, Rectangle, ImageMaterialProperty } from 'cesium';\nimport {transformGeometry} from '../feature-layer/createFeatureCollection';\nimport h337 from 'heatmap.js';\n\nconst getData = (data, width, height) => {\n let list = data.map(v => {\n let {geometryInfo} = v;\n let [x, y] = transformGeometry(geometryInfo).coordinates;\n\n return {\n ...v,\n x,\n y,\n }\n });\n\n // 获取边界数据\n const value = 0.1;\n let latMin = Math.min(...list.map(point => point.y)) - value;\n let latMax = Math.max(...list.map(point => point.y)) + value;\n let lonMin = Math.min(...list.map(point => point.x)) - value;\n let lonMax = Math.max(...list.map(point => point.x)) + value;\n\n list = list.map(v => ({\n ...v,\n x: Math.floor(((v.x - lonMin) / (lonMax - lonMin)) * width),\n y: Math.floor(((v.y - latMin) / (latMax - latMin)) * height),\n }))\n\n return {\n data: list,\n latMin,\n latMax,\n lonMin,\n lonMax,\n max: 10,\n min: 0\n }\n}\n\nclass HeatmapLayer extends CustomDataSource{\n constructor(options) {\n super();\n\n this.map = options.map;\n\n this.container = this.createDom();\n this.layer = h337.create({\n container: this.container,\n })\n\n if (options.data?.length) {\n this.loadData(options.data);\n }\n }\n\n createDom() {\n const map = this.map;\n const {width, height} = map.container.getBoundingClientRect();\n\n const heatMapDom = document.createElement('div');\n heatMapDom.style.width = width + 'px';\n heatMapDom.style.height = height + 'px';\n heatMapDom.style.display = 'none';\n\n map.container.appendChild(heatMapDom);\n\n return heatMapDom;\n }\n\n loadData(_data) {\n const map = this.map;\n\n this.entities.removeAll();\n\n const {width, height} = map.container.getBoundingClientRect();\n\n const {data, max, min, lonMin, latMin, lonMax, latMax} = getData(_data, width, height);\n\n this.layer.setData({\n max,\n min,\n data\n });\n\n // 生成的热力图 canvas 元素类名为 heatmap-canvas\n const canvas = document.getElementsByClassName('heatmap-canvas');\n if (!canvas[0]) return;\n\n this.entities.add({\n name: 'heatmap',\n rectangle: {\n coordinates: Rectangle.fromDegrees(lonMin, latMin, lonMax, latMax),\n material: new ImageMaterialProperty({\n image: canvas[0],\n transparent: true,\n }),\n },\n })\n }\n\n destroy() {\n const map = this.map;\n this.container && map.container.removeChild(this.container);\n }\n}\n\n\nexport default HeatmapLayer;\n"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAC,sBAAA,CAAAH,OAAA;AAA8B,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,gBAAAA,GAAA;AAAA,SAAAE,gBAAAC,QAAA,EAAAC,WAAA,UAAAD,Q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AAI,CAAC9B,SAAS,CAAC;IAC/D;EAAC;EAAA,OAAAN,YAAA;AAAA,EAhEsBqC,wBAAgB;AAAA,IAAAC,QAAA,GAoE5BtC,YAAY;AAAAuC,OAAA,cAAAD,QAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = _default;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _useProps2 = _interopRequireDefault(require("../_util/useProps"));
|
|
9
|
+
var _HeatmapLayer = _interopRequireDefault(require("./HeatmapLayer"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
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; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
19
|
+
function _default(props) {
|
|
20
|
+
var _useProps = (0, _useProps2["default"])(),
|
|
21
|
+
map = _useProps.map;
|
|
22
|
+
(0, _react.useEffect)(function () {
|
|
23
|
+
var layer = new _HeatmapLayer["default"](_objectSpread({
|
|
24
|
+
map: map
|
|
25
|
+
}, props));
|
|
26
|
+
map.addLayer(layer);
|
|
27
|
+
return function () {
|
|
28
|
+
map.removeLayer(layer);
|
|
29
|
+
layer.destroy();
|
|
30
|
+
};
|
|
31
|
+
}, []);
|
|
32
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=index.js.map
|