The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map.
First of all, if you want to render a rotate control, you will need to build one. So let's go:
use Ivory\GoogleMap\Control\RotateControl;
$rotateControl = new RotateControl();
The rotate control constructor does not require anything but it accepts parameters such as position (default top left):
use Ivory\GoogleMap\Control\ControlPosition;
use Ivory\GoogleMap\Control\RotateControl;
$rotateControl = new RotateControl(ControlPosition::TOP_LEFT);
If you want to update the rotate control position, you can use:
use Ivory\GoogleMap\Control\ControlPosition;
$rotateControl->setPosition(ControlPosition::TOP_RIGHT);
After building your rotate control, you need to add it to a map with:
$map->getControlManager()->setRotateControl($rotateControl);