[Mapcss] [josm-dev] How do I use an eval statement to set multiple selectors properties and values ?

AlfonZ alfonz42 at gmail.com
Sun Aug 4 07:45:47 UTC 2013


On Sat, Aug 3, 2013 at 7:12 PM, william skora wrote:

> I'm trying to style the names (so that they have a halo around them, and
> will later on add font size based on area size),being displayed for various
> areas in my mapcss style using an eval expression, but the styling is not
> applying and I don't know why.
>

I tried both approaches
prop_area_small_name:1 + is_prop_set("prop_area_small_name")
and
small_area:true + eval(prop(small_area))
and they both worked, styling was applied. You can check it via Advanced
info (Ctrl+I, map style tab), or visually by setting some property to an
extreme, e.g. font-size:200.
What didn't work was drawing the text within area with halo. For that I'd
suggest submitting new ticket at http://josm.openstreetmap.de/newticket .

AlfonZ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/mapcss/attachments/20130804/b36d0fcd/attachment.html>


More information about the Mapcss mailing list