Ignore:
Timestamp:
2011-02-02T16:56:07+01:00 (14 years ago)
Author:
stoecker
Message:

see #5899 - support different display of closed ways and areas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Relation.java

    r3719 r3844  
    371371    }
    372372
     373    public OsmPrimitiveType getDisplayType() {
     374        return isMultipolygon() ? OsmPrimitiveType.MULTIPOLYGON
     375        : OsmPrimitiveType.RELATION;
     376    }
     377
     378    public boolean isMultipolygon() {
     379        return "multipolygon".equals(get("type"));
     380    }
     381
    373382    @Override
    374383    public BBox getBBox() {
Note: See TracChangeset for help on using the changeset viewer.