Skip to content

Commit

Permalink
fix(MVTStyle): icon properties -> fix return of function when id incl…
Browse files Browse the repository at this point in the history
…udes {}
  • Loading branch information
ftoromanoff committed Jan 15, 2025
1 parent 9250fd8 commit fffecc9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Core/Style.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,6 @@ class Style {
if (stop[1].includes('{')) {
cropValues = function _(p) {
const id = stop[1].replace(/\{(.+?)\}/g, (a, b) => (p[b] || '')).trim();
cropValues = sprites[id];
return sprites[id];
};
}
Expand All @@ -884,7 +883,6 @@ class Style {
if (iconImg[0].includes('{')) {
style.icon.cropValues = function _(p) {
const id = iconImg.replace(/\{(.+?)\}/g, (a, b) => (p[b] || '')).trim();
style.icon.cropValues = sprites[id];
return sprites[id];
};
}
Expand Down

0 comments on commit fffecc9

Please sign in to comment.