Select to view content in your preferred language

Layer does not contain a definition for for InitialExtent

1114
2
10-08-2010 09:13 AM
AaronEdwards
Emerging Contributor
Hi,

I'm trying to test out the code from the API documentation, under the topic 'Use layer extent to set initial map extent'. 

I get a compiler error, saying Error

[INDENT]'ESRI.ArcGIS.Client.Layer' does not contain a definition for 'InitialExtent' and no extension method 'InitialExtent' accepting a first argument of type 'ESRI.ArcGIS.Client.Layer' could be found (are you missing a using directive or an assembly reference?)[/INDENT]

I'm using version 2.0 of the API.  Does anyone know if this property is no longer supported?

Thanks.

Aaron
0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor
That property is not on the layer baseclass, but only on ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer
0 Kudos
AaronEdwards
Emerging Contributor
Hey Thanks.
0 Kudos