bjorn2404 / jQuery-Store-Locator-Plugin

A store locator plugin using Google Maps API version 3
MIT License
495 stars 235 forks source link

"API without a callback is not supported" #289

Closed shpemu closed 1 year ago

shpemu commented 1 year ago

Hi all. What general callback should I use in the API link for this feature? I keep getting the error message, "API without a callback is not supported." Thoughts?

bjorn2404 commented 1 year ago

Google recently (late January) started enforcing this, which is why the console error is appearing. It does not affect functionality but a temporary workaround is to add callback=Function.prototype to the Google Maps API as a query string parameter include such as: https://maps.google.com/maps/api/js?callback=Function.prototype. This just tells the callback to do nothing. I haven't decided yet if I'll make any changes beyond that to actually use the callback.

shpemu commented 1 year ago

I'll give that a try. Thank you!

sm-mdp commented 1 year ago

I meant to reply back. That worked. Thank you!