Skip to content

Multiple osm_tags #25

Description

@DevSooop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions