Ignore:
Timestamp:
2008-04-17T03:03:28+02:00 (16 years ago)
Author:
framm
Message:
  • new extrude mode allows creation of rectangular shapes
  • new AlignInRectangle function
  • additional information in status bar about length, heading, and angle of segment being drawn
  • helper line from last node to mouse cursor (disable with edit.helper-line=false)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapScaler.java

    r588 r608  
    1 // License: GPL. Copyright 2007 by Immanuel Scholz and others
     1// License: GPL. See LICENSE file for details.
     2
    23package org.openstreetmap.josm.gui;
    34
     
    2829                LatLon ll1 = mv.getLatLon(0,0);
    2930                LatLon ll2 = mv.getLatLon(100,0);
    30                 int dist = ll1.distance(ll2);
    31                 String text = dist > 1000 ? (Math.round(dist/100)/10.0)+"km" : dist+"m";
     31                double dist = ll1.greatCircleDistance(ll2);
     32                String text = dist > 1000 ? (Math.round(dist/100)/10.0)+"km" : Math.round(dist*10)/10+"m";
    3233                Rectangle2D bound = g.getFontMetrics().getStringBounds(text, g);
    3334                g.setColor(ColorHelper.html2color(Main.pref.get("color.scale", "#ffffff")));
Note: See TracChangeset for help on using the changeset viewer.