I have a local RasterTileCache that I am displaying using a LayerOverlay with IsCacheOnly set to true and the TileCache set appropriately. There are no layers. The user will not have access to the TileCache source data.
How do I have the LayerOverlay draw to a GeoCanvas?
I want a bitmap/png of the current map extent to save to a file.
There is no draw method for the overlay, and there is no layer to draw. I have tried to use MBTilesLayer, but that is expecting a Vector Tile Cache to draw. It does not draw from the RasterTileCache when I try to draw it on the canvas. I have tried to use a CloudRasterLayer, but it gives me an unauthorized exception most of the time. Plus, the tile cache is local, and when I have gotten the CloudRaster layer to draw, it has had holes in the image – meaning that the drawing was incomplete plus it was not the extent that the canvas was set for. My other layers draw as expected.
I nearly forgot to add. I have tried to override the RasterTileCache, but the merge bitmaps is not exposed to me in the Blazor edition like it was in the WPF/Desktop edition.
Thanks for any help that you can offer.