Package org.openstreetmap.josm.gui.layer.markerlayer

Examples of org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer


    }
  }

  private void updateResources(final LatLon topleft, final LatLon bottomright) {
    MarkerLayer people = null, vehicles = null;
    // tomar las capas vehiculo y persona
    for (Layer l : getAllLayers()) {
      if (l.name.equalsIgnoreCase(getI18n()
          .getString("Resources.resources.people"))) {
        people = (MarkerLayer) l;
View Full Code Here


      vehicles.data = veh;
    }
  }

  private void updateIncidences(final LatLon topleft, final LatLon bottomright) {
    MarkerLayer layer = null;
    // tomar las capas vehiculo y persona
    for (Layer l : getAllLayers()) {
      if (l.name.equals(getI18n().getString("Incidences.incidences"))) {
        layer = (MarkerLayer) l;
        break;
View Full Code Here

        LineElemStyle ls = new LineElemStyle();
        float f = random.nextFloat();
        ls.color = Color
            .getHSBColor(f * random.nextFloat(), 0.9f, 0.9f);
        ls.width = LogicConstants.getInt("PLAN_WAY_WIDTH", 2);
        MarkerLayer stops = new MarkerLayer(new GpxData(), "Stops "
            + id_layer, File.createTempFile("stops", "tmp"),
            new GpxLayer(new GpxData()), this.mapView);
        stops.data.add(new StopMarker(latlon_origin, "origin",
            "tsp_stop", stops, 0, 0, ls.color));
        for (String stop : plan.getStops()) {
View Full Code Here

    this.mapView.addLayer(loadVehiculos());
    this.mapView.addLayer(loadIncidences());
  }

  private Layer loadIncidences() {
    MarkerLayer incidences = null;
    try {
      incidences = new MarkerLayer(new GpxData(),
          i18n.getString("Incidences.incidences"),
          File.createTempFile("incidences", "tmp"), new GpxLayer(
              new GpxData()), this.mapView);
      incidences.visible = Authentication.getUsuario()
          .getIncidenciasVisibles();
View Full Code Here

    }
    return incidences;
  }

  private Layer loadPersonas() {
    MarkerLayer resources = null;
    try {
      resources = new MarkerLayer(new GpxData(),
          i18n.getString("Resources.resources.people"),
          File.createTempFile("layer_res", "tmp"), new GpxLayer(
              new GpxData()), this.mapView);
      resources.visible = Authentication.getUsuario()
          .getPersonasVisibles();
View Full Code Here

    }
    return resources;
  }

  private Layer loadVehiculos() {
    MarkerLayer resources = null;
    try {
      resources = new MarkerLayer(new GpxData(),
          i18n.getString("Resources.resources.vehicles"),
          File.createTempFile("layer_res", "tmp"), new GpxLayer(
              new GpxData()), this.mapView);
      resources.visible = Authentication.getUsuario()
          .getVehiculosVisibles();
View Full Code Here

                    if (layer instanceof GpxLayer) {
                        gpxLayer = (GpxLayer) layer;
                    }
                }

                MarkerLayer markerLayer = importData.getMarkerLayer();
                if (markerLayer != null) {
                    markerLayer.fromLayer = gpxLayer;
                }

                return markerLayer;
View Full Code Here

                        namedTrackPoints.waypoints.add(point);
                    }
                }
            }
        }
        MarkerLayer ml = new MarkerLayer(namedTrackPoints, tr("Named Trackpoints from {0}", layer.getName()), layer.getAssociatedFile(), layer);
        if (!ml.data.isEmpty()) {
            Main.main.addLayer(ml);
        }
    }
View Full Code Here

            if (names != null) {
                names += ")";
            } else {
                names = "";
            }
            MarkerLayer ml = new MarkerLayer(new GpxData(), tr("Audio markers from {0}", layer.getName()) + names, layer.getAssociatedFile(), layer);
            double firstStartTime = sel[0].lastModified() / 1000.0 - AudioUtil.getCalibratedDuration(sel[0]);
            Markers m = new Markers();
            for (File file : sel) {
                importAudio(file, ml, firstStartTime, m);
            }
View Full Code Here

                GuiHelper.runInEDT(new Runnable() {
                    @Override
                    public void run() {
                        Main.main.addLayer(gpxLayer);
                        if (Main.pref.getBoolean("marker.makeautomarkers", true)) {
                            MarkerLayer ml = new MarkerLayer(r.data, tr("Markers from {0}", fn), fileFinal, gpxLayer);
                            if (!ml.data.isEmpty()) {
                                Main.main.addLayer(ml);
                            }
                        }
                    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer

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.