Код заканчивается такой функцией и кодом
function savecoordinats (){
var new_coords = [coords[0].toFixed(4), coords[1].toFixed(4)];
myPlacemark.getOverlaySync().getData().geometry.setCoordinates(new_coords);
document.getElementById("latlongmet").value = new_coords;
document.getElementById("mapzoom").value = myMap.getZoom();
var center = myMap.getCenter();
var new_center = [center[0].toFixed(4), center[1].toFixed(4)];
document.getElementById("latlongcenter").value = new_center;
}
<div id="map"></div>
<div id="coord_form">
<p><label>Координаты метки: </label><input id="latlongmet" class="form-control" name="icon_text" /><br/>
<label>Масштаб: </label><input id="mapzoom" class="form-control" name="icon_text" /></p>
<p><label>Центр карты: </label><input id="latlongcenter" class="form-control" name="icon_text" /></p>
</div>
id="latlongmet" имеет вид 56.3224,44.0061
Как эту переменную передать в ActiveForm
$form->field($model, 'map')->textInput(['maxlength' => true])
?