Hi, we are currently testing if the MapSuite Web Edition meets our needs, but I'm already having some problems from step 1.
I have the samples up and running, and I was trying to get the UseGoogleMaps sample running from my own proof of concept solution file.
So I made a new page with the map (like the sample), and tried to add a google maps layer to it:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
map.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"));
map.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
map.MapUnit = GeographyUnit.Meter;
map.MapTools.OverlaySwitcher.Enabled = true;
map.MapTools.MouseCoordinate.Enabled = true;
GoogleOverlay google = new GoogleOverlay("Google Map");
google.JavaScriptLibraryUri = new Uri(ConfigurationManager.AppSettings["GoogleUri"]);
google.GoogleMapType = GoogleMapType.Normal;
google.IsBaseOverlay = true;
map.CustomOverlays.Add(google);
}
}
I've copied the entire web.config from the samples, just to make sure I have all the necessary config items. (I'll sort those out later)
Now, when I run the page, it just blanks. I have built up a fair understanding of OpenLayers and it would seem that MapSuite either adds no OpenLayers map, or something is wrong in its config. Most likely, I am missing something that is needed on the MapSuite side. A small addition: my ASP.NET knowledge isn't up to speed yet, so maybe I'm just missing something on the ASP side here...
Thanks in advance.
Regards,
Casper Span