hi,
Please give a solution for my below problems.
1)I want to add layers when i zoom to particular zoom level instead of loading all 5 or 10 layers at beginning(i am thinking loading all layers makes map slow,please correct me if i am wrong).
2)How can i leverage the multi-core cpu to render map faster,is there any API method i can use.
Thanks,
Lalitya.
Dynamically add layers on zoomlevel change
Hi Lalitya,
Thanks for your post, if you want a layer to be displayed from zoomlevel 4 to zoomlevel 5, code similar to following code could be used:
yourlayer.ZoomLevelSet.ZoomLevel04.DefaultAreaStyle = AreaStyles.Country1;
yourlayer.ZoomLevelSet.ZoomLevel04.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level01;
About the second question, actaully a very often used method to speed up the rendering is to use tilecache with following code:
LayerOverlay yourOvleray = new LayerOverlay();
yourOvleray.TileCache = new FileBitmapTileCache(@"c:\temp");
yourOvleray.TileCache.CacheId = "YourCacheFolderName";
Hope it helps
Summer