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.
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:
After some investigation it turns out that recent versions call
_retrieveDatadirectly instead of usingthis._retrieveData.call(...), as it was before. So instead of 2 arguments (inputText and callback) the function is called with three, soinputText = thisandcallback = inputText.