Changeset 34896 in osm for applications/editors/josm/plugins/seachart/src/render/Rules.java
- Timestamp:
- 2019-02-15T18:17:18+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Rules.java
r34886 r34896 121 121 } 122 122 } 123 return (name != null) ? ( String) name.val: null;123 return (name != null) ? ((String) name.val).replace(""", "\"") : null; 124 124 } 125 125 … … 430 430 if (testAttribute(feature.type, Att.CATPRA, CatPRA.PRA_WFRM)) { 431 431 Renderer.symbol(Areas.WindFarm); 432 Renderer.lineVector(new LineStyle(Color.black, 20, new float[] { 40, 40 }));433 addName(15, new Font("Arial", Font.BOLD, 80), new Delta(Handle.TC, AffineTransform.getTranslateInstance(0, 1 0)));432 Renderer.lineVector(new LineStyle(Color.black, 12, new float[] { 40, 40 })); 433 addName(15, new Font("Arial", Font.BOLD, 80), new Delta(Handle.TC, AffineTransform.getTranslateInstance(0, 120))); 434 434 } 435 435 break; … … 954 954 @SuppressWarnings("unchecked") 955 955 private static void landmarks() { 956 if (!hasAttribute(Obj.LNDMRK, Att.CATLMK) && (!hasAttribute(Obj.LNDMRK, Att.FUNCTN) || testAttribute(Obj.LNDMRK, Att.FUNCTN, FncFNC.FNC_LGHT)) && hasObject(Obj.LIGHTS)) 956 if (!hasAttribute(Obj.LNDMRK, Att.CATLMK) && (!hasAttribute(Obj.LNDMRK, Att.FUNCTN) || testAttribute(Obj.LNDMRK, Att.FUNCTN, FncFNC.FNC_LGHT)) && hasObject(Obj.LIGHTS)) { 957 957 lights(); 958 addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(60, -50))); 959 } 958 960 else if (Renderer.zoom >= 12) { 959 961 switch (feature.type) { … … 981 983 break; 982 984 } 983 if (Renderer.zoom >= 15)984 addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(60, -50)));985 985 Signals.addSignals(); 986 addName(15, new Font("Arial", Font.BOLD, 40), new Delta(Handle.BL, AffineTransform.getTranslateInstance(60, -50))); 986 987 } 987 988 }
Note:
See TracChangeset
for help on using the changeset viewer.