You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That the API itself can be successfully loaded with an invalid API key is somewhat by design.
The reason for this is that validation of the key will happen after the API has been loaded (I'm not 100% sure, but I think it will only run the check once you start using the API by e.g. loading a map or creating a service object). This is because the key can be configured to only be allowed to use the geocoding-API for example, so loading a map with that key will result in an error. Another reason is that the key might be restricted to certain paths within the site and that information cannot be determined on the server.
The only thing you can do is define a global function window.gm_authFailure that will get called if the API detects an authentication problem with the key.
Steps to reproduce
even if wrong API_KEY was provided
I can not get the information whether the maps fully loaded or there was an error ( MissingKeyMapError )
The text was updated successfully, but these errors were encountered: