Skip to content

JSONP broken #321

Closed
Closed
@svbatalov

Description

@svbatalov

Hello.

I query OSM Nominatim API via JSONP callback. Few months ago it stopped working -- whenever I try to search something, the following error is thrown:

Uncaught TypeError: L.Control.Search.callJsonp is not a function

After some investigation it turns out that recent versions call _retrieveData directly instead of using this._retrieveData.call(...), as it was before. So instead of 2 arguments (inputText and callback) the function is called with three, so inputText = this and callback = inputText.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions