resetPanOffset method
void
resetPanOffset()
Resets the pan offset to center the globe in the view. This is useful after using zoom-to-cursor to return to the default centered position.
Example usage:
controller.resetPanOffset();
Implementation
void resetPanOffset() {
panOffsetX = 0.0;
panOffsetY = 0.0;
notifyListeners();
}