I have added the GoogleMaps web part to a page template and I am having some trouble getting it to work properly. This page template is being used to render a custom document type I have created, to which I have added Latitude and Longitude fields, both of type Decimal.
In my page template, this is the markup for the web part:
<uc1:GoogleMaps ID="GoogleMaps1" runat="server"
GoogleMapsKey="ABQIAAAAGTAd5fdgdjMBbtyfxE4qixQQ_Mk-dH522FZHkubuoPKVeHrrqxTjJtIhI-VzyuDNfrasogA7x9BxUg"
Width="500"
Height="400"
Scale="8" />
In my page template code-behind, I am setting the Latitude and Longitude properties in the Page_Load method:
DataRow row = CMSContext.CurrentDocument.DataRow;
GoogleMaps1.Latitude = Convert.ToDouble(row["Latitude"]);
GoogleMaps1.Longitude = Convert.ToDouble(row["Longitude"]);
When the page template renders, the Google Maps widget appears, but it doesn't actually display a map. All I get is a greyed-out area instead of a map, and no errors are thrown.
Here's an image of it:
Any ideas?