Changeset 29206 in osm for applications/editors/josm/plugins/smed2/src/seamap/Rules.java
- Timestamp:
- 2013-01-20T11:51:05+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/Rules.java
r29204 r29206 195 195 Renderer.lineVector(feature, new LineStyle(Color.black, 8, new float[] { 25, 25 }, null)); 196 196 if ((zoom >= 12) && (name != null)) 197 Renderer.labelText(feature, (String) name.val, new Font("Arial", Font.PLAIN, 100), Color.black, n ew Delta(Handle.CC, AffineTransform.getTranslateInstance(0, 0)));197 Renderer.labelText(feature, (String) name.val, new Font("Arial", Font.PLAIN, 100), Color.black, null); 198 198 break; 199 199 case RESARE: … … 291 291 } 292 292 private static void harbours(Feature feature) { 293 } 293 AttItem name = feature.atts.get(Att.OBJNAM); 294 switch (feature.type) { 295 case ACHARE: 296 if (zoom >= 12) { 297 Renderer.symbol(feature, Harbours.Anchorage, null, null); 298 Renderer.lineSymbols(feature, Areas.Restricted, 1.0, Areas.LineAnchor, 10); 299 if ((zoom >= 15) && ((name) != null)) { 300 Renderer.labelText(feature, (String) name.val, new Font("Arial", Font.BOLD, 80), new Color(0x80c480ff), null); 301 } 302 } 303 break; 304 } 305 } 306 /* 307 * if ((zoom >= 12) && is_type("anchorage")) { 308 symbol("anchorage"); 309 if ((zoom >= 15) && (has_item_attribute("name"))) 310 text(item_attribute("name"), "font-family:Arial; font-weight:bold; font-size:80; text-anchor:middle", 0, -90); 311 if ((zoom >= 12) && (is_area)) line_symbols("restricted_line", 0.5, "line_anchor", 10); 312 } 313 if ((zoom >= 16) && is_type("anchor_berth")) symbol("anchor_berth"); 314 if ((zoom >= 12) && is_type("harbour")) { 315 if (has_attribute("category")) { 316 attribute_switch("category") 317 attribute_case("marina|yacht") symbol("marina"); 318 attribute_case("marina_no_facilities") symbol("marina_nf"); 319 attribute_default symbol("harbour"); 320 end_switch 321 } else symbol("harbour"); 322 if ((zoom >= 15) && (has_item_attribute("name"))) 323 text(item_attribute("name"), "font-family:Arial; font-weight:bold; font-size:80; text-anchor:middle", 0, -90); 324 } 325 326 */ 294 327 private static void locks(Feature feature) { 295 328 }
Note:
See TracChangeset
for help on using the changeset viewer.
