map-ol-utils 0.1.15 → 0.1.16

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
@@ -681,7 +681,7 @@ var createClusterLayer = (dataList, config) => {
681
681
  }
682
682
  if (Array.isArray(style)) {
683
683
  const tempFeature = feature.get("features")[0];
684
- const index = tempFeature.get("styleIndex");
684
+ const index = tempFeature.get("styleIndex") || 0;
685
685
  tempFeature.setProperties({
686
686
  unActiveStyle: style[index],
687
687
  activeStyle: style[index + style.length / 2]
package/dist/index.js CHANGED
@@ -614,7 +614,7 @@ var createClusterLayer = (dataList, config) => {
614
614
  }
615
615
  if (Array.isArray(style)) {
616
616
  const tempFeature = feature.get("features")[0];
617
- const index = tempFeature.get("styleIndex");
617
+ const index = tempFeature.get("styleIndex") || 0;
618
618
  tempFeature.setProperties({
619
619
  unActiveStyle: style[index],
620
620
  activeStyle: style[index + style.length / 2]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "map-ol-utils",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "description": "Openlayers utils library",
6
6
  "files": [