Changes between Version 3 and Version 4 of Styles/FrenchEPCI


Ignore:
Timestamp:
2016-01-03T14:03:06+01:00 (5 years ago)
Author:
Don-vip
Comment:

see #12282 - convert to MapCSS

Legend:

Unmodified
Added
Removed
Modified
  • Styles/FrenchEPCI

    v3 v4  
    11== French EPCI style ==
    22
    3 This style add display of French EPCIs (boundary=local_authority) to the map. It works only with '''JOSM 4213''' and above.
    4 
    5 === The style itself ===
     3This style add display of French EPCIs (`boundary=local_authority`) to the map.
    64
    75{{{
    8 #!style
    9 <?xml version="1.0" encoding="UTF-8"?>
    10 <rules xmlns="http://josm.openstreetmap.de/mappaint-style-1.0"
    11        author="Don-vip" shortdescription="EPCI (France)" fr.shortdescription="EPCI (France)"
    12        description="Display French local authorities (known as EPCI)"
    13        fr.description="Afficher les EPCI avec le même style que Banatic"
    14        version="1.[[revision]]_[[date]]">
    15   <rule>
    16     <condition k="type" v="boundary"/>
    17     <condition k="boundary" v="local_authority"/>
    18     <condition k="local_authority:FR" v="CU"/>
    19     <area colour="CU#6B207E"/>
    20     <icon annotate="true" src="misc/deprecated.png"/>
    21   </rule>
    22   <rule>
    23     <condition k="type" v="boundary"/>
    24     <condition k="boundary" v="local_authority"/>
    25     <condition k="local_authority:FR" v="CA"/>
    26     <area colour="CA#9061A7"/>
    27     <icon annotate="true" src="misc/deprecated.png"/>
    28   </rule>
    29   <rule>
    30     <condition k="type" v="boundary"/>
    31     <condition k="boundary" v="local_authority"/>
    32     <condition k="local_authority:FR" v="CC"/>
    33     <area colour="CC#FDC26F"/>
    34     <icon annotate="true" src="misc/deprecated.png"/>
    35   </rule>
    36   <rule>
    37     <condition k="type" v="boundary"/>
    38     <condition k="boundary" v="local_authority"/>
    39     <condition k="local_authority:FR" v="SAN"/>
    40     <area colour="SAN#C4ABD3"/>
    41     <icon annotate="true" src="misc/deprecated.png"/>
    42   </rule>
    43 </rules>
     6#!style type="mapcss"
     7meta {
     8    title: "EPCI (France)";
     9    version: "2.0";
     10    description: "Display French local authorities (known as EPCI)";
     11    author: "Don-vip";
     12    link: "https://josm.openstreetmap.de/wiki/Styles/FrenchEPCI";
     13}
     14area[type=boundary][boundary=local_authority][local_authority:FR=CU]
     15{
     16    fill-color: #6B207E;
     17}
     18area[type=boundary][boundary=local_authority][local_authority:FR=CA]
     19{
     20    fill-color: #9061A7;
     21}
     22area[type=boundary][boundary=local_authority][local_authority:FR=CC]
     23{
     24    fill-color: #FDC26F;
     25}
     26area[type=boundary][boundary=local_authority][local_authority:FR=SAN]
     27{
     28    fill-color: #C4ABD3;
     29}
     30area[type=boundary][boundary=local_authority][local_authority:FR=metropole]
     31{
     32    fill-color: #4A2061;
     33}
    4434}}}