js-api-loader icon indicating copy to clipboard operation
js-api-loader copied to clipboard

Inform about bad keys

Open jpoehnelt opened this issue 3 years ago • 4 comments

Not sure what the implementation should look like. But it would be useful to know if they key is valid or not and allow a different code path in the application.

jpoehnelt avatar Sep 14 '21 20:09 jpoehnelt

Same issue here.

As per the docs:

// Promise
loader
  .load()
  .then((google) => {
    new google.maps.Map(document.getElementById("map"), mapOptions);
  })
  .catch(e => {
    // do something
  });

I'd usually expect that errors from "bad keys" can be caught here. I need such validation logic as I'm letting my users input their own keys for testing purposes.

Is there even a way to validate maps api keys? I have not found anything in the docs.

eegli avatar Sep 21 '21 14:09 eegli

@eegli see #395

jpoehnelt avatar Sep 23 '21 06:09 jpoehnelt

Is any news? @wangela

sgurin avatar Apr 07 '23 12:04 sgurin