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

View File

@@ -1,5 +1,4 @@
goog.require('ol.AnchoredElement');
goog.require('ol.Collection');
goog.require('ol.Coordinate');
goog.require('ol.Map');
goog.require('ol.RendererHints');
@@ -14,7 +13,7 @@ var layer = new ol.layer.TileLayer({
});
var map = new ol.Map({
layers: new ol.Collection([layer]),
layers: [layer],
renderers: ol.RendererHints.createFromQueryData(),
target: 'map',
view: new ol.View2D({