Skip to content

Commit 838d5e3

Browse files
committed
fix: return style in overrideStyleFunction
1 parent df3dede commit 838d5e3

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/demos/AnimatedClusterDemo.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ const overrideStyleFunction = (feature, style) => {
118118
style.getImage().setRadius(radius);
119119
120120
style.getText().setText(size.toString());
121+
return style;
121122
};
122123
123124
const getRandomInRange = (from, to, fixed) => {

src/demos/AnimatedClusterDemo2.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ const overrideStyleFunction = (feature, style) => {
105105
style.getImage().setRadius(radius);
106106
107107
style.getText().setText(size.toString());
108+
return style;
108109
};
109110
110111
const getRandomInRange = (from, to, fixed) => {

src/demos/AppDemo.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ const overrideStyleFunction = (feature, style) => {
355355
style.getImage().setRadius(radius);
356356
357357
style.getText().setText(size.toString());
358+
return style;
358359
};
359360
360361
const selectInteactionFilter = (feature) => {

src/demos/ClusterDemo.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const overrideStyleFunction = (feature, style, resolution) => {
6060
const clusteredFeatures = feature.get("features");
6161
const size = clusteredFeatures.length;
6262
style.getText().setText(size.toString());
63+
return style;
6364
};
6465
6566
const getRandomInRange = (from, to, fixed) => {

0 commit comments

Comments
 (0)