I have more than one domain all pointing to the same website. When I enter an API key for one domain then I run into problems when I access my site from one of the other domains, complaining that I don't have a google API key for this particular domain name.
This is very restrictive at the moment, because it implies that one can only use one domain name for a website.
Comments
Comment #1
webgeer commentedThis is really an (intentional) limitation of the Google Maps API. A key can only be associated with one domain name.
However, you can get around this by using the settings.php file in the appropriate subdirectory of the sites directory.
set conf['googlemap_api_key'] to the key for that site.
Should solve your problem.
Comment #2
(not verified) commentedComment #3
Anonymous (not verified) commentedThis may be old, but i've come upon this thread because of the same problem...
The easiest solution is to install the module called Keys, where it can store different keys for different domains for you. For example,
key: asdfasdfasdfasdfasdfasdf
domain: mysite.com
key: lkjlkjl;kjl;kjkljhkjhklhkhklh
domain: mysite.co.uk
key: oiuyiuoyoiyiuyoiuyouiy
domain: mysite.org
I just tested it and works like a charm :)