So my boss has some gripes. I need a good explanation to pass on to him.
Using the WorldMapKitWmsWpfOverlay produces some nice fast content when dragging around the map. When I use the Countries02.shp it is very laggy even with a FileBitmapTileCache. I've been telling him the difference is that the WorldMapKitWmsWpfOverlay likely a cache of small PNGs or JPGs while the ShapeFile is being drawn. This isn't flying with him. Suggestions?
My sample code for loading the Countries02.shp into an overlay:
// Defined else where:
LayerOverlay background = new LayerOverlay { Name = "Background" };
wpfMap.Overlays.Add(background.Name, background);
// Code for loading shapefile background:
ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer(@"C:\MapSupport\Background\Countries02.shp");
layer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
layer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.InternationalBorder1;layer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.City1;
layer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.City1(@"CNTRY_NAME");
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
((LayerOverlay)wpfMap.Overlays["Background"]).Layers.Add("bkg", layer);
((LayerOverlay)wpfMap.Overlays["Background"]).TileCache = new FileBitmapTileCache(@"C:\Temp\", "bkg");
Suggestions?
Thanks,
Matthew