You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 ?
is the workaround found but could be improved
Sincerely
The text was updated successfully, but these errors were encountered: