Changes between Version 10 and Version 11 of Styles/Lane_and_Road_Attributes


Ignore:
Timestamp:
2013-02-19T14:38:29+01:00 (13 years ago)
Author:
imagic
Comment:

Rudimentary support for destination, destination:ref and destination:country added

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Lane_and_Road_Attributes

    v10 v11  
    1212* [[http://wiki.openstreetmap.org/wiki/Key:lit|lit]]: Indication if a road is lit or not.
    1313* [[http://wiki.openstreetmap.org/wiki/Tag:highway%3Dstreet_lamp|highway=street_lamp]]: Street lamp
     14* [[http://wiki.openstreetmap.org/wiki/Key:destination|destination]]: Signposted destination of a road. Only rudimentary support without lane-dependent values. The subkeys [[http://wiki.openstreetmap.org/wiki/Key:destination:ref|destination:ref]] and [[http://wiki.openstreetmap.org/wiki/Key:destination:country|destination:country]] are also supported.
    1415
    1516Furthermore:
     
    3940meta {
    4041    title: "Lane and road attributes";
    41     description: "Visualization of lanes, width, turn lanes, changing the lane, lighting and street lamps, sidewalk, cycletracks, bicycle lanes, bus lanes, psv lanes.";
     42    description: "Visualization of lanes, width, turn lanes, changing the lane, destination, lighting and street lamps, sidewalk, cycletracks, bicycle lanes, bus lanes, psv lanes.";
    4243    author: "Martin Vonwald";
    43     version: "0.99-beta7-[[revision]]_[[date]]";
     44    version: "0.99-beta8-[[revision]]_[[date]]";
    4445    license: "CC-BY-SA";
    4546    min-josm-version: "5714";
     
    4950{
    5051    title: "Fahrspur- und Straßenattribute";
    51     description: "Anzeige von Fahrspuren, Breite, Abbiegespuren, Spurwechsel, Beleuchtung inkl. Straßenlampen, Gehsteig/Bürgersteig, Radwege, Fahrradspuren, Busspuren, Öffi-Spuren.";
     52    description: "Anzeige von Fahrspuren, Breite, Abbiegespuren, Spurwechsel, Zielangaben, Beleuchtung inkl. Straßenlampen, Gehsteig/Bürgersteig, Radwege, Fahrradspuren, Busspuren, Öffi-Spuren.";
    5253}
    5354
     
    9192way[change:lanes],way[change:lanes:forward],way[change:lanes:backward],way[change:lanes:both_ways],
    9293way[sidewalk],
    93 way[cycleway=track],way[cycleway:left],way[cycleway:right],way[cycleway:both]
     94way[cycleway=track],way[cycleway:left],way[cycleway:right],way[cycleway:both],
     95way[destination],way[destination:forward],way[destination:backward]
    9496{ ok: yes; }
    9597
     
    23602362
    23612363/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
    2362 /* Lighting                                                                                                                                       */
     2364/* Lighting                                                                                                                                        */
    23632365/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
    23642366way|z17-[lit?][is_prop_set(width,"Ground")]::Lighting_1
     
    23842386}
    23852387
     2388/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
     2389/* Destination                                                                                                                                     */
     2390/*-------------------------------------------------------------------------------------------------------------------------------------------------*/
     2391way[destination]::Destination
     2392{
     2393    text-offset: eval(prop("placement_offset","default"));
     2394    text: eval(get(split(";",tag(destination)),0));
     2395    text: eval(has_tag_key("destination:ref")?concat(prop(text)," (",get(split(";",tag("destination:ref")),0),")"):prop(text));
     2396    text: eval(has_tag_key("destination:country")?concat(prop(text)," [",get(split(";",tag("destination:country")),0),"]"):prop(text));
     2397    font-size: eval(prop(lane_default_width,"default"));          text-color: white;        text-opacity: 0.3;   
     2398    text-halo-radius: 2;    text-halo-color: blue;    text-halo-opacity: 0.3;
     2399}
     2400way["destination:forward"]::Destination_Forward
     2401{
     2402    text-offset: eval(prop("placement_offset","default")+(eval(prop(lane_width_all,"default"))/4));
     2403    text: eval(get(split(";",tag("destination:forward")),0));
     2404    text: eval(has_tag_key("destination:forward:ref")?concat(prop(text)," (",get(split(";",tag("destination:forward:ref")),0),")"):prop(text));
     2405    text: eval(has_tag_key("destination:forward:country")?concat(prop(text)," [",get(split(";",tag("destination:forward:country")),0),"]"):prop(text));
     2406    font-size: eval(prop(lane_default_width,"default"));          text-color: white;        text-opacity: 0.3;   
     2407    text-halo-radius: 2;    text-halo-color: blue;    text-halo-opacity: 0.3;
     2408}
     2409way["destination:backward"]::Destination_Backward
     2410{
     2411    text-offset: eval(prop("placement_offset","default")-(eval(prop(lane_width_all,"default"))/4));
     2412    text: eval(get(split(";",tag("destination:backward")),0));
     2413    text: eval(has_tag_key("destination:backward:ref")?concat(prop(text)," (",get(split(";",tag("destination:backward:ref")),0),")"):prop(text));
     2414    text: eval(has_tag_key("destination:forward:country")?concat(prop(text)," [",get(split(";",tag("destination:forward:country")),0),"]"):prop(text));
     2415    font-size: eval(prop(lane_default_width,"default"));          text-color: white;        text-opacity: 0.3;   
     2416    text-halo-radius: 2;    text-halo-color: blue;    text-halo-opacity: 0.3;
     2417}
    23862418
    23872419/***************************************************************************************************************************************************/
     
    24172449}
    24182450
     2451
    24192452}}}