Skip to content

Commit

Permalink
fix: unclear 'show no data'
Browse files Browse the repository at this point in the history
  • Loading branch information
BRaimbault committed May 15, 2024
1 parent 9fcd872 commit 630d8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers/Layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class Layer extends Evented {
const { properties } = feature
const content = (hoverLabel || label).replace(
/\{ *([\w_-]+) *\}/g,
(str, key) => properties[key] || ''
(str, key) => properties[key] || (key === 'value' ? 'no data' : '')
)

this._map.showLabel(content, evt.lngLat)
Expand Down

0 comments on commit 630d8fa

Please sign in to comment.