- globalmapper.GetLastDrawnMapBounds() GM_Error_t32, GM_Rectangle_t, GM_PixelRect_t
-
Gets the most recently drawn map bounds (only supported in Global Mapper Extension SDK)
- Returns:
-
Error Code
- Return type:
-
GM_Error_t32
- Returns:
-
World bounds of last drawn view
- Return type:
- Returns:
-
Pixel bounds of last drawn view
- Return type:
Example
The following is an example of GetLastDrawnMapBounds.
import globalmapper as gm
### START SAMPLE
err_GetLastDrawnMapBounds, rect, pixel_rect = gm.GetLastDrawnMapBounds()
### END SAMPLE
assert (
gm.GM_Error_None == err_GetLastDrawnMapBounds
), f"GetLastDrawnMapBounds: Expected {gm.GM_Error_None}, got {err_GetLastDrawnMapBounds}"