Skip to content

Commit

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

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

0 comments on commit ab414d6

Please sign in to comment.