Ignore:
Timestamp:
2007-01-08T06:18:17+01:00 (19 years ago)
Author:
imi
Message:
  • added search to toolbar (configurable in preferences)
  • added QuickSearch with geonames access (not finished)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/data/Bounds.java

    r86 r191  
    4040
    4141        /**
     42         * @return Center of the bounding box.
     43         */
     44        public LatLon center() {
     45                // not sure, whether this calculation is right.. maybe there is some
     46                // more complex calculation needed to get a center of a spherical
     47                // dimension?
     48                return new LatLon((min.lat()+max.lat())/2, (min.lon()+max.lon())/2);
     49        }
     50       
     51        /**
    4252         * Extend the bounds if necessary to include the given point.
    4353         */
Note: See TracChangeset for help on using the changeset viewer.