Skip to content

Commit

Permalink
[BUG] style on non string attr
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Sep 27, 2024
1 parent 8ab7e32 commit 4d190b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion style/ignStyleFn.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,9 @@ function getFeatureStyle(f, clustered, options, ignStyle, clusterColor) {
} else {
label = '';
}

// Annotation show a disk if no label
if (!label.trim().length && !s.pointRadius) {
if (!String(label).trim().length && !s.pointRadius) {
return [new ol_style_Style({
fill: new ol_style_Fill({
color: 'rgba(255, 255, 255, 0.2)',
Expand Down

0 comments on commit 4d190b2

Please sign in to comment.