Changeset 31379 in osm for applications
- Timestamp:
- 2015-07-15T16:34:57+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java
r31358 r31379 201 201 super.destroy(); 202 202 } 203 204 /** 205 * Zooms to fit all the {@link MapillaryAbstractImage} icons into the map view. 206 */ 207 public void showAllPictures() { 208 double minLat = 90; 209 double minLon = 180; 210 double maxLat = -90; 211 double maxLon = -180; 212 for (MapillaryAbstractImage img : data.getImages()) { 213 if (img.getLatLon().lat() < minLat) 214 minLat = img.getLatLon().lat(); 215 if (img.getLatLon().lon() < minLon) 216 minLon = img.getLatLon().lon(); 217 if (img.getLatLon().lat() > maxLat) 218 maxLat = img.getLatLon().lat(); 219 if (img.getLatLon().lon() > maxLon) 220 maxLon = img.getLatLon().lon(); 221 } 222 Main.map.mapView.zoomTo(new Bounds(new LatLon(minLat, minLon), new LatLon (maxLat, maxLon))); 223 } 203 224 204 225 /** -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportAction.java
r31378 r31379 154 154 new MapillaryImportedImage(latValue, lonValue, caValue, file)); 155 155 } 156 157 MapillaryLayer.getInstance().showAllPictures(); 156 158 } 157 159 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportIntoSequenceAction.java
r31378 r31379 101 101 joinImages(); 102 102 } 103 104 MapillaryLayer.getInstance().showAllPictures(); 103 105 } 104 106
Note:
See TracChangeset
for help on using the changeset viewer.