Marcelo, Thanks for your prompt reply! I was actually hoping there would be a work around to getting additional API keys so that I wouldn't have to have my client apply for more keys. However, if that's the way - so be it!
Thanks On Dec 7, 11:30 am, Marcelo <[email protected]> wrote: > Forhttp://www.realsite.com/myMap.htmlget a key forhttp://realsite.com > Forhttp://dev/myMap.htmlget a key forhttp://dev > In this last case you'd need to create a network name for 'dev' by > adding it to your hosts file, as well as a virtual host called 'dev' > in your web server configuration. > Then you can put your API key in a separate file for each server, and > load it dynamically, so you create your key file once for each server, > and forget about it. All the maps on my site use this method. (See how > they load the key from the file key.js) > > -- > Marcelo -http://maps.forum.nu > -- > > On Dec 7, 5:12 pm, Marcella <[email protected]> wrote: > > > I saw another question posted in 2007 which asked this same question > > but with no reply. How are folks using their key in test environments > > which have a different domain than the production domain used to apply > > for the API key? > > > We seem to be able to test OK locally using localhost, but when we > > move the code into DEV and TEST environments, the domains change and > > we get API key errors. > > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
