Gmaps Pro for Joomla - This web site needs a different Google Maps API key. A new key can be generated at http://code.google.com/apis/maps/

My Joomla site is using Gmaps pro. The owner recently wanted to change domains from midohiosurgical.com to cosadocs.com. I added cosadocs.com as a co-domain. Everything works fine except for my google maps api key, whick now gives me the error:

This web site needs a different Google Maps API key. A new key can be generated at http://code.google.com/apis/maps/

In my gmaps pro configuration I have added api keys for midohiosurgical.com, cosadocs.com and www.cosadocs.com, but only midohiosurgical.com work for the maps. I'm guessing that this is because cosadocs.com is not the primary domain, so when the API key is sent it still appears to be coming from midohiosurgical.com.

Could someone a little more familiar with Google Maps api help me figure out what I need to do? The two sites are below, both are on the server.

Thanks

http://www.midohiosurgical.com/index.php?option=com_content&view=article&id=77&Itemid=132

http://www.cosadocs.com/index.php?option=com_content&view=article&id=77&Itemid=132
LVL 4
elliottbenzleAsked:
Who is Participating?
 
Amar BardoliwalaCommented:
Hello,

I checked source code for both of your urls. It seems that in both sites(urls) same key is used for google maps.

Following is key I found in your source code

key=ABQIAAAA7etYk-RkR137pIi3UL16axTspyoFg2AOozAwunl_LIHlURVuMhRLVUPCCSiZhAxVtisU4FdqiQcMOQ

Actually for site with url cosadocs, you should put different key(Generate new key if you have not generated it for cosadocs domain). You will need to do it dynamically depending on domain name entered by user. You will need to handle it by putting conditions to check domain and put appropriate key for the same.

Hope this helps.

Thanks
0
 
elliottbenzleAuthor Commented:
Thanks, gmaps wasn't picking up on the different urls
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.