Package org.openstreetmap.gui.jmapviewer

Examples of org.openstreetmap.gui.jmapviewer.MapMarkerDot


  public int getCurrentZoomLevel() {
    return map.getZoom();
  }

  private void addMarkerToLocation(final Coordinate locationChoosen) {
    map.addMapMarker(new MapMarkerDot(locationChoosen.getLat(), locationChoosen.getLon()));
  }
View Full Code Here


    protected void refreshMapView() {
        if (bbox == null) return;

        // calc the screen coordinates for the new selection rectangle
        MapMarkerDot xmin_ymin = new MapMarkerDot(bbox.getMinLat(), bbox.getMinLon());
        MapMarkerDot xmax_ymax = new MapMarkerDot(bbox.getMaxLat(), bbox.getMaxLon());

        List<MapMarker> marker = new ArrayList<>(2);
        marker.add(xmin_ymin);
        marker.add(xmax_ymax);
        mapViewer.setBoundingBox(bbox);
View Full Code Here

        iSelectionRectStart = new Point(Math.min(x1, x2), Math.min(y1, y2));
        iSelectionRectEnd = new Point(Math.max(x1, x2), Math.max(y1, y2));

        // calc the screen coordinates for the new selection rectangle
        MapMarkerDot xmin_ymin = new MapMarkerDot(bbox.getMinLat(), bbox.getMinLon());
        MapMarkerDot xmax_ymax = new MapMarkerDot(bbox.getMaxLat(), bbox.getMaxLon());

        List<MapMarker> marker = new ArrayList<>(2);
        marker.add(xmin_ymin);
        marker.add(xmax_ymax);
        setMapMarkerList(marker);
View Full Code Here

TOP

Related Classes of org.openstreetmap.gui.jmapviewer.MapMarkerDot

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.