Ignore:
Timestamp:
2013-10-14T18:04:01+02:00 (11 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/smed2/MapImage.java

    r29286 r30024  
    1010package smed2;
    1111
     12import java.awt.BasicStroke;
    1213import java.awt.Color;
    1314import java.awt.Font;
     
    7475        public void paint(Graphics2D g2, MapView mv, Bounds bb) {
    7576                Rectangle rect = Main.map.mapView.getBounds();
    76 //              g2.setBackground(new Color(0xb5d0d0));
    77 //              g2.clearRect(rect.x, rect.y, rect.width, rect.height);
     77//      g2.setBackground(new Color(0xb5d0d0));
     78//      g2.clearRect(rect.x, rect.y, rect.width, rect.height);
    7879                g2.setPaint(Color.black);
    7980                g2.setFont(new Font("Arial", Font.BOLD, 20));
     
    99100                return (Double) Main.map.mapView.getPoint2D(new LatLon(Math.toDegrees(coord.lat), Math.toDegrees(coord.lon)));
    100101        }
     102
     103        public double mile(Feature feature) {
     104                return Math.pow(2, zoom) * 256 / (21600 * Math.abs(Math.cos(feature.centre.lat)));
     105        }
    101106}
Note: See TracChangeset for help on using the changeset viewer.