for (MarkerLayer l : Main.map.mapView.getLayersOfType(MarkerLayer.class)) {
if (fromLayer != null && l.fromLayer == fromLayer)
return l;
}
return null;
<BUG>}
@Override protected void cancel() {
setCanceled(true);</BUG>
if (reader != null) {
reader.cancel();

for (MarkerLayer l : Main.map.mapView.getLayersOfType(MarkerLayer.class)) {
if (fromLayer != null && l.fromLayer == fromLayer)
return l;
}
return null;
}
@Override
protected void cancel() {
setCanceled(true);
if (reader != null) {
reader.cancel();
