});
return cargar;
}
private void cargarGpx(File file) throws IOException {
GpxImporter importer = new GpxImporter();
if (!importer.acceptFile(file)) {
new IOException("Gpx inaccesible.");
}
final String absolutePath = file.getAbsolutePath();
for (Layer l : capasActuales) {
if (l.name.equals(file.getAbsolutePath()))
return;
}
importer.importData(file);
GpxLayer layer = new MyGpxLayer(importer.getLastData(), absolutePath,
this.mapView);
Main.pref.putColor("layer " + layer.name,
Color.decode(LogicConstants.getNextColor()));
addCapa(layer);