Don't use ol.Collection in examples

This commit is contained in:
Tom Payne
2013-03-06 13:05:12 +01:00
parent 61982646ba
commit 441092dad6
8 changed files with 14 additions and 22 deletions
+2 -3
View File
@@ -1,4 +1,3 @@
goog.require('ol.Collection');
goog.require('ol.Coordinate');
goog.require('ol.Map');
goog.require('ol.RendererHint');
@@ -9,7 +8,7 @@ goog.require('ol.source.BingMaps');
goog.require('ol.source.TileJSON');
var layers = new ol.Collection([
var layers = [
new ol.layer.TileLayer({
source: new ol.source.BingMaps({
key: 'AgtFlPYDnymLEe9zJ5PCkghbNiFZE9aAtTy3mPaEnEBXqLHtFuTcKoZ-miMC3w7R',
@@ -21,7 +20,7 @@ var layers = new ol.Collection([
uri: 'http://api.tiles.mapbox.com/v3/mapbox.va-quake-aug.jsonp'
})
})
]);
];
var webglMap = new ol.Map({
layers: layers,