/** * Set the position of the map to the indicated position. If "fly" is true, the map will animate * from the current position to the indicated position, otherwise it will jump there immediately. * * @param pos - desired destination position * @param fly - fly if true, jump if false */ public void setPosition(Position pos, boolean fly) { View mapView = getWWD().getView(); if (mapView.isAnimating()) { mapView.stopAnimations(); } if (fly) { mapView.goTo(pos, pos.getAltitude()); } else { mapView.setEyePosition(pos); getWWD().redraw(); } }