I have seen that this line has been commented out from some previous releases. In the case zoomToDataExtent is true, it makes sense to zoom to the extent of the data for polylines and polygons.
But for point features the zoom is too high (at least for my use case), so I would leave the possibility to set the defaultZoom properties also when a zoomToDataExtent is true.
I have seen that this line has been commented out from some previous releases. In the case zoomToDataExtent is true, it makes sense to zoom to the extent of the data for polylines and polygons. But for point features the zoom is too high (at least for my use case), so I would leave the possibility to set the defaultZoom properties also when a zoomToDataExtent is true.