Merge pull request #2125 from ahocevar/loadingstrategy-docs
Make loading strategies appear in the docs
This commit is contained in:
+1
-1
@@ -3796,7 +3796,7 @@ olx.source.ServerVectorOptions.prototype.loader;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loading strategy. Default is `ol.loadingstrategy.bbox`.
|
* Loading strategy. Default is {@link ol.loadingstrategy.bbox}.
|
||||||
* @type {function(ol.Extent, number): Array.<ol.Extent>|undefined}
|
* @type {function(ol.Extent, number): Array.<ol.Extent>|undefined}
|
||||||
*/
|
*/
|
||||||
olx.source.ServerVectorOptions.prototype.strategy;
|
olx.source.ServerVectorOptions.prototype.strategy;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ goog.require('ol.TileCoord');
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Strategy function for loading all features with a single request.
|
||||||
* @param {ol.Extent} extent Extent.
|
* @param {ol.Extent} extent Extent.
|
||||||
* @param {number} resolution Resolution.
|
* @param {number} resolution Resolution.
|
||||||
* @return {Array.<ol.Extent>} Extents.
|
* @return {Array.<ol.Extent>} Extents.
|
||||||
@@ -15,6 +16,8 @@ ol.loadingstrategy.all = function(extent, resolution) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Strategy function for loading features based on the view's extent and
|
||||||
|
* resolution.
|
||||||
* @param {ol.Extent} extent Extent.
|
* @param {ol.Extent} extent Extent.
|
||||||
* @param {number} resolution Resolution.
|
* @param {number} resolution Resolution.
|
||||||
* @return {Array.<ol.Extent>} Extents.
|
* @return {Array.<ol.Extent>} Extents.
|
||||||
@@ -26,6 +29,7 @@ ol.loadingstrategy.bbox = function(extent, resolution) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Creates a strategy function for loading features based on a tile grid.
|
||||||
* @param {ol.tilegrid.TileGrid} tileGrid Tile grid.
|
* @param {ol.tilegrid.TileGrid} tileGrid Tile grid.
|
||||||
* @return {function(ol.Extent, number): Array.<ol.Extent>} Loading strategy.
|
* @return {function(ol.Extent, number): Array.<ol.Extent>} Loading strategy.
|
||||||
* @todo api
|
* @todo api
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
/**
|
||||||
|
* Strategies for loading vector data.
|
||||||
|
* @see ol.source.ServerVector
|
||||||
|
* @namespace ol.loadingstrategy
|
||||||
|
*/
|
||||||
Reference in New Issue
Block a user