What the difference is between these and which one is recommended for use?
Also, using the GoogleMapsLayer, you can set the Cache Directory, and also in the LayerOverlay you add it to you can set the TileCache. Do I need to set both? Example:
GoogleMapsLayer googleLayer = new GoogleMapsLayer();
googleLayer.MapType = GoogleMapsMapType.Satellite;
googleLayer.TileMode = GoogleMapsTileMode.MultiTile;
googleLayer.CacheDirectory = @"C:\Test\GoogleCache"; //We set this
LayerOverlay googleOverlay = new LayerOverlay();
googleOverlay.TileCache = new FileBitmapTileCache(@"C\Test\OverlayGoogleCache"); //Do we need to set both caches?
googleOverlay.TileType = TileType = TileType.MultipleTile;
googleOverlay.Layers.Add(googleLayer);
m_Map.Overlays.Add(googleOverlay );
Thanks for all the help,
Ryan
GoogleMapsLayer vs GoogleMapsOverlay
Hi Ryan,
Thanks for your post and any one of them could be applicable, don’t need to use them both. Normally the googleOverlay.TileCache is recommanded because it is more universal, for example, after you have lots of cached overlays and for some reason you want to use a LayerOverlay to display these google map caches then you could use LayerOverlay.TileCache =new FileBitmapTileCache(@“C\Test\OverlayGoogleCache”) to acheive it.
Hope it helps
Summer