Hi
Can anyone find the problem with this key below, i get the "not valid
with this site error", i have tried twice this morning generating a
new key, but get the same error all the time, the key is registered
for http://www.gwphillipson.com which is the test server i'm using at
the moment.
It works ok on localhost, so i have no idea why its not working on
this site.
string scriptKey = "GoogleEarth";
if (!ClientScript.IsStartupScriptRegistered(scriptKey))
{
StringBuilder GoogleJavascript = new StringBuilder
();
GoogleJavascript.Append("<script src=\"http://
maps.google.com/maps?
file=api&v=2&key=ABQIAAAAvYuSHWrkXElV_Gd2EEH88xSMPv9gSDs8qhcb9NpWDBHgwbTWyhQN71-5sYK-9TDUHjI4wggql584iw"
+ "\"" + "\n");
GoogleJavascript.Append("type=\"text/javascript\"></
script>" + "\n");
GoogleJavascript.Append("<script type=\"text/javascript
\">" + "\n");
GoogleJavascript.Append("//<![CDATA[\"\n");
GoogleJavascript.Append("function load() {" + "\n");
GoogleJavascript.Append("if (GBrowserIsCompatible()) {" +
"\n");
GoogleJavascript.Append("var map = new GMap2
(document.getElementById(\"map\"))" + "\n");
GoogleJavascript.Append("map.setMapType(G_HYBRID_MAP);" +
"\n");
//GoogleJavascript.Append("map.setCenter(new GLatLng
(52.453889, - 1.748056), 13); " + "\n"); //Using Lat Long Direct
GoogleJavascript.Append("map.setCenter(new GLatLng(" +
strLat.ToString() + ", " + strLog.ToString() + "), 13); " + "\n");
GoogleJavascript.Append("map.addControl(new
GSmallMapControl());" + "\n");
GoogleJavascript.Append("map.addControl(new GMapTypeControl
());" + "\n");
//GoogleJavascript.Append("map.addControl(new GMarker(" +
strLat.ToString() + ", " + strLog.ToString());
//GoogleJavascript.Append("map.addOverlay(GMarker)");
//GoogleJavascript.Append("map.openInfoWindow(map.getCenter
()," + "\n");
//GoogleJavascript.Append("document.createTextNode(\"Use +
To Zoom In\"));" + "\n");
GoogleJavascript.Append("}" + "\n");
GoogleJavascript.Append("}");
GoogleJavascript.Append("//]]>\n");
GoogleJavascript.Append("</script>");
ClientScript.RegisterStartupScript(Type.Missing.GetType(),
scriptKey, GoogleJavascript.ToString());
}
Thanks
George
eorge
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---