Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchBox does not showing at all #26

Open
dieruckus opened this issue Dec 29, 2021 · 1 comment
Open

SearchBox does not showing at all #26

dieruckus opened this issue Dec 29, 2021 · 1 comment

Comments

@dieruckus
Copy link

subj

@Hammash
Copy link

Hammash commented Dec 10, 2023

set enableSearchBar = '1' - not true

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants