Google map question

Associate
Joined
21 Oct 2008
Posts
1,679
Location
Mooching... in your house
right... as everyone knows, a google API key is required to run a map and it has to be run on the correct domain.

so, this follows you wont be able to run it locally for development. so in the past while developing the maps i work online, however, i've just loaded up a site locally and the map works fine :confused:

could anyone shed some light on what you can and can't do with regards to this so it would be better for future development reference?
 
When I used the API, I registered a key for http://localhost/ and didn't have any problems getting it to work locally.

All you need to do is register another key that has the domain/URL for the live version of the site and use that on the uploaded version of the site.
 
Yes, that ^^

You can register as many keys as you like. eg, we have our local development server setup running virtual hosts under a local domain called dev.com, so we have keys for domains like sitename.dev.com, anothersitename.dev.com etc
 
Back
Top Bottom