Specify the center point and search radius for geographical queries.
bower i -S geo-query-input # Polymer 2.0 hybrid (1.x compatible)
bower i -S geo-query-input#^0.3 # Polymer 1.x based
- Bind to the
query
property. - Supply a Google Maps API key (will be optional in the future)
<geo-query-input query="{{query}}" api-key="AIzaSyAUPOaJubJnaRTPUd_xX8MOA62gRtSlfCc"></geo-query-input>
<div>lat: [[query.lat]]</div>
<div>lng: [[query.lng]]</div>
<div>radiusKm: [[query.radiusKm]]</div>
<div>fromSearch: [[query.fromSearch]]</div>
<div>valid: [[query.valid]]</div>
Full demo: webcomponents.org | github.
API: webcomponents.org | github.
- Fork it on Github.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request