Zoom To Geometry

2974
2
04-02-2012 11:09 AM
BrianGustafson
New Contributor III
How do you zoom to selected features in the map.  I have some point features but I am having issues zooming to lines and polygons.
0 Kudos
2 Replies
IvanBespalov
Occasional Contributor III
Brian,
setExtent(Geometry geometry)
This method will zoom map into the given geometry and use its bound as current map extent.
0 Kudos
BrianGustafson
New Contributor III
That is what I was looking for.

Thanks.
0 Kudos