Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for enterprise Google Maps accounts #3

Merged
merged 3 commits into from
Sep 9, 2015

Conversation

notheotherben
Copy link
Contributor

This PR adds support for enterprise Google Maps which don't use an API key, but instead use a client key and a trusted list of URLs. It also adds the ability (more or less by accident) to specify the version of the Google Maps library you wish to use by providing { key: 'apikey', v: '3.20' } instead of your API key.

Support is implemented in a backwards compatible manner which accepts an object in place of the apikey parameter. This object is mapped to a URI query string using a .map().join() and encodeURIComponent which should be pretty robust and available on most systems.

Allows you to pass `{ client: 'client', channel: 'channel' }` instead of
your API key (as well as providing versions if you wish through `{ key:
'apikey', v: '3.20' }`).
@mikkoh
Copy link
Contributor

mikkoh commented Sep 9, 2015

Sorry I've been on vaca. Thanks for the pull request. I'll merge in and publish to npm.

mikkoh added a commit that referenced this pull request Sep 9, 2015
Add support for enterprise Google Maps accounts
@mikkoh mikkoh merged commit decfa77 into Experience-Monks:master Sep 9, 2015
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants