<?php echo $form->field($company,'dot_com_coordinates')->widget(
'kolyunya\yii2\widgets\MapInputWidget',
[
// Google maps browser key.
'key' => $key,
// Initial map center latitude. Used only when the input has no value.
// Otherwise the input value latitude will be used as map center.
// Defaults to 0.
'latitude' => $company->dot_com_latitude,
// Initial map center longitude. Used only when the input has no value.
// Otherwise the input value longitude will be used as map center.
// Defaults to 0.
'longitude' => $company->dot_com_longitude,
// Initial map zoom.
// Defaults to 0.
'zoom' => 12,
// Map container width.
// Defaults to '100%'.
//'width' => '420px',
// Map container height.
// Defaults to '300px'.
'height' => '420px',
// Coordinates representation pattern. Will be use to construct a value of an actual input.
// Will also be used to parse an input value to show the initial input value on the map.
// You can use two macro-variables: '%latitude%' and '%longitude%'.
// Defaults to '(%latitude%,%longitude%)'.
//'pattern' => '[%longitude%-%latitude%]',
// Google map type. See official Google maps reference for details.
// Defaults to 'roadmap'
//'mapType' => 'satellite',
]
This is my widget, took it straight from your example, I set up the api key (removed it for privacy) and set it up like this. But no matter what I do, it will always start at the 0,0 positions and not the one I defined.