Changeset 16419 in osm for applications/editors/josm/plugins
- Timestamp:
- 2009-07-09T23:41:51+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JoinAreasAction.java
r16162 r16419 88 88 } 89 89 90 @Override 90 91 public boolean equals(Object other) { 91 92 if (!(other instanceof RelationRole)) return false; … … 119 120 120 121 LinkedList<Bounds> bounds = new LinkedList<Bounds>(); 121 OsmDataLayer dataLayer = Main.ma in.editLayer();122 OsmDataLayer dataLayer = Main.map.mapView.getEditLayer(); 122 123 for (DataSource ds : dataLayer.data.dataSources) { 123 124 if (ds.bounds != null) -
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JumpToAction.java
r16290 r16419 20 20 import org.openstreetmap.josm.actions.JosmAction; 21 21 import org.openstreetmap.josm.data.Bounds; 22 import org.openstreetmap.josm.data.ProjectionBounds; 22 23 import org.openstreetmap.josm.data.coor.LatLon; 23 24 import org.openstreetmap.josm.gui.NavigatableComponent; … … 166 167 double sizex = scale * Main.map.mapView.getWidth(); 167 168 double sizey = scale * Main.map.mapView.getHeight(); 168 for (int zoom = 0; zoom <= 32; zoom++, sizex *= 2, sizey *= 2) 169 if (sizex > NavigatableComponent.world.east() || sizey > NavigatableComponent.world.north()) 169 ProjectionBounds b = Main.proj.getWorldBounds(); 170 for (int zoom = 0; zoom <= 32; zoom++, sizex *= 2, sizey *= 2) { 171 if (sizex > b.max.east() || sizey > b.max.north()) 170 172 return zoom; 173 } 171 174 return 32; 172 175 } -
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java
r16162 r16419 40 40 int ways = 0; 41 41 LinkedList<Bounds> bounds = new LinkedList<Bounds>(); 42 OsmDataLayer dataLayer = Main.ma in.editLayer();42 OsmDataLayer dataLayer = Main.map.mapView.getEditLayer(); 43 43 for (DataSource ds : dataLayer.data.dataSources) { 44 44 if (ds.bounds != null)
Note:
See TracChangeset
for help on using the changeset viewer.