On Apr 13, 4:29 am, "[email protected]" <[email protected]> wrote: > I am using google maps. The map works fine in ie7 and mozilla > (firefox and safari were tested) but with mozilla the following > message is generated. > > "This web site needs a different Google Maps API key. A new key can be > generated athttp://code.google.com/apis/maps/." > > the site ishttp://rentals.vacation-home-rental.ca/. > > The key was generated using vacation-home-rental.ca, but before I even > moved it to a subdomain the problem was the same
You have 2 keys on that page: in js/javascript.js: document.write([ '<script src="http://maps.google.com/maps? file=api&v=2&key=', { 'gtavacationrentals.ca': 'ABQIAAAAKy9Gv4tsrGqXSNkEkAqSUBT6uLQL-eI- VUxmRl644OIQQEprXxTSDQaHAmi3RftF9Pc289HnguVI9A', }[window.location.host], '" type="text/javascript"><\/script>' ].join('')); and in the main page: script src="http://maps.google.com/maps? file=api&v=2&key=ABQIAAAA1Df8MDuhE9ugT1pGy- ulBhSV-4FN47Y64AjNP40Am7GTylQ26hTp3vw0vL-vqI8jUSGSWiOjkpNJoA" type="text/javascript"></script> They are different: ABQIAAAAKy9Gv4tsrGqXSNkEkAqSUBT6uLQL-eI- VUxmRl644OIQQEprXxTSDQaHAmi3RftF9Pc289HnguVI9A ABQIAAAA1Df8MDuhE9ugT1pGy-ulBhSV-4FN47Y64AjNP40Am7GTylQ26hTp3vw0vL- vqI8jUSGSWiOjkpNJoA One works (so I see a map), the other doesn't (so I get the bad key message). Only include the API once and use the correct key there. -- Larry -- 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.
