Add support for the keys_api module

litrik - June 27, 2008 - 11:36
Project:Google Maps location
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

Currently you must change the Google Maps API key when you move a site from http://localhost/ to http://www.example.com/

If this module would support the keys_api module you wouldn't have to do anything at all. See http://drupal.org/project/keys_api

#1

TBarregren - January 1, 2009 - 23:33

+1

Keys API has change name to Keys: http://drupal.org/project/keys.

#2

dbabbage - February 16, 2009 - 04:02

If you use local domain routing on your development machine—so that even during development on your local machine you are still browsing to http://www.example.com/—this issue does not occur and you can use the same API key during development and deployment. For a whole range of reasons, anyone who is developing on http://localhost/ should certainly look into this... see VirtualHostX or MAMP Pro on the Mac, similar products on other platforms.

If there is still interest in this feature, I may look at implementing it as being optionally supported if the Keys module is installed... However, at this point new features will only be added to the Google Maps location 6.x-2.x-dev branch (to be created), so unless someone else chooses to backport it this will not be available on 5.x sorry.

#3

dbabbage - February 16, 2009 - 04:18
Status:active» closed

In fact, Google states that if you are surfing from http://localhost you do not need a Google Maps API key. The only exception to this appears to be if you are using a specific port number locally, such as http://localhost:1234 for development—in that case you need to apply for a key.

Since in the latter case I can't see that you'd want to ship out to your client a database installed with your custom localhost development key, I can't see there is a problem here. On that basis, I can't see much point in adding Keys module support—the whole purpose to this module is to be a simple alternative to the more complex options for a basic use case.

At this point therefore I'm going to close this issue. Feel free to re-open if you have additional information that might change the balance of the discussion.

#5

Carlos Miranda Levy - April 6, 2009 - 11:19
Status:closed» active

keys support allows google maps to work for domains with and without the www. on the domain name.

#6

dbabbage - July 18, 2009 - 09:38
Version:5.x-1.0» 6.x-2.x-dev
Status:active» postponed

Well... maybe one day. But almost certainly only in 6.x-2.x and above.

 
 

Drupal is a registered trademark of Dries Buytaert.