Kolyunya / yii2-map-input-widget

A Yii2 input widget which provides a user-friendly interface for selecting geographical coordinates via Google maps. Allows users to select geographical coordinates by clicking on an interative Google map embedded into your web-page. Also allows users to type in a place name to search for it via Google Places API.
http://kolyunya.github.io/yii2-map-input-widget/
GNU General Public License v3.0
28 stars 24 forks source link

Is there a possibility to add a searchbar to the map? #5

Closed therealjg closed 8 years ago

therealjg commented 10 years ago

Is there any simple possibility to add a searchbar to the map?

Like in this example: https://developers.google.com/maps/documentation/javascript/examples/places-searchbox

Searching only with the cursor is horrible and i've no idea how to implement that example into your widget.

Thanks :)

Kolyunya commented 10 years ago

@HannibalSmith13 since you know your map's id you can do pretty much everything you want with it. You will need to create a div element for the search bar via JavaScript dynamically. The rest is described on the page a link to which you provided.

Also I will think of adding this functionality to the widget core. Thank you for the idea.

maxxer commented 9 years ago

@HannibalSmith13 did you ever implement this? I need it too. thanks

Kolyunya commented 8 years ago

Implemented in 7b0dcf9cfa5468c231927b4208cfb40956117c2a.