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

Read address from other input fields #7

Open
zonky2 opened this issue Oct 14, 2020 · 2 comments
Open

Read address from other input fields #7

zonky2 opened this issue Oct 14, 2020 · 2 comments
Assignees

Comments

@zonky2
Copy link

zonky2 commented Oct 14, 2020

Is it possible to configure the widget so that existing input fields are automatically transferred to the search field for the address?

@zonky2
Copy link
Author

zonky2 commented Oct 15, 2020

You have version 1.6.0 from geocoding - new version is 1.13.0 and we can add a query als default string https://github.com/perliedman/leaflet-control-geocoder#options or can set with a method https://github.com/perliedman/leaflet-control-geocoder#methods

@dmolineus
Copy link
Member

A new queryTemplate option for the widget could solve it, where several fields could be used as placeholder:

[
    'eval' => [
        'queryTemplate' => '{street} {streetNumber}, {city}'
    ]
]

Note: as I working on a replacement for the leaflet map, this new feature doesn't have a high priority.

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

No branches or pull requests

2 participants