On Apr 30, 5:38 pm, Jonathan Casanova <[email protected]> wrote: > Good, > > I'm trying to include a google map on my website. The idea is > enter through an option in the public portal of the company > the application will be hosted on an internal server. > > I created a key with the domain of the company (http://miempresa- > cr.com), but always presents me the following message: > > "The website needs a different key from the Google Maps API. > You can generate a new key in ...". > > My script is as follows: > > <Script src = "http://maps.google.com/maps? > file = api & v = 2 & sensor = false & key = ABQIAAAAhpmCWEMEnt- > dZl3HBNkFCxTyMa75NEVh58QSK6U4EvTSfl8fkBT_Rm15VSSbDaWt4pdrIYM0HPmKnQ " > type = "text / javascript"> </ script> "
If you really have spaces like that, it will always fail. You shouldn't have any spaces in the "http...KnQ" string, or in "text/ javascript". > It also adds the following warning, in order to identify the > correct domain with which I generate the key and what I presented > is the internal IP address of the server where I have hosted the > application (10.1.2.138:2026): > > "Alert (window.location.host);" > > It is noteworthy that the map if I can see it in runtime > the application from Visual Studio 2008 If you access your map page using a 10/8 address, it won't work. The free API will not work where the page can be positively identified as running on a private network. Note that your production map must be publicly accessible. While you can protect it with a login, you must provide a login free to anyone who asks for it. If you can't satisfy the access condition, you must not use the free API; you need a Premier licence which will work anywhere. What is the public URL to your map? -- 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.
