@artstesh/maps 4.1.29 → 4.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.
@@ -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 {Style} style - The style to be applied to the polygon.
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
  */
@@ -1182,7 +1182,7 @@ class MapClickService {
1182
1182
  const model = new MapClickEvent(ev.coordinate, {}, {});
1183
1183
  (_a = this.map) === null || _a === void 0 ? void 0 : _a.forEachFeatureAtPixel(ev.pixel, (f, l) => {
1184
1184
  this.getFeatureCollectionWithInner([f])
1185
- .filter((f) => f.getId() != null)
1185
+ .filter((f) => f.getId() != null && !!l)
1186
1186
  .forEach((fs) => {
1187
1187
  let layerName = l.get('name');
1188
1188
  if (!model.entities[layerName])