Other options - Elektromann/yii2-openlayers-maps GitHub Wiki
Box size

By default width is 100% and height is 500px. You can change it by "boxWidth" and "boxHeight" option.
<?= \elektromann\openlayers\Map::widget([
'center' => "London",
'boxWidth' => "400px",
'boxHeight' => "200px",
]); ?>
Map id
It is create automatically but you can set your own map id.
<?= \elektromann\openlayers\Map::widget([
'center' => "London",
'mapId' => "testmap",
]); ?>
Full screen button

Allow a button to switch to full screen. You can see it in the upper right corner.
<?= \elektromann\openlayers\Map::widget([
'center' => "London",
'fullScreenButton' => true,
]); ?>
Zoom

By default zoom is 13.
<?= \elektromann\openlayers\Map::widget([
'center' => "London",
'zoom' => 15,
]); ?>