Hi all
I have a geometry (an Envelope) defined by 2 lat/lon points. I'm having trouble wrapping my head around the concept of the camera scale (in 2D) needed to exactly encapsulate that envelope. I know that if I zoom the current view to the envelope then I will get the scale I'm looking for. However, this also changes the actual view in the scene. I'm looking to determine the Scale in a way that does not affect the users view.
MapView view= MapView.Active;
await QueuedTask.Run(() =>
{
// This works, but changes the user's view. Not good!
view.ZoomTo(envelope);
Debug.WriteLine("Scale: " + view.Camera.Scale);
});Is there a way to manually calculate that scale value, or, to determine it somehow without affecting the view for the user?
Thanks