MapView.ExportImageAsync() does not export ScaleLIne from Toolkit.WPF

319
1
03-17-2023 06:44 AM
Labels (3)
noodle
by
New Contributor III

I have Toolkit.WPF (v 200) installed but when I do MapView.ExportImageAsync(), ScaleLine is not exported.   Is there a way to get ScaleLIne included in exported image?   Saving ScaleLine is useful for the saved image.

0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor

ExportImage exports just the map portion of the MapView. The MapView has no knowledge of the scaleline control, so it can't include it. There's not a simple way to do this - you'd have to use WPF's APIs to export the ScaleLine into a writeable bitmap and overlay it.

0 Kudos