Hello world for various modes of compilation.
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user