Skip to main content
Assumed this relates to ArcGIS API for Silverlight after googling for class mentioned
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Extent is zooming map to 0,0 in ArcGIS API for Silverlight?

When I use this code (from the example):

        ESRI.ArcGIS.Client.Geometry.Envelope myEnvelope = new ESRI.ArcGIS.Client.Geometry.Envelope();
        myEnvelope.XMin = -130;
        myEnvelope.YMin = 5;
        myEnvelope.XMax = -70;
        myEnvelope.YMax = 65;
        mapControl.Extent = myEnvelope;

The map is centered over that ever-popular and fascinating point off the coast of Africa: 0,0. 

What am I doing wrong?f

Extent is zooming map to 0,0

When I use this code (from the example):

        ESRI.ArcGIS.Client.Geometry.Envelope myEnvelope = new ESRI.ArcGIS.Client.Geometry.Envelope();
        myEnvelope.XMin = -130;
        myEnvelope.YMin = 5;
        myEnvelope.XMax = -70;
        myEnvelope.YMax = 65;
        mapControl.Extent = myEnvelope;

The map is centered over that ever-popular and fascinating point off the coast of Africa: 0,0. What am I doing wrong?f

Extent is zooming map to 0,0 in ArcGIS API for Silverlight?

When I use this code (from the example):

        ESRI.ArcGIS.Client.Geometry.Envelope myEnvelope = new ESRI.ArcGIS.Client.Geometry.Envelope();
        myEnvelope.XMin = -130;
        myEnvelope.YMin = 5;
        myEnvelope.XMax = -70;
        myEnvelope.YMax = 65;
        mapControl.Extent = myEnvelope;

The map is centered over that ever-popular and fascinating point off the coast of Africa: 0,0. 

What am I doing wrong?

Source Link
zetar
  • 139
  • 6

Extent is zooming map to 0,0

When I use this code (from the example):

        ESRI.ArcGIS.Client.Geometry.Envelope myEnvelope = new ESRI.ArcGIS.Client.Geometry.Envelope();
        myEnvelope.XMin = -130;
        myEnvelope.YMin = 5;
        myEnvelope.XMax = -70;
        myEnvelope.YMax = 65;
        mapControl.Extent = myEnvelope;

The map is centered over that ever-popular and fascinating point off the coast of Africa: 0,0. What am I doing wrong?f