@artstesh/maps 5.2.7 → 5.2.9
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/dist/esm2022/map/messages/commands/modify-feature.command.mjs +2 -2
- package/dist/esm2022/map/services/drawing/feature-modification.service.mjs +2 -1
- package/dist/esm2022/map/services/map-click.service.mjs +2 -2
- package/dist/esm2022/src/map/messages/commands/modify-feature.command.mjs +2 -2
- package/dist/esm2022/src/map/services/drawing/feature-modification.service.mjs +2 -1
- package/dist/esm2022/src/map/services/map-click.service.mjs +2 -2
- package/dist/fesm2022/maps-components-src-map.mjs +3 -2
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +3 -2
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/messages/commands/modify-feature.command.d.ts +4 -4
- package/dist/src/map/messages/commands/modify-feature.command.d.ts +4 -4
- package/package.json +1 -1
|
@@ -418,7 +418,7 @@ class ModifyFeatureCommand extends PostboyCallbackMessage {
|
|
|
418
418
|
* Constructs an instance of the class.
|
|
419
419
|
*
|
|
420
420
|
* @param {PolygonModel} model - The model representing the polygon data.
|
|
421
|
-
* @param {
|
|
421
|
+
* @param {StyleLike} style - The style to be applied to the polygon.
|
|
422
422
|
* @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the feature, defaults to GeoJson.
|
|
423
423
|
* @param {boolean} [draggable=true] - Determines whether the polygon is draggable, defaults to true.
|
|
424
424
|
*/
|
|
@@ -1243,7 +1243,7 @@ class MapClickService {
|
|
|
1243
1243
|
const model = new MapClickEvent(ev.coordinate, {}, {});
|
|
1244
1244
|
this.map?.forEachFeatureAtPixel(ev.pixel, (f, l) => {
|
|
1245
1245
|
this.getFeatureCollectionWithInner([f])
|
|
1246
|
-
.filter((f) => f.getId() != null)
|
|
1246
|
+
.filter((f) => f.getId() != null && !!l)
|
|
1247
1247
|
.forEach((fs) => {
|
|
1248
1248
|
let layerName = l.get('name');
|
|
1249
1249
|
if (!model.entities[layerName])
|
|
@@ -1440,6 +1440,7 @@ class FeatureModificationService {
|
|
|
1440
1440
|
});
|
|
1441
1441
|
}
|
|
1442
1442
|
clearInteraction(layer) {
|
|
1443
|
+
layer?.getSource()?.clear();
|
|
1443
1444
|
if (this.modify)
|
|
1444
1445
|
this.map?.removeInteraction(this.modify);
|
|
1445
1446
|
if (this.translate)
|