Add custom layer to basemap layers

Discussion created by frozik on Feb 24, 2011
I have custom layer for drawing tiles from different sources. For this option I implemented ILayer.Draw(esriDrawPhase DrawPhase, IDisplay Display, ITrackCancel TrackCancel) method (I can't use raster datasets with raster layers as I have 2147483648x2147483648 px image splitted into 256x256 px tiles and raster dataset can't handle it).
Drawing speed is very slow (up to 3-5 seconds) and during it ArcMap doesn't respond. I found that using Basemap rendering I can avoid freezing, but this article doesn't help a lot, because basemap layer doesn't render mine layers. What should my custom layer implement? Are there any examples c#/java etc.?