Hi Inna,
I guess there are 2 options to support WrappingDateline in SilverlightEdition, one is based on the client side ShaepFileFeatureLayer, while another one is based on the ServerLayerOverlay which works with server side ShapeFileFeatureLayer, can you let us know which one you are would like to have?
Following is the codes on server side:
ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(Server.MapPath("~/App_Data/cntry02.shp"));
worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.FromArgb(100, GeoColor.SimpleColors.Green));
worldLayer.WrapDateline = WrapDatelineMode.WrapDateline;
ServerLayerOverlay layerOverlay = new ServerLayerOverlay("NativeServer");
layerOverlay.Layers.Add(worldLayer);
Following is client side:
LayerOverlay shapefileOverlay = new LayerOverlay();
ShapeFileFeatureLayer layer = new Helper().GetShapeFileLayer("states");//new ShapeFileFeatureLayer(@"…/…/Resource/STATES.SHP");
layer.WrappingMode = WrappingMode.WrapDateline;
layer.Open();
layer.WrappingExtent = layer.GetBoundingBox();
shapefileOverlay.Layers.Add(layer);
Map1.Overlays.Add(shapefileOverlay);
Thanks,
Johnny