Add simple full screen example

This commit is contained in:
Tom Payne
2012-09-29 12:03:16 +02:00
parent ea95ca4918
commit 2341e8cd8f
2 changed files with 35 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
goog.require('ol.Collection');
goog.require('ol.Coordinate');
goog.require('ol.Map');
goog.require('ol.source.MapQuestOpenAerial');
var layer = new ol.layer.TileLayer({
source: new ol.source.MapQuestOpenAerial()
});
var map = new ol.Map(document.getElementById('map'), {
center: new ol.Coordinate(0, 0),
layers: new ol.Collection([layer]),
zoom: 2
});