I was wondering how to use class WPFGeoCanvas . It exists in Class documentation, however it is not referred anywhere in public classes.
Use of WPFGeoCanvas class
Hi Anil,
WpfGeoCanvas is in our public API; but it is not quite stable and doesn’t have good performance. WpfGeoCanvas actually uses Shape of Wpf to render on a panel and it’s not light weight drawing; when too many features are drawn on the panel, the performance will be terrible low. We also have RenderTargetGeoCanvas which uses Wpf light weight drawing and it is faster than the WpfGeoCanas. But these two classes both have a disadvantage that is they all cannot draw cross the thread which means you cannot get better performance than the GdiPlusGeoCanvas.
Any way, we have a property on the LayerOverlay called “RenderMode”, you can switch the drawing object between GdiPlus and RenderTarget; you will see the effect immediately when running the Apps.
So GdiPlus is the stablest way for drawing, you can drawing it with bit amount of data in different thread; with this ability, you can panning and zooming during rendering. On the other hand, the RenderTarget way is more responsive; it fits for rendering small amount of data such as tracking a shape in the map.
Hope it makes sense and feel free to let us know if you have any more queries.
Thanks,
Howard