In comparing the World Map Kit demos that come with the decimal degree data vs. spherical mercator, I was wondering why in the decimal degree demo, the sample code uses the MultipleShapeFileFeatureLayer class. However, in the spherical mercator data demo, the code manually adds separate layers for each state:
string[] folders = Directory.GetDirectories(dataFolder + "\\" + StateLayer);
foreach (string folder in folders)
{
string[] files = Directory.GetFiles(folder, "*.shp");
foreach (string file in files)
{
WorldMapKitShapeFileFeatureLayer layer = new WorldMapKitShapeFileFeatureLayer(file);
layer.Name = "County";
layer.DrawingQuality = DrawingQuality.HighQuality;
layer.ZoomLevelSet.ZoomLevel12.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(255, 242, 239, 233));
layer.ZoomLevelSet.ZoomLevel12.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
staticLayers.Add(layer);
}
}