maptiler / maptiler-client-js

MapTiler APIs wrapper in JavaScript & TypeScript
https://docs.maptiler.com/client-js/
BSD 3-Clause "New" or "Revised" License
15 stars 8 forks source link

Bug: `(new URL(...)).searchParams.get(...) is null` when calling maptilersdk.geocoding.byId(...) #26

Closed toniopelo closed 1 year ago

toniopelo commented 1 year ago

Everything is in the title. This is because when calling byId() function, the apiKey is not set in the URL that is passed to the callFetch function. But the callFetch function requires the api key to be set already.

jonathanlurie commented 1 year ago

Hey @toniopelo , thanks for reporting this! I'll try to fix that quick!

toniopelo commented 1 year ago

@jonathanlurie Hi! I've already published a PR linked to this issue, you can see it mentioned just above your comment. It should fix the problem. You might want to do it another way but it's a very minimal PR you could merge without too much effort. :)