Merge pull request #2125 from ahocevar/loadingstrategy-docs

Make loading strategies appear in the docs
This commit is contained in:
Andreas Hocevar
2014-05-27 15:59:10 +02:00
3 changed files with 10 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ goog.require('ol.TileCoord');
/**
* Strategy function for loading all features with a single request.
* @param {ol.Extent} extent Extent.
* @param {number} resolution Resolution.
* @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 {number} resolution Resolution.
* @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.
* @return {function(ol.Extent, number): Array.<ol.Extent>} Loading strategy.
* @todo api

View File

@@ -0,0 +1,5 @@
/**
* Strategies for loading vector data.
* @see ol.source.ServerVector
* @namespace ol.loadingstrategy
*/