Remove extent default so we catch errors when extent is not set

This commit is contained in:
ahocevar
2019-02-18 12:00:42 +01:00
parent 08be6cf9bc
commit 667cadc403
3 changed files with 4 additions and 11 deletions

View File

@@ -42,12 +42,11 @@ import {equals} from '../array.js';
* var data = // ... fetch data
* var format = tile.getFormat();
* tile.setProjection(format.readProjection(data));
* tile.setExtent(format.getLastExtent()); // line only required for ol/format/MVT
* tile.setFeatures(format.readFeatures(data, {
* // featureProjection is not required for ol/format/MVT
* featureProjection: map.getView().getProjection()
* }));
* // the line below is only required for ol/format/MVT
* tile.setExtent(format.getLastExtent());
* }
* });
* ```