gis-leaflet-helper 3.3.1 → 3.3.2
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.
|
@@ -27011,20 +27011,32 @@ const RadarCircle = L.LayerGroup.extend({
|
|
|
27011
27011
|
},
|
|
27012
27012
|
onAdd(map) {
|
|
27013
27013
|
this.initializeCircle();
|
|
27014
|
+
this.initializeAxis();
|
|
27014
27015
|
this.initializeScale();
|
|
27015
27016
|
this.initializeMaterial();
|
|
27016
27017
|
},
|
|
27017
27018
|
onRemove() {
|
|
27018
|
-
L.LayerGroup.prototype.removeLayer.call(this, this.materialEntity);
|
|
27019
27019
|
L.LayerGroup.prototype.removeLayer.call(this, this.circleEntity);
|
|
27020
|
+
L.LayerGroup.prototype.removeLayer.call(this, this.materialEntity);
|
|
27021
|
+
this.axisEntity.forEach((axis) => {
|
|
27022
|
+
L.LayerGroup.prototype.removeLayer.call(this, axis);
|
|
27023
|
+
});
|
|
27024
|
+
this.scaleCircleEntity.forEach((circle) => {
|
|
27025
|
+
L.LayerGroup.prototype.removeLayer.call(this, circle);
|
|
27026
|
+
});
|
|
27027
|
+
this.labelCircleEntity.forEach((label) => {
|
|
27028
|
+
L.LayerGroup.prototype.removeLayer.call(this, label);
|
|
27029
|
+
});
|
|
27020
27030
|
this.stopMotion();
|
|
27021
27031
|
},
|
|
27022
27032
|
initializeCircle() {
|
|
27023
27033
|
var _a;
|
|
27024
27034
|
(_a = this.circleEntity) == null ? void 0 : _a.remove();
|
|
27025
|
-
this.axisEntity.forEach((entity) => entity.remove());
|
|
27026
27035
|
this.circleEntity = new L.Circle(this.latLng, this.getCircleStyle());
|
|
27027
27036
|
L.LayerGroup.prototype.addLayer.call(this, this.circleEntity);
|
|
27037
|
+
},
|
|
27038
|
+
initializeAxis() {
|
|
27039
|
+
this.axisEntity.forEach((entity) => entity.remove());
|
|
27028
27040
|
if (!this.options.axis.show) return;
|
|
27029
27041
|
const bounds = this.circleEntity.getBounds();
|
|
27030
27042
|
this.axisEntity[0] = L.polyline(
|
|
@@ -27167,6 +27179,8 @@ const RadarCircle = L.LayerGroup.extend({
|
|
|
27167
27179
|
setStyle(style = {}) {
|
|
27168
27180
|
ObjectUtil.deepAssign(this.options, style);
|
|
27169
27181
|
this.circleEntity.setStyle(this.getCircleStyle());
|
|
27182
|
+
this.initializeAxis();
|
|
27183
|
+
this.initializeScale();
|
|
27170
27184
|
this.initializeMaterial();
|
|
27171
27185
|
},
|
|
27172
27186
|
createCounter(s = 5, e = 30, speed = 1) {
|