The getSelectionExtent in the FeatureModel calculates the max extent which includes all selected features, and returns null if the layer has no features.
This is called by recenterToSelectionExtent which does not check for a returned null value causing Unable to get property 'getWidth' of undefined or null reference errors when calling this.baseLayer.getZoomForExtent(bounds, closest) in OpenLayers.
The
getSelectionExtent
in the FeatureModel calculates the max extent which includes all selected features, and returns null if the layer has no features.This is called by
recenterToSelectionExtent
which does not check for a returned null value causingUnable to get property 'getWidth' of undefined or null reference
errors when callingthis.baseLayer.getZoomForExtent(bounds, closest)
in OpenLayers.