Is it posible change the API key for Google Maps JS V3 at runtime?

But It must be done even without reloading the page. Only using JavaScript.

We have a webapp using angularJS single page.

This app use a dropdown with diferents clients and each client offer a Google map for positioning differents shops. Each client is billing its own API KEY so they are diferent.

When a user select in the dropdown one of these clients a map with its own client API KEY must be reloaded without reload page.

Is it posible or it is necessary to reload the entire page with the new API key.

Excuse me, I'm a little lost and at least if it is not possible I need to discard this solution and take other ways of doing this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.