Exemplo n.º 1
0
  private void showPressed() {

    FilePlacement placement = preparePlacement();
    if (placement == null) {
      return;
    }

    // zoom to new location
    Main.map.mapView.zoomTo(placement.getWorldBounds(this.data));
    Main.map.repaint();
  }
Exemplo n.º 2
0
 private void placeLayer(OsmDataLayer _layer, FilePlacement placement) {
   this.removeLayer();
   this.layer = _layer;
   Main.main.addLayer(this.layer);
   Main.map.mapView.zoomTo(placement.getWorldBounds(this.data));
 }