Dear Support Team,
We have developed a map suite web MVC application and then deploy it and run it successifully to a machine running windows 7 32-bit. Now we have moved the application to a producation server running windows server 2008 64-bit. In this deployment the map control is not rendered successfully and therefore the entire map is not visible. On Javascript the following error occurs; “Map1 is undefined” whereas Map1 is the map control from map suite. Below is part of the code where the error occurs
Map rendering part of the code
@Html.ThinkGeo().Map(“Map1”, System.Web.UI.WebControls.Unit.Percentage(100), 700).MapBackground(new BackgroundLayer(new GeoSolidBrush(GeoColor.FromHtml("#ffffff")))).MapUnit(GeographyUnit.Feet).MapTools(tools =>{tools.MouseCoordinateMapTool().Enabled(true);}).CustomOverlays(overlay =>{//Wamis.Layers.MultiGeoRasterLayer multiGeoRasterLayer = new Wamis.Layers.MultiGeoRasterLayer(Model.Controller.GetProperty(“root”) + “Resources/Map/Image/referenceFile.txt”);//multiGeoRasterLayer.Open();overlay.LayerOverlay(“Image”).IsVisible(true).Name(“Image”).IsBaseOverlay(false);overlay.LayerOverlay(“Pipes”).IsVisible(true).Name(“Pipes”).IsBaseOverlay(false);overlay.SimpleMarkerOverlay(“Customer_Point”).IsVisible(true).Name(“Customer_Point”).IsBaseOverlay(false);overlay.LayerOverlay(“ScaleBar”).IsVisible(true).Name(“ScaleBar”).IsBaseOverlay(false);}).Render();
Scripting
<scriptlanguage=“javascript”type=“text/javascript”>function LoadMap(controller, method, args) {///alert(Map1);Map1.ajaxCallAction(’@ViewContext.RouteData.Values[“Controller”].ToString()’, method, { type: “” }, function (result) {var value = result.get_responseData();if (value == ‘’) {alert(“No place is found!”);} else {var bounds = OpenLayers.Bounds.fromString(value, false);Map1.zoomToExtent(bounds, false);}})}
 
      
    
