Exporting the map.

This commit is contained in:
Tim Schaub
2012-06-19 10:29:03 +02:00
parent 8572ae35cf
commit 738561e417

View File

@@ -4,11 +4,11 @@ goog.provide('ol');
goog.require('ol.map');
goog.require('goog.dom');
var map;
ol.main = function() {
goog.dom.getElement('output').innerHTML = 'test';
var map = ol.map().center([45, 5]);
window.console.log(map.center());
}
map = ol.map().center([45, 5]);
};
window['main'] = ol.main;
// or goog.exportSymbol('main', hello.main);
goog.exportSymbol('map', map);