Open dieruckus opened 2 years ago
set enableSearchBar = '1' - not true
<?= $form->field($model, 'coordinates')->widget( 'kolyunya\yii2\widgets\MapInputWidget', [ 'key' => Yii::$app->params['googleMapApi_Key'], 'latitude' => $model->latitude ?? '24.7136', 'longitude' => $model->longitude ?? '46.6753', 'zoom' => 13, 'height' => '420px', 'animateMarker' => '1', 'enableSearchBar' => '1', 'alignMapCenter' => '1' ] ); ?>
================================================= if not working and need work around
$(document).ready(function() { // to appear map search input appearMapSearchInput(); });
function appearMapSearchInput(){ setTimeout(function() { $('.kolyunya-map-input-widget-search-bar').attr('hidden', false); }, 1000); }
subj