Using MapSuite 9.0.0.180 for MVC. I have loaded multiple background maps into my project (Google/Bing/OpenStreetMap) and everything runs well on my local machine. Howerver, when I upload the project to the server the Google maps will not load and actually crashes the program. What could be causing this error. Below is the client side code.
@{
Html.ThinkGeo().Map(Model)
.MapUnit(GeographyUnit.Meter)
.CustomOverlays(overlays =>
{
overlays.GoogleOverlay("GoogleSatellite").GoogleMapType(GoogleMapType.Satellite).Name("Google - Satellite");
overlays.GoogleOverlay("GoogleRoad").GoogleMapType(GoogleMapType.Normal).Name("Google - Road");
overlays.GoogleOverlay("GoogleHybrid").GoogleMapType(GoogleMapType.Hybrid).Name("Google - Hybrid");
overlays.GoogleOverlay("GooglePhysical").GoogleMapType(GoogleMapType.Physical).Name("Google - Terrain");
overlays.BingMapsOverlay("BingAerial").MapType(BingMapsStyle.Aerial).Name("Bing - Aerial");
overlays.BingMapsOverlay("BingRoad").MapType(BingMapsStyle.Road).Name("Bing - Road");
overlays.BingMapsOverlay("BingHybrid").MapType(BingMapsStyle.Hybrid).Name("Bing - Hybrid");
overlays.OpenStreetMapOverlay("OpenStreetMaps").Name("OpenStreetMaps");
})
.OnClientClick("mapClick")
.Render();
}