cmacleod-esristaff

FullExtent and InitialExtent on LocalArcGISDynamicMapServiceLayer always null

Discussion created by cmacleod-esristaff Employee on Aug 3, 2011
Latest reply on Aug 4, 2011 by MBranscomb-esristaff
Build 312. Windows 7 64 bit WPF SDK.

Is this a bug or my code?

LocalArcGISDynamicMapServiceLayer package = new LocalArcGISDynamicMapServiceLayer(
          "path_to_package".mpk) ;
MyMap.Layers.Add(package);
MyMap.Layers.LayersInitialized += (o, evt) => {
                MyMap.ZoomTo(package.FullExtent.Expand(1.1)); //<-- always null
  };

Even if I add a button to randonly check the extent (when I click) it is always null.......

Outcomes