- globalmapper.SetOrientation(float aOrientation) GM_Error_t32
Allows for drawing data with a direction other than north to the top of the screen for most projections. A value of 0.0 is the default and implies no rotation. Technically, the orientation value is the number of degrees to rotate the rendered data counter-clockwise.
- Parameters:
aOrientation (float) – Orientation of bitmap (0 is north up, 90 is east up, 180 is south up, 270 is west up)
- Returns:
Error Code
- Return type:
GM_Error_t32
Example
The following is an example of SetOrientation.
import globalmapper as gm
orig = gm.GetOrientation()
### START SAMPLE
err_SetOrientation = gm.SetOrientation(90)
### END SAMPLE
err_reset = gm.SetOrientation(orig)
assert (
gm.GM_Error_None == err_SetOrientation
), f"SetOrientation: Expected {gm.GM_Error_None}, got {err_SetOrientation}"