public static Collection GetLayersToCache() { Collection layersToCache = new Collection(); ShapeFileFeatureSource.BuildIndexFile(AlqaseemDistrictAdminbndy4LayerPath); ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer(AlqaseemDistrictAdminbndy4LayerPath, ShapeFileReadWriteMode.ReadOnly); layer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.State1; layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; ShapeFileFeatureSource.BuildIndexFile(AlqaseemDistrictStreetsLayerPath); ShapeFileFeatureLayer layer2 = new ShapeFileFeatureLayer(AlqaseemDistrictStreetsLayerPath, ShapeFileReadWriteMode.ReadOnly); layer2.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.LocalRoad1; layer2.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; layersToCache.Add(layer); layersToCache.Add(layer2); return layersToCache; }