[Mapcss] Little syntax easement

Thomas Davie tom.davie at gmail.com
Mon Feb 6 13:59:39 GMT 2012


Good news everybody!

As of just now, OpenStreetPad supports this new syntax:

https://github.com/beelsebob/OpenStreetPad/commit/3a80d757a4cee1c9f5308e6774a8d2f1f50f9769

Bob
if (*ra4 != 0xffc78948) { return false; }

On 6 Feb 2012, at 09:27, Richard Fairhurst wrote:

> Hi all,
> 
> I'd like to suggest a little 'easement' to make MapCSS syntax less verbose in one particular case.
> 
> Right now, if you want to use a tag value in a declaration, you need to fire up the eval parser:
> 	way[highway] { width: eval("tag('lanes')"); }
> 
> It'd be more pleasant, and more efficient, to allow this too:
> 	way[highway] { width: tag('lanes'); }
> 
> and it's quite CSS-like, because you can of course use a similar syntax in Real CSS:
> 	way[highway] { color: rgb(0,0,0); }
> 
> cheers
> Richard
> 
> 
> _______________________________________________
> Mapcss mailing list
> Mapcss at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/mapcss

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


More information about the Mapcss mailing list