AnsweredAssumed Answered

get bounding envelope for all graphics?

Question asked by mcoop05 on Nov 4, 2013
Latest reply on Nov 4, 2013 by DGoyal-esristaff
I'm trying to zoom to the extent of all map graphics (from 3 feature services), but I'm not seeing any easy helper methods to get the extents of all graphics of a featurelayer in the API.  I have a feeling I'm overlooking something obvious. I'm hoping to avoid iterating over each layers graphics object and recording the xmin, xmax, ymin, ymax across all 3 layers.

The context for this, is that I'm setting a definition expression for all the layers and want to zoom to the remaining graphics after the definition expression has been set.

Thanks for the help,
Matt

Outcomes