Skip to content

Commit

Permalink
fix: return style in overrideStyleFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
d-koppenhagen committed Mar 7, 2024
1 parent df3dede commit 838d5e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/demos/AnimatedClusterDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const overrideStyleFunction = (feature, style) => {
style.getImage().setRadius(radius);
style.getText().setText(size.toString());
return style;
};
const getRandomInRange = (from, to, fixed) => {
Expand Down
1 change: 1 addition & 0 deletions src/demos/AnimatedClusterDemo2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const overrideStyleFunction = (feature, style) => {
style.getImage().setRadius(radius);
style.getText().setText(size.toString());
return style;
};
const getRandomInRange = (from, to, fixed) => {
Expand Down
1 change: 1 addition & 0 deletions src/demos/AppDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ const overrideStyleFunction = (feature, style) => {
style.getImage().setRadius(radius);
style.getText().setText(size.toString());
return style;
};
const selectInteactionFilter = (feature) => {
Expand Down
1 change: 1 addition & 0 deletions src/demos/ClusterDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const overrideStyleFunction = (feature, style, resolution) => {
const clusteredFeatures = feature.get("features");
const size = clusteredFeatures.length;
style.getText().setText(size.toString());
return style;
};
const getRandomInRange = (from, to, fixed) => {
Expand Down

0 comments on commit 838d5e3

Please # to comment.