Select to view content in your preferred language

Reset full extend of feature layer

944
2
02-27-2012 08:42 AM
ForamParikh
Regular Contributor
Hello everyone,

How to reset full extend of feature layer?
here is my situation i have written like fl.Geometry = fl.FullExtent; and it works fine but on one another click i have to set its extend like fl.Geometry = mapextend but again user click on home it should set back to fl.Geometry = fl.FullExtent; but it seems like it set as last geometry?

can any one tell me how to reset feature layer to its full extend?means it should see all graphics of that layer.

any help will be appropriated!!!

Thanks
Foram
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
What is your FeatureLayer.Mode? If it is OnDemand, FeatureLayer.Graphics get populated after extent change, which means your layer's FullExtent would be similar to your Map's current extent. If it is SelectionOnly, layer's FullExtent will be that of selected features only. If it is SnapShot, you can expect that after FeatureLayer.UpdateCompleted event, layer's FullExtent will be union of extent of all its graphics.
0 Kudos
ForamParikh
Regular Contributor
Thanks jennifer no mode is specified in the feature layer.

Thanks
0 Kudos