Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
fix(textSymbolizer): Adds support for numeric values
Browse files Browse the repository at this point in the history
  • Loading branch information
ibesora committed Feb 4, 2022
1 parent 90061d6 commit 3e38478
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/attribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export class TextAttr {
for (let property of label_props) {
if (f.props.hasOwnProperty(property)) {
retval = f.props[property];
if (typeof retval === "number")
retval = `${retval}`;
break;
}
}
Expand Down
2 changes: 2 additions & 0 deletions dist/protomaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -1984,6 +1984,8 @@ var protomaps = (() => {
for (let property of label_props) {
if (f2.props.hasOwnProperty(property)) {
retval = f2.props[property];
if (typeof retval === "number")
retval = `${retval}`;
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/protomaps.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/protomaps.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -1910,6 +1910,8 @@ var TextAttr = class {
for (let property of label_props) {
if (f2.props.hasOwnProperty(property)) {
retval = f2.props[property];
if (typeof retval === "number")
retval = `${retval}`;
break;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/attribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class TextAttr {
for (let property of label_props) {
if (f.props.hasOwnProperty(property)) {
retval = f.props[property];
if (typeof retval === "number") retval = `${retval}`;
break;
}
}
Expand Down

0 comments on commit 3e38478

Please sign in to comment.