Package org.openstreetmap.josm.gui.layer

Examples of org.openstreetmap.josm.gui.layer.MyGpxLayer


              return null;
            }
            view.zoomTo(Main.proj.latlon2eastNorth(new LatLon(h
                .getPosY(), h.getPosX())), view.getScale());
          } else if (selectedItem instanceof GpxLayer) {
            MyGpxLayer r = (MyGpxLayer) selectedItem;
            if (r == null || r.getLatLon() == null) {
              return null;
            }

            view.zoomTo(Main.proj.latlon2eastNorth(r.getLatLon()),
                view.getScale());
          }
        }
        return null;
      }
View Full Code Here


      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);
View Full Code Here

    try {
      if (!importer.acceptFile(file)) {
        new IOException("Gpx inaccesible.");
      }
      importer.importData(file);
      layer = new MyGpxLayer(importer.getLastData(),
          file.getAbsolutePath(), true, this.mapView);
      layer.name = name;
      addCapa(layer);
    } catch (Throwable t) {
      log.error("Error al cargar la capa", t);
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.gui.layer.MyGpxLayer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.