My application works now with tiling cache and multithread mode.
I'm looking for feature such as progressive panning and zooming. I mean, the map is displayed while paning and there is a visual effet while zooming that displays intermediate steps beetween 2 zoom levels.
I'm not sure I'm clear, but something like Google Earth zooming & panning.
Basically your idea is correct; while one minor mistake is that you set the same tile cache both for the TileCache and its Preview. LayerOverlay staticOverlay = new LayerOverlay(); staticOverlay.Layers.Add("WorldLayer", worldLayer); staticOverlay.TileCache = new FileBitmapTileCache(@"C:\temp", "staticOverlayTileCache"); staticOverlay.PreviewTileCache = new FileBitmapTileCache(@"C:\temp", "staticOverlayPreviewTileCache1"); //staticOverlay.IsBase = true; // Set this for pan preview works
With isBase=true … I now get a continuous panning … great; what is the use of this undocumented property ?
For progressive zoom, it still does not work; the preview tile are not even generated.
here is my new code: m_MainMap.AdornmentOverlay.ShowLogo = false; m_MainMap.DrawingQuality = DrawingQuality.HighQuality; m_MainMap.SmoothingMode = SmoothingMode.HighQuality; m_MainMap.CompositingQuality = CompositingQuality.HighQuality; m_MainMap.ZoomLevelSnapping = ZoomLevelSnappingMode.None;
That is very wield, it should work with your code, which version you are using(3.0.426 is the last public version)?
Also could you try the following code in HowDoI sample DisplayASingleMap to see it works? winformsMap1.MapUnit = GeographyUnit.DecimalDegree; winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
LayerOverlay staticOverlay = new LayerOverlay(); staticOverlay.Layers.Add("WorldLayer", worldLayer); staticOverlay.TileCache = new FileBitmapTileCache(@"C:\temp", "staticOverlayTileCache"); staticOverlay.PreviewTileCache = new FileBitmapTileCache(@"C:\temp", "staticOverlayPreviewTileCache1"); staticOverlay.IsBase = true; // Set this for pan preview works
The lack of documentation is really my fault. I was supposed to have a video out explaining all of the new release stuff and have just been hammered lately. I have been letting the forums pickup the slack on this and we will get the documentation out for it and also integrated into samples as well to show it off much better.
A word of warning is that as you apply the IsBase=true to more overlays the map panning is going to get slower. We suggest you limit its use to one overlay if possible, the base one that is.
We have changed some minor logics in FileBitmapTileCache to fix some bugs while keeping its APIs unchanged. I tested the code in latest version which will be public within this week and it works fine.
So please keep an eye on the latest release and have a try, if any more problems just feel free to let me know. Sorry for the inconvenience now.
I cannot see any difference with 3.0.453; the preview folder is still not created and there is no visual zoom in/out effect. The only difference that I can see is that pan is much more slower than with 426.
The reason for this problem we made some other changes without noticing this problem, we have fixed it and make sure it works , I will arrange to send you a temperary version at the early of next week with this problem fixed.