Hi Ethan,
Thanks for your reply. I tried a simple sample application to display a Google map. But i am getting following error
But i have used my own Google API key . my code is follows
Main.aspx.cs
public partial class Main : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
wfMap.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));
wfMap.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
wfMap.MapUnit = GeographyUnit.Meter;
wfMap.MapTools.OverlaySwitcher.Enabled = true;
wfMap.MapTools.MouseCoordinate.Enabled = true;
GoogleOverlay google = new GoogleOverlay(“Google Map”);
google.JavaScriptLibraryUri = new Uri(ConfigurationManager.AppSettings[“GoogleUriV3”]);
google.GoogleMapType = GoogleMapType.Satellite;
wfMap.CustomOverlays.Add(google);
}
}
}
Main.aspx
<Thinkgeo:Map ID="wfMap" Height="100%" Width="100%" runat="server"></Thinkgeo:Map>
web.config
<add key="GoogleUri" value="http://maps.google.com/maps?file=api&v=2&key=AIzaSyCawjb1Oy2hxkGIeH91o7WmUrf9OnNJnoA;sensor=false"/>
<add key="GoogleUriV3" value="http://maps.google.com/maps/api/js?v=3.5&sensor=false"/>
<add key="VEUri" value="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"/>
<add key="BingMapsUri" value="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"/>
<!--<add key="LogFileForWebEdition" value="D:\temp\LogFileForWebEdition.txt"/>-->
Thank you