The Fullscreen control is the control that opens the map in fullscreen mode. By default, this control is not visible. When enabled, it appears near the top right of the map.
First of all, if you want to render a fullscreen control, you will need to build one. So let's go:
use Ivory\GoogleMap\Control\FullscreenControl;
$fullscreenControl = new FullscreenControl();
The fullscreen 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\FullscreenControl;
$fullscreenControl = new FullscreenControl(ControlPosition::TOP_LEFT);
If you want to update the fullscreen control position, you can use:
use Ivory\GoogleMap\Control\ControlPosition;
$fullscreenControl->setPosition(ControlPosition::TOP_RIGHT);
After building your fullscreen control, you need to add it to a map with:
$map->getControlManager()->setFullscreenControl($fullscreenControl);