Make preload a number of levels instead of a boolean

This commit is contained in:
Tom Payne
2013-03-27 14:34:20 +01:00
parent 421135b3e7
commit 66c6a8a3e0
8 changed files with 13 additions and 13 deletions

View File

@@ -12,7 +12,7 @@ var layers = [];
for (var i = 0; i < styles.length; ++i) {
layers.push(new ol.layer.TileLayer({
visible: false,
preload: true,
preload: Infinity,
source: new ol.source.BingMaps({
key: 'AgtFlPYDnymLEe9zJ5PCkghbNiFZE9aAtTy3mPaEnEBXqLHtFuTcKoZ-miMC3w7R',
style: styles[i]