Move target container in to map options

This commit is contained in:
Tom Payne
2012-09-29 13:58:15 +02:00
parent 936a769869
commit 1a5375fa51
6 changed files with 28 additions and 16 deletions

View File

@@ -7,8 +7,9 @@ goog.require('ol.source.MapQuestOpenAerial');
var layer = new ol.layer.TileLayer({
source: new ol.source.MapQuestOpenAerial()
});
var map = new ol.Map(document.getElementById('map'), {
var map = new ol.Map({
center: new ol.Coordinate(0, 0),
layers: new ol.Collection([layer]),
target: 'map',
zoom: 2
});