@artstesh/maps 1.1.28 → 1.1.30
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/bundles/maps-components-src-map.umd.js +6 -5
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +6 -5
- package/dist/bundles/maps-components.umd.js.map +1 -1
- package/dist/esm2015/map/messages/commands/modify-feature.command.js +2 -2
- package/dist/esm2015/map/services/drawing/feature-modification.service.js +5 -4
- package/dist/esm2015/map/services/map-click.service.js +2 -2
- package/dist/esm2015/src/map/messages/commands/modify-feature.command.js +2 -2
- package/dist/esm2015/src/map/services/drawing/feature-modification.service.js +5 -4
- package/dist/esm2015/src/map/services/map-click.service.js +2 -2
- package/dist/fesm2015/maps-components-src-map.js +6 -5
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +6 -5
- package/dist/fesm2015/maps-components.js.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
|
@@ -399,7 +399,7 @@ class ModifyFeatureCommand extends PostboyCallbackMessage {
|
|
|
399
399
|
* Constructs an instance of the class.
|
|
400
400
|
*
|
|
401
401
|
* @param {PolygonModel} model - The model representing the polygon data.
|
|
402
|
-
* @param {
|
|
402
|
+
* @param {StyleLike} style - The style to be applied to the polygon.
|
|
403
403
|
* @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the feature, defaults to GeoJson.
|
|
404
404
|
* @param {boolean} [draggable=true] - Determines whether the polygon is draggable, defaults to true.
|
|
405
405
|
*/
|
|
@@ -1183,7 +1183,7 @@ class MapClickService {
|
|
|
1183
1183
|
const model = new MapClickEvent(ev.coordinate, {}, {});
|
|
1184
1184
|
(_a = this.map) === null || _a === void 0 ? void 0 : _a.forEachFeatureAtPixel(ev.pixel, (f, l) => {
|
|
1185
1185
|
this.getFeatureCollectionWithInner([f])
|
|
1186
|
-
.filter((f) => f.getId() != null)
|
|
1186
|
+
.filter((f) => f.getId() != null && !!l)
|
|
1187
1187
|
.forEach((fs) => {
|
|
1188
1188
|
let layerName = l.get('name');
|
|
1189
1189
|
if (!model.entities[layerName])
|
|
@@ -1378,11 +1378,12 @@ class FeatureModificationService {
|
|
|
1378
1378
|
});
|
|
1379
1379
|
}
|
|
1380
1380
|
clearInteraction(layer) {
|
|
1381
|
-
var _a, _b;
|
|
1381
|
+
var _a, _b, _c;
|
|
1382
|
+
(_a = layer === null || layer === void 0 ? void 0 : layer.getSource()) === null || _a === void 0 ? void 0 : _a.clear();
|
|
1382
1383
|
if (this.modify)
|
|
1383
|
-
(
|
|
1384
|
+
(_b = this.map) === null || _b === void 0 ? void 0 : _b.removeInteraction(this.modify);
|
|
1384
1385
|
if (this.translate)
|
|
1385
|
-
(
|
|
1386
|
+
(_c = this.map) === null || _c === void 0 ? void 0 : _c.removeInteraction(this.translate);
|
|
1386
1387
|
}
|
|
1387
1388
|
}
|
|
1388
1389
|
FeatureModificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FeatureModificationService, deps: [{ token: MapPostboyService }], target: i0.ɵɵFactoryTarget.Injectable });
|