hi i am trying to add river file in my map and display like in water my code is
//ShapeFileFeatureLayer River = new ShapeFileFeatureLayer(MapPath("~/Layer/River.shp"));
ShapeFileFeatureLayer River = new ShapeFileFeatureLayer(MapPath("~/Layer/River.shp"));
River.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
River.DrawingMarginPercentage = 50;
River.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = new TextStyle("NAME1_", new GeoFont("Verdana", 9), new GeoSolidBrush(GeoColor.StandardColors.Black));
River.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.water1;
River.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.HaloPen = new GeoPen(GeoColor.StandardColors.White, 2);
River.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
River.DrawingMarginPercentage = 50;
River.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
River.DrawingMarginPercentage = 50;
but nothing is display in my map why please give me some code how to add river on map like water.
River shapefile display in water but not showing on map
Hi Raja,
1. Please check whether your river is based on area but not line, because you only set DefaultAreaStyle.
2. Please check whether your data under DecimalDegree, it looks you forget set MapUnit.
3. Your code hadn’t set currentExtent, please set correct extent for view your shape.
Regards,
Don
hi Don
first of all i wants to tell you the above code that i mentioned was only i show part of river i did add decimalDegree and also i did add currentExtent
and yes my river is based on area plus length in my river.dbf file. please tell me how should i do to display river like water line thanks
Hi Raja,
If you make sure you had did everything I mentioned, so the shape will be rendered succeed.
If you still cannot see them, please upload a sample for reproduce it, we can help you fix that.
Regards,
Don