Changeset 30024 in osm for applications/editors/josm/plugins/smed2/src/smed2
- Timestamp:
- 2013-10-14T18:04:01+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/smed2/MapImage.java
r29286 r30024 10 10 package smed2; 11 11 12 import java.awt.BasicStroke; 12 13 import java.awt.Color; 13 14 import java.awt.Font; … … 74 75 public void paint(Graphics2D g2, MapView mv, Bounds bb) { 75 76 Rectangle rect = Main.map.mapView.getBounds(); 76 // 77 // 77 // g2.setBackground(new Color(0xb5d0d0)); 78 // g2.clearRect(rect.x, rect.y, rect.width, rect.height); 78 79 g2.setPaint(Color.black); 79 80 g2.setFont(new Font("Arial", Font.BOLD, 20)); … … 99 100 return (Double) Main.map.mapView.getPoint2D(new LatLon(Math.toDegrees(coord.lat), Math.toDegrees(coord.lon))); 100 101 } 102 103 public double mile(Feature feature) { 104 return Math.pow(2, zoom) * 256 / (21600 * Math.abs(Math.cos(feature.centre.lat))); 105 } 101 106 }
Note:
See TracChangeset
for help on using the changeset viewer.