Don't use non-exported method in example.

This commit is contained in:
Marc Jansen
2013-03-13 16:52:37 +01:00
parent e872a49beb
commit 9798eb5fa8

View File

@@ -16,10 +16,9 @@ var createMap = function(divId) {
var source, layer, map, zoomslider, resolutions, minRes, maxRes;
source = new ol.source.MapQuestOpenAerial();
resolutions = source.getResolutions();
minRes = resolutions[resolutions.length - 1];
maxRes = resolutions[0];
// These are the min and max resolutions of MapQuestOpenAerial
minRes = 0.5971642834779395;
maxRes = 156543.03392804097;
layer = new ol.layer.TileLayer({
source: source
});