Select to view content in your preferred language

Alternative for GraphicProvider in Silverlight

645
3
09-13-2010 04:24 AM
roufbaba
Deactivated User
Hi,

I am in need to get a collective extent of some queried Features from a GraphicLayer/FeatureLayer. There is an option for it in Flex using GraphicProvider. Please refer to below lines of code

var graphicProvider:ArrayCollection = myGraphicsLayer.graphicProvider as ArrayCollection;
var graphicsExtent:Extent = GraphicUtil.getGraphicsExtent(graphicProvider.toArray());

Please guide me in finding the alternative method of same in Silverlight

Thanks
Rouf
0 Kudos
3 Replies
DarinaTchountcheva
Frequent Contributor
Hi Rouf,

It sounds like you are looking for the FullExtent property of the GraphicsLayer/FeatureLayer.

http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.GraphicsLa...

Here is a link to the Silverligth API reference:

http://help.arcgis.com/en/webapi/silverlight/apiref/api_start.htm

Good Luck!
0 Kudos
dotMorten_esri
Esri Notable Contributor
var fullExtent = myGraphicsLayer.FullExtent;
0 Kudos
roufbaba
Deactivated User
Hi Guys,

Thankyou very much for your help. My requirement was bit twisted but now i managed to handle it.


Thanks
Rouf
0 Kudos