Changeset 31194 in osm for applications/editors
- Timestamp:
- 2015-06-03T11:38:58+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java
r31183 r31194 94 94 MapillaryPlugin.setMenuEnabled(MapillaryPlugin.EXPORT_MENU, true); 95 95 download(); 96 Main.map.mapView.setActiveLayer(this); 96 97 } 97 98 -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryPlugin.java
r31185 r31194 33 33 "mapiconselected.png").get(); 34 34 public static final int ICON_SIZE = 24; 35 35 36 36 public static CacheAccess<String, BufferedImageCacheEntry> CACHE; 37 37 … … 56 56 EXPORT_MENU.setEnabled(false); 57 57 try { 58 CACHE = JCSCacheManager.getCache("mapillary", 10, 10000, this.getPluginDir() + "/cache/"); 58 CACHE = JCSCacheManager.getCache("mapillary", 10, 10000, 59 this.getPluginDir() + "/cache/"); 59 60 } catch (IOException e) { 60 61 Main.error(e); … … 70 71 } 71 72 if (oldFrame != null && newFrame == null) { // map frame destroyed 72 MapillaryToggleDialog.de leteInstance();73 MapillaryToggleDialog.destroyInstance(); 73 74 } 74 75 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillarySequence.java
r31170 r31194 14 14 private final List<MapillaryImage> images; 15 15 private String timestamp; 16 private final String key; 16 17 17 public MapillarySequence() { 18 public MapillarySequence(String key) { 18 19 this.images = new ArrayList<>(); 20 this.key = key; 19 21 } 20 22 21 public MapillarySequence(List<MapillaryImage> images) {22 this.images = images;23 }24 23 25 24 /** … … 47 46 public synchronized void add(MapillaryImage image) { 48 47 this.images.add(image); 48 } 49 50 public String getKey() { 51 return this.key; 49 52 } 50 53 … … 115 118 - this.images.indexOf(image2)); 116 119 } 120 121 public boolean equals(MapillarySequence sequence) { 122 return this.getKey() == sequence.getKey(); 123 } 117 124 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryToggleDialog.java
r31185 r31194 82 82 } 83 83 84 public static void de leteInstance() {84 public static void destroyInstance() { 85 85 INSTANCE = null; 86 86 } -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/downloads/MapillarySequenceDownloadThread.java
r31179 r31194 77 77 if (isSequenceWrong) 78 78 break; 79 MapillarySequence sequence = new MapillarySequence(); 79 MapillarySequence sequence = new MapillarySequence(jsonobj.getString("key")); 80 for (MapillaryImage mimage : MapillaryData.getInstance().getImages()) 81 if (mimage.getSequence().getKey() == sequence.getKey()) 82 break; 80 83 int first = -1; 81 84 int last = -1;
Note:
See TracChangeset
for help on using the changeset viewer.