Hello world for various modes of compilation.

This commit is contained in:
Petr Pridal
2012-06-22 10:44:34 +02:00
parent 3a40925a7d
commit 5439d63e89
6 changed files with 147 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
/* This is a code which is going to be compiled together with the library */
function init() {
var map = new ol.Map()
// .render('map')
map.setLayers( [ new ol.layer.OSM() ] );
map.setCenter( new ol.Loc(45, 5));
map.setZoom(10);
}
window['init'] = init;