Fix incorrect maximum extent in xyz-retina example

This commit is contained in:
Frederic Junod
2014-08-12 17:48:22 +02:00
parent 4fb905170a
commit 2b8426fb47

View File

@@ -22,11 +22,10 @@ var map = new ol.Map({
source: new ol.source.OSM()
}),
new ol.layer.Tile({
extent: ol.proj.transformExtent(mapExtent, 'EPSG:4326', 'EPSG:3857'),
source: new ol.source.XYZ({
url: 'http://tileserver.maptiler.com/grandcanyon@2x/{z}/{x}/{y}.png',
tilePixelRatio: 2, // THIS IS IMPORTANT
maxExtent: ol.proj.transformExtent(
mapExtent, 'EPSG:4326', 'EPSG:3857'),
minZoom: mapMinZoom,
maxZoom: mapMaxZoom
})