What does it mean when one of the "Tiles" displays on the map as a white square with a red X? Every exception I've seen draws the text of the exception. I'm using WPF Tiling with a FileBitmapTileCache.
Thanks,
.Ryan.
What does it mean when one of the "Tiles" displays on the map as a white square with a red X? Every exception I've seen draws the text of the exception. I'm using WPF Tiling with a FileBitmapTileCache.
Thanks,
.Ryan.
I am also having this white square with Red X
Hi Ryan, Raquibur,
This red cross tile is caused by an exception during drawing the tile. Thanks for pointing out this issue because in the previous desktop, it throws exception in the overlay by default. Actually the exception message drawn on the tile you saw is because you set the DrawingExceptionMode.
We’ll synchronize to the previous Desktop way for this issue. On the other hand, please try to set layer.DrawingExceptionMode = DrawingExceptionMode.DrawException; and it may fix your issue. And we’ll add this property on the overlay it self so that you can handle the exception.
I cannot figure out the issue from this description; if the code above doesn’t work, please sent us a sample and we’ll check the real exception for you.
Thanks,
Howard
Howard thanks for the reply. Can you change the API so that by default the layer DrawingExceptionMode is not set to DrawingExceptionMode.DrawException.
Thanks
Raquib
Raquibur,
I’m afraid not, at least we cannot do it by now. You know we have not only Wpf Desktop Edition does this way, but also our desktop and Silverlight are following this rule. We need keep the same strategy for all of our products, and also we need to avoid breaking change of our other products. I’d rather recommend you to set the property directly or inherit the overlay you are using, and set this property in the constructor.
Hope you understand and let me know if you have more queries.
Thanks,
Howard
Howard,
We can discus this as the WPF is in beta now this may be a change we can make. I will keep you posted.
David