Select to view content in your preferred language

ArcGlobe Extent

627
2
11-11-2010 07:17 PM
rohandontireddy
Emerging Contributor
Iam trying to build WPF windows application using ArcGlobe Below is the code for ZoomIn functionality using Active View,zooming is working properly.but my need is i need to capture the Globe Extent but always im getting same values as -89,-179,-79,-169 as MinX,MinY,MaxX,MaxY respectively.

is there any other way to do this ?

//Zoomin Code using Active View
double vfa = 0;
m_Camera = m_ActiveView.Camera;
vfa = m_Camera.ViewFieldAngle;
m_Camera.ViewFieldAngle = vfa * 0.9; //vfa * 1.1 for Zoomout
m_ActiveView.Redraw(true);

IActiveView actview = globeControl.Globe as IActiveView;
actview.Refresh();

MinX = actview.Extent.XMin;
MinY = actview.Extent.YMin;
MaxX = actview.Extent.XMax;
MaxY = actview.Extent.YMax;
Tags (1)
0 Kudos
2 Replies
BryanKardisco
Emerging Contributor
You ever figure a solution out to this?
0 Kudos
maria_josemontoya
Deactivated User
Hi,

I need to capture the Globe Extent but always am getting same values as -89,-179,-79,-169 as MinX,MinY,MaxX,MaxY respectively. Why? Have you solved your problem?
Thanks,

Maria Jose
0 Kudos