Hi I have a problem with the key of GMAPS API. It occurs when I try to select the G_SATELLITE_3D_MAP with the Google Earth plugin. I'm testing it in localhost. I have a php page with a GMAPS API MAP using AJAX. I can use GoogleEarth maptype and everything works fine:
This is code:---------------------------------------------------------------------------------- <script type="text/javascript" src="http://www.google.com/jsapi? key=ABC"></script> google.load("maps", "2", {"callback" : initialize}); function initialize() { if (GBrowserIsCompatible()) { var map = new google.maps.Map2(document.getElementById("mapa")); map.setCenter(new google.maps.LatLng(42.33989,-7.866), 13); map.addMapType(G_SATELLITE_3D_MAP); map.addControl(new google.maps.HierarchicalMapTypeControl ()); } } google.setOnLoadCallback(initialize); The problem occurs when I try to load this page into the <div> of other page using AJAX and prototype. <script type="text/javascript" src="ajax.js"></script> <script type="text/javascript" src="prototype.js"></script> <script type="text/javascript" src="http://www.google.com/jsapi? key=ABC?return=prototype.js"></script> The map and the whole page works fine when loading into the Div but when I try to change to G_SATELLITE_3D_MAP mode, it displays a message in the map saying that the GoogleMaps API Key used in this host was registered to other host and advice me to generate a new API key, it only occurs when I load the page into the div of other page, not when I load the page directly in the browser. Is there a bug, or what I'm doing wrong? Regards. Javier --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
