Remove the requirement to provide a size to ol.View#fit()
This commit is contained in:
@@ -7627,6 +7627,7 @@ olx.view;
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* size: (ol.Size|undefined),
|
||||
* padding: (!Array.<number>|undefined),
|
||||
* constrainResolution: (boolean|undefined),
|
||||
* nearest: (boolean|undefined),
|
||||
@@ -7639,6 +7640,16 @@ olx.view;
|
||||
olx.view.FitOptions;
|
||||
|
||||
|
||||
/**
|
||||
* The size in pixels of the box to fit the extent into. Default is
|
||||
* the current size of the first map in the DOM that uses this view, or
|
||||
* `[100, 100]` if no such map is found.
|
||||
* @type {ol.Size|undefined}
|
||||
* @api
|
||||
*/
|
||||
olx.view.FitOptions.prototype.size;
|
||||
|
||||
|
||||
/**
|
||||
* Padding (in pixels) to be cleared inside the view. Values in the array are
|
||||
* top, right, bottom and left padding. Default is `[0, 0, 0, 0]`.
|
||||
|
||||
Reference in New Issue
Block a user