/** * A position associated with the object that indicates its aggregate geographic position. For a Placemark, this is * simply it's position property. * * @return {@link Placemark#getPosition()} */ @Override public Position getReferencePosition() { return getPosition(); }
Position position = ((Placemark) this.selectedObject).getPosition(); double altitude = position.altitude; if (getWorldWindow().geographicToScreenPoint(position.latitude, position.longitude, 0 /*altitude*/, this.dragRefPt)) {
placemark.setDisplayName(placemark.getPosition().toString());
Position pos = airport.getPosition(); LookAt lookAt = new LookAt().set(pos.latitude, pos.longitude, pos.altitude, WorldWind.ABSOLUTE, 1e5 /*range*/, 0 /*heading*/, 80 /*tilt*/, 0 /*roll*/);