Add optional destination extent in ol.source.Vector#getExtent
This commit is contained in:
@@ -610,11 +610,12 @@ ol.source.Vector.prototype.getClosestFeatureToCoordinate = function(coordinate,
|
|||||||
*
|
*
|
||||||
* This method is not available when the source is configured with
|
* This method is not available when the source is configured with
|
||||||
* `useSpatialIndex` set to `false`.
|
* `useSpatialIndex` set to `false`.
|
||||||
|
* @param {ol.Extent=} opt_extent Destination extent.
|
||||||
* @return {!ol.Extent} Extent.
|
* @return {!ol.Extent} Extent.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.source.Vector.prototype.getExtent = function() {
|
ol.source.Vector.prototype.getExtent = function(opt_extent) {
|
||||||
return this.featuresRtree_.getExtent();
|
return this.featuresRtree_.getExtent(opt_extent);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user