MapAPI.getExtentOfSelectedFeature

 

string getExtentOfSelectFeature(int featIndex)

This method returns the bounding box of the selected feature at position featIndex in the current selection list.  Thus, valid values of featIndex are 0 through n-1, where n is the number of features in the current selection list.  (The current selection list is obtained, via getSelectedFeatures.).  The bounding box is returned in the form of a comma-separated list of coordinates, as follows: Southwest x, Southwest y, Northeast x, Northeast y.  The coordinates are relative to the Exchange Coordinate System, unless the map type is NRMR (See Map Types) in which case they are relative to the map's coordinate system.  Note that if the Exchange Coordinate System is geodetic, the x-values are longitudes and the y-values are latitudes.