I am using MVC Edition
to add StaticOverlay
- @{Html.ThinkGeo().Map(“Map1”, new System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Percentage), 500)
- .MapBackground(new BackgroundLayer(new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF"))))
- .MapUnit(GeographyUnit.Meter)
.CurrentExtent(6643042.96358, 4644924.705353, 8355232.396930, 3421932.252960) - .StaticOverlay(overlay =>
- {
- GdiPlusRasterLayer gdiPlusRasterLayer = new GdiPlusRasterLayer(Server.MapPath(@"~\App_Data\World.tif"));
gdiPlusRasterLayer.UpperThreshold = double.MaxValue;
gdiPlusRasterLayer.LowerThreshold = 0;
overlay.Layer(gdiPlusRasterLayer ); - }
- ).Render();}
When i change .MapUnit(GeographyUnit.Meter) I cant’s see the image for World.tif Can you please help me where i got wrong