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(); }
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)); }