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

smartFilter - v.trim is not a function #49

Open
josemvm opened this issue Feb 12, 2022 · 3 comments
Open

smartFilter - v.trim is not a function #49

josemvm opened this issue Feb 12, 2022 · 3 comments

Comments

@josemvm
Copy link

josemvm commented Feb 12, 2022

hi

i' am trying to adapt this script to one of my projecs but i got this error and nothing happens...

imagem

thanks

@josemvm
Copy link
Author

josemvm commented Feb 12, 2022

@josemvm
Copy link
Author

josemvm commented Feb 13, 2022

i foundt he problem, i have a fields as integer type, not as string type...

can i solve the probelm using the num.toString () method?
i'm trying to apply something like this var v = feat.properties[num.toString(field])] or var v = num.toString(feat.properties[field]) but it doesn't work... i don't know the correct syntax.

can you help me please? how i can do it?
thanks a lot

@josemvm
Copy link
Author

josemvm commented Feb 13, 2022

i can convert integer fields to string fields with virtual fields but it's not so clean...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant