When I view a node with a Geomap block underneath I just get the warning message Enter your Google Map Key here even though I've already added my api key.

Comments

jjchinquist’s picture

Assigned: Unassigned » jjchinquist
Status: Active » Postponed (maintainer needs more info)

It could happen if the Domain is different. Did you view the page from a different domain than what was entered on the Admin API page?

merzikain’s picture

I have the same problem.

The difference between the domain the key is for and the domain in the geomaps options is the lack of http://www. in the geomaps domain.

merzikain’s picture

Looks like the problem has something to do with you checking for $_SERVER['HTTP_HOST'] and it not matching the domain you are forcing people to enter on the admin form.

Maybe use str_replace(array('http://','www.'),'',$_SERVER['HTTP_HOST']); instead to make the value of HTTP_HOST match the data that will be entered in the admin form.

After I did that and added some Geo Microformat tags it worked fine.

jjchinquist’s picture

Hello merzikain, do you have a patch?

jjchinquist’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

The 6.x-2.1 version no longer requires google map keys. As a result, this issue becomes obsolete.

yktdan’s picture

Version: 6.x-2.0-rc1 » 7.x-3.1
Issue tags: +Does D7 require the key which no longer exists?

Code should no longer ask for the code.

jjchinquist’s picture

I am opening a new case http://drupal.org/node/1793666.