Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leaflet.textpath.js:76 Uncaught TypeError: text.replace is not a function #67

Open
zoran-petrovic-87 opened this issue Mar 19, 2018 · 0 comments
Labels

Comments

@zoran-petrovic-87
Copy link

When label is an integer, exception is thrown:
"leaflet.textpath.js:76 Uncaught TypeError: text.replace is not a function"

text = text.replace(/ /g, '\u00A0'); // Non breakable spaces

We can solve this by converting int to string before passing it to the function, but I think that this should be done by the plugin itself.

@mabhub mabhub added the bug label Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants