Changeset 32329 in osm for applications/editors/josm/plugins/waypoint_search/src/org
- Timestamp:
- 2016-06-19T16:08:56+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch/Engine.java
r30777 r32329 18 18 if (gpxLayersExist()) { 19 19 //Loop over marker (waypoint) layers.. it could be more than one 20 for (Iterator<MarkerLayer> it = Main. map.mapView.getLayersOfType(MarkerLayer.class).iterator(); it.hasNext();) {20 for (Iterator<MarkerLayer> it = Main.getLayerManager().getLayersOfType(MarkerLayer.class).iterator(); it.hasNext();) { 21 21 //loop over each marker (waypoint) 22 22 for (Iterator<Marker> markerIterator = it.next().data.iterator(); markerIterator.hasNext();) { … … 32 32 33 33 static boolean gpxLayersExist() { 34 return Main.map != null && Main.map.mapView.hasLayers() && !Main.map.mapView.getLayersOfType(MarkerLayer.class).isEmpty();34 return !Main.getLayerManager().getLayersOfType(MarkerLayer.class).isEmpty(); 35 35 } 36 36 }
Note:
See TracChangeset
for help on using the changeset viewer.