Changeset 16302 in osm for applications
- Timestamp:
- 2009-07-04T14:21:53+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/piclayer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/piclayer/build.xml
r16290 r16302 81 81 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 82 82 <attribute name="Plugin-Description" value="This plugin allows to display any picture as a background in the editor and align it with the map."/> 83 <attribute name="Plugin-Mainversion" value="172 2"/>83 <attribute name="Plugin-Mainversion" value="1728"/> 84 84 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 85 85 </manifest> -
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.