Hi guys,
For the issue at gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/28/aft/6758/afv/topic/Default.aspx, I checked every shape file we're using and it threw the SilverlightMapConnector AG_E_NETWORK_ERROR error on one of them (Streets). So I'm assuming the shape file itself is corrupt. I'm not getting any errors for the other shape files I'm using.
Now, I'm trying to load the labels on the map for the other layers. But it's throwing the same error for every shape file I try to load the labels for. I'm using the code following code:
ShapeFileFeatureLayer countryLabelLayer = new ShapeFileFeatureLayer(MapPath("~/app_data/cntry02.shp")) { DrawingMarginPercentage = 100 };
countryLabelLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Country1("CNTRY_NAME");
countryLabelLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.TextLineSegmentRatio = 2;
countryLabelLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle.HaloPen = new GeoPen(new GeoColor(150, 255, 255, 255));
countryLabelLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
The same code in the demo solution works fine. I've been banging my head against a brick wall all day but still can't find a reason as to why id doesn't work in my solution. I would appreciate any help from you guys.
Thanks,
Nirish