[josm-dev] Custom K/V Tags in MAPCSS?

Tod Fitch tod at fitchdesign.com
Thu Jul 17 00:42:28 UTC 2014


On Jul 16, 2014, at 5:11 PM, Alex Rollin wrote:

> I think this is a bug.  Maybe someone would like to check it for themselves.
> 
> Basically, it seems to me that it is not possible to use a custom key to
> create a new style rule.
> 
> These are MapCSS examples we have tried:
> 
> We want to use a custom tag for our style, like this, but it does not work:
> 
> node[oursurvey=information] {
>    icon-image: "icons/triangle.png";
> 
> 
> This common key DOES work :
> 
> node[amenity=information] {
>    icon-image: "icons/triangle.png";
> 
> This ACTUAL key also works:
> 
> node[tourism=information] {
>    icon-image: "icons/triangle.png";
> 
> 
> Why doesn't our custom key work? Is there a list of pre-approved tags that
> are allowed?
> 
> --
> Alex

I haven't used the CartoCSS setup yet but I did a custom map using the older Mapnik XML styles and one thing that comes to light pretty quick it that you need two things for something to render: First it has to get into your local database, so you need to change osm2pgsql.style to tell osm2pgsql what tags and tag values you need. Second you need to describe how the tag/values should be rendered in Mapnik either through mapnik XML directly or via CartoCSS.

Sounds like you have the second items covered but I don't recall you mentioning that you've addressed the first part about getting your custom tags into the PostgreSQL database.

Tod


More information about the josm-dev mailing list