Set preload appropriately in examples

This commit is contained in:
Tom Payne
2013-03-27 14:24:06 +01:00
parent 5077413c34
commit 421135b3e7
4 changed files with 4 additions and 0 deletions

View File

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