diff --git a/examples/epsg-4326.js b/examples/epsg-4326.js index b7a96014ef..c6d48eb4ed 100644 --- a/examples/epsg-4326.js +++ b/examples/epsg-4326.js @@ -11,17 +11,6 @@ goog.require('ol.source.TiledWMS'); var epsg4326 = ol.projection.getFromCode('EPSG:4326'); -// We give the single image source a set of resolutions. This prevents the -// source from requesting images of arbitrary resolutions. -var projectionExtent = epsg4326.getExtent(); -var maxResolution = Math.max( - projectionExtent.maxX - projectionExtent.minX, - projectionExtent.maxY - projectionExtent.minY) / 256; -var resolutions = new Array(10); -for (var i = 0; i < 10; ++i) { - resolutions[i] = maxResolution / Math.pow(2.0, i); -} - var layers = new ol.Collection([ new ol.layer.TileLayer({ source: new ol.source.TiledWMS({