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 +4 -3
- package/dist/index.js +4 -3
- package/package.json +1 -1
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
|
|
489
|
-
const data =
|
|
488
|
+
const clusterFeature = features[0];
|
|
489
|
+
const data = clusterFeature.getProperties();
|
|
490
490
|
const { activeStyle } = data;
|
|
491
491
|
feature.setStyle(activeStyle);
|
|
492
|
-
|
|
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
|
|
422
|
-
const data =
|
|
421
|
+
const clusterFeature = features[0];
|
|
422
|
+
const data = clusterFeature.getProperties();
|
|
423
423
|
const { activeStyle } = data;
|
|
424
424
|
feature.setStyle(activeStyle);
|
|
425
|
-
|
|
425
|
+
vectorLayer.changed();
|
|
426
|
+
selectEventHandle(vectorLayer, clusterFeature);
|
|
426
427
|
}
|
|
427
428
|
} else {
|
|
428
429
|
selectEventHandle(vectorLayer, feature);
|