- globalmapper.RecenterMapDisplay(GM_Point_t aCenterPoint) GM_Error_t32
-
Centers the map display at the specified point (only supported in Global Mapper Extension SDK)
- Parameters:
-
aCenterPoint (GM_Point_t) – the new center point for the display in the current projection
- Returns:
-
Error Code
- Return type:
-
GM_Error_t32
Example
The following is an example of RecenterMapDisplay.
import globalmapper as gm
### START SAMPLE
err_RecenterMapDisplay = gm.RecenterMapDisplay(gm.GM_Point_t(0, 0))
### END SAMPLE
assert (
gm.GM_Error_None == err_RecenterMapDisplay
), f"RecenterMapDisplay: Expected {gm.GM_Error_None}, got {err_RecenterMapDisplay}"