wiki:Styles/Maxspeed

Version 3 (modified by stoecker, 14 years ago) ( diff )

Include MPH style

<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns="http://josm.openstreetmap.de/mappaint-style-1.0"
       author="Rubke, Dirk Stöcker, Vclaw" shortdescription="Maxspeed" de.shortdescription="Höchstgeschwindigkeit"
       description="Show maxspeed settings in JOSM map display"
       de.description="Anzeige der Höchstgeschwindigkeiten in der JOSM-Kartenanzeige"
       version="1.47_2024-05-20">
  <rule>
    <condition k="maxspeed" v="15"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_15#00da8bA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="30"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_30#4d4dffA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="40"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_40#4d4d00A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="50"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_50#07f807A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="60"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_60#9f9fffA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="70"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_70#eec600A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="80"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_80#f90808A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="90"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_90#07f8f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="100"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_100#f807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="110"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_110#7807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="120"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_120#f6f807A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="130"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_130#c0f100A0"/>
  </rule>

  <!-- now a set of rules for miles per hour instead of km per hour -->

  <rule>
    <condition k="maxspeed" v="10 mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_10mph#00da8bA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="10mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_10mph#00da8bA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="16"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_10mph#00da8bA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="16.09"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_10mph#00da8bA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="15 mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_15mph#c0f100A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="15mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_15mph#c0f100A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="24"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_15mph#c0f100A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="24.14"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_15mph#c0f100A0"/>
  </rule>

  <rule>
    <condition k="maxspeed" v="20 mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_20mph#4d4dffA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="20mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_20mph#4d4dffA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="32"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_20mph#4d4dffA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="32.19"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_20mph#4d4dffA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="30 mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_30mph#07f807A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="30mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_30mph#07f807A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="48"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_30mph#07f807A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="48.28"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_30mph#07f807A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="40 mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_40mph#9f9fffA0"/>
  </rule>
    <rule>
    <condition k="maxspeed" v="40mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_40mph#9f9fffA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="64"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_40mph#9f9fffA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="64.37"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_40mph#9f9fffA0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="50 mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_50mph#f90808A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="50mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_50mph#f90808A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="80"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_50mph#f90808A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="80.47"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_50mph#f90808A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="60 mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_60mph#f807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="60mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_60mph#f807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="97"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_60mph#f807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="96.56"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_60mph#f807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="70 mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_70mph#7807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="70mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_70mph#7807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="112"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_70mph#7807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="112.65"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_70mph#7807f8A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="80 mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_80mph#f6f807A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="80mph"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_80mph#f6f807A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="128"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_80mph#f6f807A0"/>
  </rule>
  <rule>
    <condition k="maxspeed" v="128.75"/>
    <linemod mode="over" width="10" realwidth="8" colour="speed_80mph#f6f807A0"/>
  </rule>
</rules>

Styles_Maxspeed-style.xml, Styles_Maxspeed.zip

Attachments (4)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.