Changeset 16302 in osm for applications/editors/josm/plugins/piclayer/src/org/openstreetmap
- Timestamp:
- 2009-07-04T14:21:53+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerAbstract.java
r16290 r16302 117 117 m_initial_position = m_position = Main.map.mapView.getCenter(); 118 118 // Initial scale at which the image was loaded 119 m_initial_scale = Main.map.mapView.get MapScale();119 m_initial_scale = Main.map.mapView.getDist100Pixel(); 120 120 } else { 121 121 throw new IOException( "Could not find the map object." ); … … 190 190 g.rotate( m_angle * Math.PI / 180.0 ); 191 191 // Scale 192 double scale = m_scale * m_initial_scale / Main.map.mapView.get MapScale();192 double scale = m_scale * m_initial_scale / Main.map.mapView.getDist100Pixel(); 193 193 g.scale( scale, scale ); 194 194
Note:
See TracChangeset
for help on using the changeset viewer.