Changeset 29202 in osm for applications/editors/josm/plugins/smed2/src/smed2
- Timestamp:
- 2013-01-17T12:08:28+01:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/smed2/src/smed2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/smed2/MapImage.java
r29198 r29202 64 64 public void paint(Graphics2D g2, MapView mv, Bounds bb) { 65 65 Rectangle rect = Main.map.mapView.getBounds(); 66 g2.setBackground(new Color(0xb5d0d0));67 g2.clearRect(rect.x, rect.y, rect.width, rect.height);66 // g2.setBackground(new Color(0xb5d0d0)); 67 // g2.clearRect(rect.x, rect.y, rect.width, rect.height); 68 68 g2.setPaint(Color.black); 69 69 g2.setFont(new Font("Arial", Font.BOLD, 20)); -
applications/editors/josm/plugins/smed2/src/smed2/Smed2Action.java
r29198 r29202 207 207 if (data != null) { 208 208 for (OsmPrimitive osm : data) { 209 if ((osm instanceof Node) || (osm instanceof Way)) { 210 if (osm instanceof Node) { 211 map.addNode(((Node) osm).getUniqueId(), ((Node) osm).getCoor().lat(), ((Node) osm).getCoor().lon()); 212 } else { 213 map.addWay(((Way) osm).getUniqueId()); 214 for (Node node : ((Way) osm).getNodes()) { 215 map.addToWay((node.getUniqueId())); 216 } 217 } 218 for (Entry<String, String> entry : osm.getKeys().entrySet()) { 219 map.addTag(entry.getKey(), entry.getValue()); 220 } 221 map.tagsDone(osm.getUniqueId()); 209 if (osm instanceof Node) { 210 map.addNode(((Node) osm).getUniqueId(), ((Node) osm).getCoor().lat(), ((Node) osm).getCoor().lon()); 211 } else if (osm instanceof Way) { 212 map.addWay(((Way) osm).getUniqueId()); 213 for (Node node : ((Way) osm).getNodes()) { 214 map.addToWay((node.getUniqueId())); 215 } 222 216 } else if ((osm instanceof Relation) && ((Relation) osm).isMultipolygon()) { 223 217 map.addMpoly(((Relation) osm).getUniqueId()); … … 227 221 } 228 222 } 223 for (Entry<String, String> entry : osm.getKeys().entrySet()) { 224 map.addTag(entry.getKey(), entry.getValue()); 225 } 226 map.tagsDone(osm.getUniqueId()); 229 227 } 230 228 }
Note:
See TracChangeset
for help on using the changeset viewer.