Changeset 33947 in osm for applications/editors/josm


Ignore:
Timestamp:
2017-12-09T16:13:19+01:00 (7 years ago)
Author:
malcolmh
Message:

illuminated topmarks

Location:
applications/editors/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/jicons/examples.xml

    r33943 r33947  
    1717    <tag k="seamark:type" v="beacon_special_purpose" />
    1818    <tag k="seamark:beacon_special_purpose:shape" v="stake" />
    19     <tag k="seamark:topmark:shape" v="arrow" />
     19    <tag k="seamark:topmark:shape" v="triangle, point up" />
    2020    <tag k="seamark:topmark:status" v="illuminated" />
    21     <tag k="seamark:topmark:orientation" v="45" />
    2221  </icon>
    2322  <icon width="100" height="100" scale="0.5" file="floodlight" format="PNG" >
  • applications/editors/josm/plugins/seachart/src/render/Rules.java

    r33943 r33947  
    558558                                if (feature.objs.containsKey(Obj.TOPMAR)) {
    559559                                        AttMap topmap = feature.objs.get(Obj.TOPMAR).get(0);
     560                                        if (topmap.containsKey(Att.STATUS) && (testAttribute(Obj.TOPMAR, Att.STATUS, StsSTS.STS_ILLD))) {
     561                                                Renderer.symbol(Beacons.Floodlight);
     562                                        }
    560563                                        if (topmap.containsKey(Att.TOPSHP)) {
    561564                                                if (topmap.containsKey(Att.ORIENT)) {
     
    566569                                } else if (feature.objs.containsKey(Obj.DAYMAR)) {
    567570                                        AttMap topmap = feature.objs.get(Obj.DAYMAR).get(0);
     571                                        if (topmap.containsKey(Att.STATUS) && (testAttribute(Obj.DAYMAR, Att.STATUS, StsSTS.STS_ILLD))) {
     572                                                Renderer.symbol(Beacons.Floodlight);
     573                                        }
    568574                                        if (topmap.containsKey(Att.TOPSHP)) {
    569575                                                if (topmap.containsKey(Att.ORIENT)) {
Note: See TracChangeset for help on using the changeset viewer.