Changeset 15093 in josm


Ignore:
Timestamp:
2019-05-18T19:44:52+02:00 (6 years ago)
Author:
Klumbumbus
Message:

see #17727, fix #17731 - add natural=strait (icon self created, CC0 and PD licensed)

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r15092 r15093  
    17201720            <text key="name" text="Name" />
    17211721        </item> <!-- Cape -->
     1722        <item name="Strait" icon="presets/nautical/strait.svg" type="node,way,closedway,multipolygon" preset_name_label="true">
     1723            <link wiki="Tag:natural=strait" />
     1724            <space />
     1725            <key key="natural" value="strait" />
     1726            <text key="name" text="Name" />
     1727        </item> <!-- Strait -->
    17221728    </group> <!-- Water -->
    17231729    <group name="Shipping" icon="presets/nautical/ferry.svg">
  • trunk/src/org/openstreetmap/josm/data/validation/tests/LongSegment.java

    r15081 r15093  
    8484
    8585    private boolean ignoreWay(Way w) {
    86         return visitedWays.contains(w) || w.hasTag("route", "ferry") || w.hasTag("bay", "fjord");
     86        return visitedWays.contains(w) || w.hasTag("route", "ferry") || w.hasTag("bay", "fjord") || w.hasTag("natural", "strait");
    8787    }
    8888
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnclosedWays.java

    r15081 r15093  
    139139        new UnclosedWaysCheck(1101, "natural", marktr("natural type {0}"),
    140140            new HashSet<>(Arrays.asList("arete", "bay", "cave", "cliff", "coastline", "gorge", "gully", "peak",
    141                             "ridge", "saddle", "tree", "tree_row", "valley", "volcano"))),
     141                            "ridge", "saddle", "strait", "tree", "tree_row", "valley", "volcano"))),
    142142
    143143        new UnclosedWaysCheck(1102, "landuse", marktr("landuse type {0}")),
  • trunk/styles/standard/elemstyles.mapcss

    r15092 r15093  
    43084308    set icon_z17;
    43094309}
     4310area[natural=strait]:closed {
     4311    fill-color: natural#002f00;
     4312}
     4313way[natural=strait] {
     4314    width: 2;
     4315    color: natural#002f00;
     4316}
     4317node[natural=strait] {
     4318    icon-image: "presets/nautical/strait.svg";
     4319    set icon_z17;
     4320}
    43104321area[natural=cape],
    43114322area[natural=cave_entrance] {
Note: See TracChangeset for help on using the changeset viewer.