Update getExtent return value jsdoc tag
The extent is never `null`; if the source is empty, the extent is `[Infinity, Infinity, -Infinity, -Infinity]`
This commit is contained in:
@@ -659,7 +659,7 @@ ol.source.Vector.prototype.getClosestFeatureToCoordinate =
|
|||||||
*
|
*
|
||||||
* 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`.
|
||||||
* @return {ol.Extent} Extent.
|
* @return {!ol.Extent} Extent.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.source.Vector.prototype.getExtent = function() {
|
ol.source.Vector.prototype.getExtent = function() {
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ ol.structs.RBush.prototype.clear = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.Extent=} opt_extent Extent.
|
* @param {ol.Extent=} opt_extent Extent.
|
||||||
* @return {ol.Extent} Extent.
|
* @return {!ol.Extent} Extent.
|
||||||
*/
|
*/
|
||||||
ol.structs.RBush.prototype.getExtent = function(opt_extent) {
|
ol.structs.RBush.prototype.getExtent = function(opt_extent) {
|
||||||
// FIXME add getExtent() to rbush
|
// FIXME add getExtent() to rbush
|
||||||
|
|||||||
Reference in New Issue
Block a user