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

Multiple osm_tags #25

Open
DevSooop opened this issue Aug 22, 2018 · 0 comments
Open

Multiple osm_tags #25

DevSooop opened this issue Aug 22, 2018 · 0 comments

Comments

@DevSooop
Copy link

Hello,
I would like to use osm_tags parameter and be able to define multiple tags but the problem is that photon is not designed to take an array as a parameter or to split string with multiple parameters.
leaflet.photon.js line 38 --> modifying buildQueryString function should do the trick.
Any official solution arround ?

if (params[key] && (typeof(params[key]) == 'string' || typeof(params[key]) == 'number')) {
queryString.push(encodeURIComponent(key) + '=' + params[key]);
} else if (params[key] && params[key].length) {
for (i = 0; i < params[key].length; i++) {
queryString.push(encodeURIComponent(key) + '=' + params[key][i]);
}
}

is the workaround found but could be improved

Sincerely

@lonvia lonvia transferred this issue from komoot/photon Feb 17, 2021
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

1 participant