diff --git a/demo/hello.html b/demo/hello-compiled.html
similarity index 100%
rename from demo/hello.html
rename to demo/hello-compiled.html
diff --git a/demo/hello.json b/demo/hello-compiled.json
similarity index 99%
rename from demo/hello.json
rename to demo/hello-compiled.json
index 6578a75419..5cab96f3ea 100644
--- a/demo/hello.json
+++ b/demo/hello-compiled.json
@@ -25,7 +25,6 @@
// "generateExports": true
// },
-
"checks": {
// acceptable values are "ERROR", "WARNING", and "OFF"
"accessControls": "WARNING",
diff --git a/demo/hello-epi.json b/demo/hello-epi-compiled.json
similarity index 95%
rename from demo/hello-epi.json
rename to demo/hello-epi-compiled.json
index 9c4046a0cc..ac42ce4866 100644
--- a/demo/hello-epi.json
+++ b/demo/hello-epi-compiled.json
@@ -4,8 +4,7 @@
"output-file": "hello-epi-compiled.js",
"inputs": [
- "hello-epi.js",
- "../src/ol.js"
+ "hello-epi.js"
],
"paths": [
"../src"
diff --git a/demo/hello-epi.js b/demo/hello-epi.js
index b63eb18fa3..2b6ba9467f 100644
--- a/demo/hello-epi.js
+++ b/demo/hello-epi.js
@@ -1,8 +1,14 @@
/* This is a code which is going to be compiled together with the library */
+goog.require('ol.Map');
+goog.require('ol.layer.OSM');
+goog.require('ol.Loc');
+
+goog.require('goog.dom');
+
function init() {
- var map = new ol.Map()
- // .render('map')
+ var map = new ol.Map();
+ map.setContainer(goog.dom.getElement('map'));
map.setLayers( [ new ol.layer.OSM() ] );
map.setCenter( new ol.Loc(45, 5));
map.setZoom(10);
diff --git a/demo/hello.js b/demo/hello.js
index 08fcfadbed..90cfcae4e1 100644
--- a/demo/hello.js
+++ b/demo/hello.js
@@ -2,9 +2,9 @@
function init() {
var map = ol.map()
- .render('map')
+ .renderTo('map')
.layers([ol.layer.osm()])
.center([45, 5])
.zoom(10);
}
-window['init'] = init;
\ No newline at end of file
+window['init'] = init;