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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
elliottbenzleAuthor Commented:
Thanks, gmaps wasn't picking up on the different urls
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Joomla

From novice to tech pro — start learning today.