We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5339df3 commit 1b1acc8Copy full SHA for 1b1acc8
1 file changed
src/openlayers/overlay/VectorTileSuperMapRest.js
@@ -285,14 +285,23 @@ export class VectorTileSuperMapRest extends VectorTile {
285
source = xhr.response;
286
}
287
if (source) {
288
- success.call(
289
- this,
290
- format.readFeatures(source, {
291
- extent: extent,
292
- featureProjection: projection
293
- }),
294
- format.readProjection(source)
295
- );
+ if (['4', '5'].includes(Util.getOlVersion())) {
+ success.call(
+ this,
+ format.readFeatures(source, { featureProjection: projection }),
+ format.readProjection(source),
+ format.getLastExtent()
+ );
+ } else {
296
297
298
+ format.readFeatures(source, {
299
+ extent: extent,
300
+ featureProjection: projection
301
+ }),
302
+ format.readProjection(source)
303
304
+ }
305
} else {
306
failure.call(this);
307
0 commit comments