Skip to content

Commit

Permalink
fix: capitalize No data
Browse files Browse the repository at this point in the history
  • Loading branch information
BRaimbault committed Jun 3, 2024
1 parent ab414d6 commit 1229c48
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 @@ -344,7 +344,7 @@ class Layer extends Evented {
const content = (hoverLabel || label).replace(
/\{ *([\w_-]+) *\}/g,
(str, key) =>
properties[key] || (key === 'value' ? 'no data' : '')
properties[key] || (key === 'value' ? 'No data' : '')
)

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

0 comments on commit 1229c48

Please sign in to comment.