/** * Get the current MapPosition. * * @param pos MapPosition to be updated. * @return true iff current position is different from passed position. */ public boolean getMapPosition(MapPosition pos) { boolean changed = (pos.scale != mPos.scale || pos.x != mPos.x || pos.y != mPos.y || pos.bearing != mPos.bearing || pos.tilt != mPos.tilt); pos.bearing = mPos.bearing; pos.tilt = mPos.tilt; pos.x = mPos.x; pos.y = mPos.y; pos.scale = mPos.scale; pos.zoomLevel = FastMath.log2((int) mPos.scale); return changed; }