BoundingBox-Explain

Nov 3, 2013 at 6:11 PM
Hi
Can you tell me the way for getting the current Height & Width of current screen with measure is kilometer?

Thnks you!
Nov 4, 2013 at 7:38 AM
The Viewport.Extent.Width and Viewport.Extent.Height return the width and the height of the map in 'map units'. Which means it is in whatever units the map is using, and this depends on your data. So that doesn't help.

There is currently no support for calculating from map units to kilometers in Mapsui.

What we do in other application is transform the map coordinates to WGS84 and calculate from there to meters.