pigochu / yii2-jquery-locationpicker

jquery location picker widget for yii2
20 stars 7 forks source link

SearchBox Issue #20

Closed deshario closed 6 years ago

deshario commented 6 years ago

How to update marker after select a place from searchbox ... It's not updating the marker in the map until i not remove inputBinding

'inputBinding' => [ 'latitudeInput' => new JsExpression("$('#us2-lat')"), 'longitudeInput' => new JsExpression("$('#us2-lon')"), 'radiusInput' => new JsExpression("$('#us2-radius')"), 'locationNameInput' => new JsExpression("$('#us2-address')") ],

But if i remove inputBinding .... it works ... Do we need to remove inputBinding to make searchbox works

screenshot 276

pigochu commented 6 years ago

If you don't need inputBinding , you can remove it.

if you need inputBinding , you should remove locationNameInput. because locationNameInput default map to searchbox.