Skip to content
New issue

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

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

Already on GitHub? # to your account

eval for text #44

Open
kiselev-dv opened this issue Feb 6, 2014 · 0 comments
Open

eval for text #44

kiselev-dv opened this issue Feb 6, 2014 · 0 comments

Comments

@kiselev-dv
Copy link

Hi.

Is it possible to make evaluable text labels.
For example, I want to make highway labels with such pattern

tag('name').' '.tag('ref').' '.tag('int_ref') 

or use any other expression for text labels.

As I mention, mapcss provides set operation for such thing. I try

way[highway] {
    set title=eval("tag('name')")
    text: title
    ....
}

Alacarte server says that I have error in my mapcss near = so I try

way[highway] {
    set title:eval("tag('name')")
    text: title
    ....
}

It's not working too. Most easiest way to use such functionality could be syntax like:

way[highway] {
    text: eval("tag('name').'and so on'")
}

or something like this, to keep compatibility with standard.

way[highway] {
    text-val: eval("tag('name').'and so on'")
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants