wiki:Styles/Landcover

This style makes landcover and some additional landuse tags visible. The exact list of tags is - as this style - work in progress and can be found at User:Imagic/landcover.

meta 
{
    title: "Landcover tags";
    description: "Show landcover and some additional landuse tags";
    version: "0.4.13_2016-03-26";
    author: "Martin Vonwald";
    watch-modified: true;
}

meta[lang=de]
{
    title: "Landcover Tags";
    description: "Zeige landcover und einige zusätzliche landuse Tags";
}

/***************************************************************************************/
/* Land cover values                                                                   */
/***************************************************************************************/
/* Default values for all landcover tags */
area[landcover][!landuse], area[landcover][landuse=shelterbelt]
{
    width: 2; opacity: 0.5; dashes: 2,2;
    fill-opacity: 0.35;
} 
area::Overlay
{
    fill-opacity: 0.35;
    object-z-index: 1.0;
}

area[landcover=wood], area[landcover=trees], area[landcover=tree]                            { fill-color: #008000; }
area[landcover=wood]::Overlay, area[landcover=trees]::Overlay, area[landcover=tree]::Overlay { fill-image: "images/landcover/trees.png"; }
area[trees=coniferous]::Overlay                                                              { fill-image: "images/landcover/coniferous.png"; }
area[trees=broad-leaved]::Overlay                                                            { fill-image: "images/landcover/broad-leaved.png"; }


area[landcover=water][!landuse]
{
    fill-image: "images/landcover/water.png";
    /* fill-color: #0000FF; */
}


area[landcover=beach][!landuse]
{
    fill-opacity: 0.5; /* non-standard opacity */
    fill-image: "images/landcover/sand.png";
    /* fill-color: #F8DBA2; */
}
area[landcover=beach][beach=rock][!landuse]
{
    fill-image: "images/landcover/rock.png";
    /* fill-color: lightgray; */
}
area[landcover=beach][beach=gravel][!landuse]
{
    fill-image: "images/landcover/gravel.png";
    /* fill-color: gray; */
}

area[landcover="developed_area"][!landuse]
{
    fill-image: "images/landcover/developed.png";
    /* fill-color: #111111; */
}


area[landcover=ice][!landuse]
{
    fill-color: #FFFFFF;
}
area[landcover=ice][ice=glacier][!landuse]
{
    fill-color: #DDDDFF;
}


area[landcover=grass][!landuse]
{
    fill-color: #B1E0C2;
}


area[landcover=scrub][!landuse] { fill-color: #007000; }
area[landcover=scrub]::Overlay  { fill-image: "images/landcover/scrub.png"; }


area[landcover=wetland][!landuse]
{
    fill-color: #4faaf3;
}
area[landcover=wetland][wetland=mud][!landuse]
{
    fill-color: brown;
}


area[landcover=sand][!landuse]
{
    fill-opacity: 0.5; /* non-standard opacity */
    fill-image: "images/landcover/sand.png";
    /* fill-color: #F8DBA2; */
}


area[landcover="bare_rock"][!landuse]
{
    fill-image: "images/landcover/rock.png";
    /* fill-color: #888888; */
}
area[landcover="bare_rock"]["bare_rock"=scree][!landuse]
{
    fill-image: "images/landcover/scree.png";
    /* fill-color: #666666; */
}
area[landcover="bare_rock"]["bare_rock"=bedrock][!landuse]
{
    fill-image: "images/landcover/bedrock.png";
    /* fill-color: #AAAAAA; */
}

/***************************************************************************************/
/* Land use values                                                                     */
/***************************************************************************************/
area[landuse=shelterbelt]
{
    color: #002000;
    width: 3;
    opacity: 0.8;
}


area[landuse=reservoir]["reservoir_type"=sewage]
{
    fill-color: brown;
}


area[landuse="animal_keeping"]
{
    color: #805535;
    width: 2;
    fill-color: #B1E0C2;
    fill-opacity: 0.5;
}
area[landuse="animal_keeping"]["animal_keeping:type"="paddock"]
{
    fill-color: #B8B8B8;
}
area[landuse="animal_keeping"]["animal_keeping:type"="open_stable"]
{
    fill-color: #517231;
}
area[landuse="animal_keeping"]["animal_keeping:type"="open_stable"]["animal_keeping"="horse"]::Overlay
{
    fill-opacity: 0.5;
    fill-image: "images/landcover/running_horse.png"
}

/***************************************/
/* landuse=orchard is by defaul rendered, so we only add */
/* some additional rules for specific orchards */
/***************************************/
area[landuse=orchard][trees="apple_trees"], area[landuse=orchard][orchard=apple]
{
    width: 2; color: #B1E0C2;
    fill-opacity: 0.5;
    fill-image: "images/landcover/apple.png";
}
area[landuse=orchard][trees="olive_trees"], area[landuse=orchard][orchard=olive]
{
    width: 2; color: #B1E0C2;
    fill-opacity: 0.5;
    fill-image: "images/landcover/olive.png";
}
area[landuse=orchard][trees=figs], area[landuse=orchard][orchard=fig]
{
    width: 2; color: #B1E0C2;
    fill-opacity: 0.5;
    fill-image: "images/landcover/fig.png";
}
area[landuse=orchard][trees="almond_trees"], area[landuse=orchard][orchard=almond]
{
    width: 2; color: #B1E0C2;
    fill-opacity: 0.5;
    fill-image: "images/landcover/almond.png";
}
area[landuse=orchard][trees="orange_trees"], area[landuse=orchard][orchard=orange]
{
    width: 2; color: #B1E0C2;
    fill-opacity: 0.5;
    fill-image: "images/landcover/orange.png";
}
area[landuse=orchard][trees="banana_trees"], area[landuse=orchard][orchard=banana]
{
    width: 2; color: #B1E0C2;
    fill-opacity: 0.5;
    fill-image: "images/landcover/banana.png";
}
area[landuse=orchard][trees="pear_trees"], area[landuse=orchard][orchard=pear]
{
    width: 2; color: #B1E0C2;
    fill-opacity: 0.5;
/*    fill-image: "images/landcover/pear.png";*/
}

/***************************************/
/* landuse=plantation                  */
/***************************************/
area[landuse=plantation]
{
    width: 2; color: #90C0A0;
    fill-color: #90C0A0;
    fill-opacity: 0.5;
}
area[landuse=plantation][plantation=tobacco]
{
    fill-image: "images/landcover/tobacco.png";
}


/***************************************/
/* Add an image to landuse=vineyard    */
/***************************************/
area[landuse=vineyard]
{
    width: 2; color: #B1E0C2;
    fill-color: #B1E0C2;
    fill-opacity: 0.5;
    fill-image: "images/landcover/vineyard.png";
}


Styles_Landcover-style.mapcss, Styles_Landcover.zip

Last modified 2 years ago Last modified on 2016-03-26T11:12:53+01:00

Attachments (1)

Download all attachments as: .zip