Ignore:
Timestamp:
2009-01-18T17:27:32+01:00 (15 years ago)
Author:
ulfl
Message:

turn restriction display in mappaint (very experimental)

will only work with standard restrictions, selection display still strange, ...

but will display icons rotated according to the direction of the from way :-)))

enable this with mappaint.restriction=true (default disabled)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/styles/standard/elemstyles.xml

    r1269 r1295  
    4747<rules name="standard">
    4848
     49        <rule>
     50                <condition k="restriction" v="no_left_turn"/>
     51                <icon annotate="true" src="vehicle/restrictions/turn_restrictions/no_left_turn.png"/>
     52                <scale_min>1</scale_min>
     53                <scale_max>40000</scale_max>
     54        </rule>
     55        <rule>
     56                <condition k="restriction" v="no_right_turn"/>
     57                <icon annotate="true" src="vehicle/restrictions/turn_restrictions/no_right_turn.png"/>
     58                <scale_min>1</scale_min>
     59                <scale_max>40000</scale_max>
     60        </rule>
     61        <rule>
     62                <condition k="restriction" v="no_straight_on"/>
     63                <icon annotate="true" src="vehicle/restrictions/turn_restrictions/no_straight_on.png"/>
     64                <scale_min>1</scale_min>
     65                <scale_max>40000</scale_max>
     66        </rule>
     67        <rule>
     68                <condition k="restriction" v="no_u_turn"/>
     69                <icon annotate="true" src="vehicle/restrictions/turn_restrictions/no_u_turn.png"/>
     70                <scale_min>1</scale_min>
     71                <scale_max>40000</scale_max>
     72        </rule>
     73        <rule>
     74                <condition k="restriction" v="only_left_turn"/>
     75                <icon annotate="true" src="vehicle/restrictions/turn_restrictions/only_left_turn.png"/>
     76                <scale_min>1</scale_min>
     77                <scale_max>40000</scale_max>
     78        </rule>
     79        <rule>
     80                <condition k="restriction" v="only_right_turn"/>
     81                <icon annotate="true" src="vehicle/restrictions/turn_restrictions/only_right_turn.png"/>
     82                <scale_min>1</scale_min>
     83                <scale_max>40000</scale_max>
     84        </rule>
     85        <rule>
     86                <condition k="restriction" v="only_straight_on"/>
     87                <icon annotate="true" src="vehicle/restrictions/turn_restrictions/only_straight_on.png"/>
     88                <scale_min>1</scale_min>
     89                <scale_max>40000</scale_max>
     90        </rule>
     91
     92
    4993        <!-- mark some specials that should be fixed - they are already the default and therefore shouldn't be tagged -->
    5094        <rule>
Note: See TracChangeset for help on using the changeset viewer.