Hello,
In my current app, I have several LayerOverlays and a FeatureLayerWpfDrawingOverlay, which is used to plot several objects around gps locations. The standard LayerOverlays are used to display basic shapefiles and a ThinkGeoMBTilesLayer.
Currently I do not have any cache defined on the MBTilesLayer.
in my current setup, I have a “heading north” option, that as the gps positions move, pans and rotates the map using ZoomToAsync. This all works fine.
My actual question is… when I start my application and items are being drawn, the app uses lets say 180 mb of ram (according to task manager). as the position moves around and the map is rotated, the memory usage will slowly creep up which has in many cases caused out of memory exceptions. This application may have to run for several days at a time before resetting.
This morning, out of curiosity, I switched a toggle so that the map zoomed back to the stationary object and no longer rotated, and over the course of a few hours the memory finally started dropping to the original levels.
What I’m wondering is if there is a cache or some other feature that I can/should be clearing regularly, either on the overlays or on the layers themselves, to help manage memory more efficiently.
I’ve tried looking at the BitmapTileCache and ExpirationTime on the mb tiles layer, but the tile cache is null since I haven’t defined anything.
Any insight you can provide is appreciated.