Changeset 16302 in osm for applications


Ignore:
Timestamp:
2009-07-04T14:21:53+02:00 (15 years ago)
Author:
stoecker
Message:

adapted to JOSM 1728

Location:
applications/editors/josm/plugins/piclayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/piclayer/build.xml

    r16290 r16302  
    8181                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    8282                <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="1722"/>
     83                <attribute name="Plugin-Mainversion" value="1728"/>
    8484                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    8585            </manifest>
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerAbstract.java

    r16290 r16302  
    117117            m_initial_position = m_position = Main.map.mapView.getCenter();
    118118            // Initial scale at which the image was loaded
    119             m_initial_scale = Main.map.mapView.getMapScale();
     119            m_initial_scale = Main.map.mapView.getDist100Pixel();
    120120        } else {
    121121            throw new IOException( "Could not find the map object." );
     
    190190            g.rotate( m_angle * Math.PI / 180.0 );
    191191            // Scale
    192             double scale = m_scale * m_initial_scale / Main.map.mapView.getMapScale();
     192            double scale = m_scale * m_initial_scale / Main.map.mapView.getDist100Pixel();
    193193            g.scale( scale, scale );
    194194
Note: See TracChangeset for help on using the changeset viewer.