I'm probably missing something obvious, but what is the best way to get the full extent of selected features from a layer?
I've used layer.selectFeatures() to get the featureSet, but can't figure out how to get the entire extent of the featureSet except iterating the set and using something like: features.geometry.getExtent()