Changeset 7630 in josm for trunk


Ignore:
Timestamp:
2014-10-18T16:22:52+02:00 (10 years ago)
Author:
Klumbumbus
Message:

see #8281 - deprecate sport=diving, add preset and mappaint style for sport=scuba_diving

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r7629 r7630  
    47444744            <combo key="leisure" text="Type" values="sports_centre,stadium,swimming_pool,water_park" default="swimming_pool" values_searchable="true" />
    47454745        </item> <!-- Swimming -->
     4746        <item name="Scuba Diving" icon="styles/standard/sport/scuba_diving.svg" type="node,closedway" preset_name_label="true">
     4747            <link href="http://wiki.openstreetmap.org/wiki/Tag:sport=scuba_diving" />
     4748            <space />
     4749            <key key="sport" value="scuba_diving" />
     4750            <text key="name" text="Name" />
     4751        </item> <!-- Scuba Diving -->
    47464752        <item name="Skiing" icon="presets/skiing_downhill.png" type="node,way,closedway" preset_name_label="true">
    47474753            <link href="http://wiki.openstreetmap.org/wiki/Proposed_features/Piste_Maps"
  • trunk/data/validator/deprecated.mapcss

    r7623 r7630  
    314314  fixDeleteObject: this;
    315315}
     316
     317/* see #8281 */
     318*[sport=diving] {
     319  throwWarning: tr("{0} is deprecated", "{0.tag}");
     320  suggestAlternative: "sport=scuba_diving";
     321  suggestAlternative: "sport=cliff_diving";
     322}
  • trunk/styles/standard/elemstyles.mapcss

    r7626 r7630  
    35903590area[sport=rowing],
    35913591area[sport=sailing],
    3592 area[sport=diving],
     3592area[sport=scuba_diving],
    35933593area[sport=badminton] {
    35943594    fill-color: sport#bde3cb;
     
    36343634    text: auto;
    36353635}
    3636 node[sport=diving] {
    3637     icon-image: "sport/diving.png";
     3636node[sport=scuba_diving] {
     3637    icon-image: "sport/scuba_diving.svg";
    36383638    set icon_z17;
    36393639    text: auto;
Note: See TracChangeset for help on using the changeset viewer.