Hi
I found some strange behaviour while using the TileCache on a LayerOverlay.
I have a layerOverlay that I use for displaying files (Shapefiles and Jpeg2 rasters)
_staticOverlay =
new
LayerOverlay();
_staticOverlay.TileCache =
new
FileBitmapTileCache(_cacheDirectory);
_staticOverlay.TileCache.CacheId =
"StaticFileCache"
;
When I add the jp2 file. ( after fresh application startup) I see the shapefile layer that I added last time I ran the app.
As soon as I move the screen it refreshes and shows the jp2.
To confirm this I did the following
1. Cleared the _cacheDirectory
2. Started the app, Loaded the shp file
3. Closed the app ( new cache files created in directory
4. Started the app
5. Loaded jp2 file
6. I now see shp file on map
7. Move map
8. now see jp2 file
Both files have different layer names ( set to the file name of the file)
Obviously this is a bug I assume with the cache code. Can you duplicate this?
Or I am doing something wrong
cheers
Murray