map-ol-utils 0.1.13 → 0.1.14

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/index.cjs CHANGED
@@ -485,11 +485,12 @@ var createSelectByLayer = (vectorLayer) => {
485
485
  if (isClusterLayer) {
486
486
  const features = feature.get("features");
487
487
  if (features.length === 1) {
488
- const cluterFeature = features[0];
489
- const data = cluterFeature.getProperties();
488
+ const clusterFeature = features[0];
489
+ const data = clusterFeature.getProperties();
490
490
  const { activeStyle } = data;
491
491
  feature.setStyle(activeStyle);
492
- selectEventHandle(vectorLayer, cluterFeature);
492
+ vectorLayer.changed();
493
+ selectEventHandle(vectorLayer, clusterFeature);
493
494
  }
494
495
  } else {
495
496
  selectEventHandle(vectorLayer, feature);
package/dist/index.js CHANGED
@@ -418,11 +418,12 @@ var createSelectByLayer = (vectorLayer) => {
418
418
  if (isClusterLayer) {
419
419
  const features = feature.get("features");
420
420
  if (features.length === 1) {
421
- const cluterFeature = features[0];
422
- const data = cluterFeature.getProperties();
421
+ const clusterFeature = features[0];
422
+ const data = clusterFeature.getProperties();
423
423
  const { activeStyle } = data;
424
424
  feature.setStyle(activeStyle);
425
- selectEventHandle(vectorLayer, cluterFeature);
425
+ vectorLayer.changed();
426
+ selectEventHandle(vectorLayer, clusterFeature);
426
427
  }
427
428
  } else {
428
429
  selectEventHandle(vectorLayer, feature);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "map-ol-utils",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "description": "Openlayers utils library",
6
6
  "files": [