From 421135b3e7c31febc1f56b35cd0085bd6f09f8a2 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 27 Mar 2013 14:24:06 +0100 Subject: [PATCH] Set preload appropriately in examples --- examples/animation.js | 1 + examples/bing-maps.js | 1 + examples/rotation.js | 1 + examples/stamen.js | 1 + 4 files changed, 4 insertions(+) diff --git a/examples/animation.js b/examples/animation.js index f287201039..3bb3ae7cda 100644 --- a/examples/animation.js +++ b/examples/animation.js @@ -23,6 +23,7 @@ var bern = ol.projection.transform( var map = new ol.Map({ layers: [ new ol.layer.TileLayer({ + preload: true, source: new ol.source.OpenStreetMap() }) ], diff --git a/examples/bing-maps.js b/examples/bing-maps.js index e4be7be46a..376dd2c869 100644 --- a/examples/bing-maps.js +++ b/examples/bing-maps.js @@ -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] diff --git a/examples/rotation.js b/examples/rotation.js index 9322443256..263829a229 100644 --- a/examples/rotation.js +++ b/examples/rotation.js @@ -9,6 +9,7 @@ goog.require('ol.source.OpenStreetMap'); var map = new ol.Map({ layers: [ new ol.layer.TileLayer({ + preload: true, source: new ol.source.OpenStreetMap() }) ], diff --git a/examples/stamen.js b/examples/stamen.js index 993cb6381f..1507f5f035 100644 --- a/examples/stamen.js +++ b/examples/stamen.js @@ -10,6 +10,7 @@ goog.require('ol.source.Stamen'); var map = new ol.Map({ layers: [ new ol.layer.TileLayer({ + preload: true, source: new ol.source.Stamen({ layer: 'watercolor' })