From 1cd7b76efe434f6d716de1a2433cffe375d46126 Mon Sep 17 00:00:00 2001 From: Peter Robins Date: Sat, 2 Apr 2016 13:05:53 +0000 Subject: [PATCH] Improve docs/examples for loadingstrategy --- examples/vector-esri-edit.html | 2 +- examples/vector-esri.html | 4 ++-- examples/vector-wfs.js | 4 +--- src/ol/loadingstrategy.js | 2 ++ 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/vector-esri-edit.html b/examples/vector-esri-edit.html index ff4ecd84c0..c8d994e0b7 100644 --- a/examples/vector-esri-edit.html +++ b/examples/vector-esri-edit.html @@ -4,7 +4,7 @@ title: Editable ArcGIS REST Feature Service shortdesc: Example of using an ArcGIS REST Feature Service in an editing application. docs: > This example loads features from ArcGIS REST Feature Service and allows to add new features or update existing features. -tags: "vector, esri, ArcGIS, REST, Feature, Service, bbox, loading, server, edit, updateFeature, addFeature" +tags: "vector, esri, ArcGIS, REST, Feature, Service, loading, server, edit, updateFeature, addFeature" resources: - https://code.jquery.com/jquery-1.11.2.min.js --- diff --git a/examples/vector-esri.html b/examples/vector-esri.html index 2d629d1a24..0b53d6d673 100644 --- a/examples/vector-esri.html +++ b/examples/vector-esri.html @@ -1,10 +1,10 @@ --- layout: example.html title: ArcGIS REST Feature Service -shortdesc: Example of using an ArcGIS REST Feature Service with a BBOX strategy. +shortdesc: Example of using an ArcGIS REST Feature Service with a Tile strategy. docs: > This example loads new features from ArcGIS REST Feature Service when the view extent changes. -tags: "vector, esri, ArcGIS, REST, Feature, Service, bbox, loading, server" +tags: "vector, esri, ArcGIS, REST, Feature, Service, loading, server" resources: - https://code.jquery.com/jquery-1.11.2.min.js --- diff --git a/examples/vector-wfs.js b/examples/vector-wfs.js index d5180742a8..db22608108 100644 --- a/examples/vector-wfs.js +++ b/examples/vector-wfs.js @@ -18,9 +18,7 @@ var vectorSource = new ol.source.Vector({ 'outputFormat=application/json&srsname=EPSG:3857&' + 'bbox=' + extent.join(',') + ',EPSG:3857'; }, - strategy: ol.loadingstrategy.tile(ol.tilegrid.createXYZ({ - maxZoom: 19 - })) + strategy: ol.loadingstrategy.bbox }); diff --git a/src/ol/loadingstrategy.js b/src/ol/loadingstrategy.js index a90d07f1bb..7a078f37ff 100644 --- a/src/ol/loadingstrategy.js +++ b/src/ol/loadingstrategy.js @@ -5,6 +5,8 @@ goog.require('ol.TileCoord'); /** + * One of `all`, `bbox`, `tile`. + * * @typedef {function(ol.Extent, number): Array.} * @api */