Module: webgis4u/ol/util/zoomToLayerExtent

Methods

(static) zoomToLayerExtent(vectorLayer, map) → {ol.Extent}

Gets the extent of an vector layer.
Parameters:
Name Type Description
vectorLayer ol.layer.Vector The vector layer.
map ol.Map The map.
Source:
Returns:
The extent.
Type
ol.Extent