Don't use non-exported method in example.
This commit is contained in:
@@ -16,10 +16,9 @@ var createMap = function(divId) {
|
|||||||
var source, layer, map, zoomslider, resolutions, minRes, maxRes;
|
var source, layer, map, zoomslider, resolutions, minRes, maxRes;
|
||||||
|
|
||||||
source = new ol.source.MapQuestOpenAerial();
|
source = new ol.source.MapQuestOpenAerial();
|
||||||
resolutions = source.getResolutions();
|
// These are the min and max resolutions of MapQuestOpenAerial
|
||||||
minRes = resolutions[resolutions.length - 1];
|
minRes = 0.5971642834779395;
|
||||||
maxRes = resolutions[0];
|
maxRes = 156543.03392804097;
|
||||||
|
|
||||||
layer = new ol.layer.TileLayer({
|
layer = new ol.layer.TileLayer({
|
||||||
source: source
|
source: source
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user