diff --git a/demo/hello-api.html b/demo/hello-api.html new file mode 100644 index 0000000000..e0da39a20e --- /dev/null +++ b/demo/hello-api.html @@ -0,0 +1,26 @@ + + + + + OL3 Hello World + + + + + + + +
+ + diff --git a/demo/hello-epi.js b/demo/hello-epi.js new file mode 100644 index 0000000000..b63eb18fa3 --- /dev/null +++ b/demo/hello-epi.js @@ -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; diff --git a/demo/hello-epi.json b/demo/hello-epi.json new file mode 100644 index 0000000000..9c4046a0cc --- /dev/null +++ b/demo/hello-epi.json @@ -0,0 +1,43 @@ +{ + "id": "hello-epi", + + "output-file": "hello-epi-compiled.js", + + "inputs": [ + "hello-epi.js", + "../src/ol.js" + ], + "paths": [ + "../src" + ], + + "define": { + // "goog.dom.ASSUME_STANDARDS_MODE": true, + "goog.DEBUG": false + }, + + "mode": "ADVANCED", + "level": "VERBOSE", + // "pretty-print": true, + // "debug": true, + + // "experimental-compiler-options": { + // "generateExports": true + // }, + + + "checks": { + // acceptable values are "ERROR", "WARNING", and "OFF" + "accessControls": "WARNING", + "visibility": "WARNING", + "checkTypes": "WARNING", + "checkRegExp": "WARNING", + "checkVars": "WARNING", + "deprecated": "WARNING", + "fileoverviewTags": "WARNING", + "invalidCasts": "WARNING", + "missingProperties": "WARNING", + "nonStandardJsDocs": "WARNING", + "undefinedVars": "WARNING" + } +} diff --git a/demo/hello.html b/demo/hello.html new file mode 100644 index 0000000000..b50bd6b8f5 --- /dev/null +++ b/demo/hello.html @@ -0,0 +1,15 @@ + + + + + OL3 Hello World + + + + + +
+ + \ No newline at end of file diff --git a/demo/hello.js b/demo/hello.js new file mode 100644 index 0000000000..08fcfadbed --- /dev/null +++ b/demo/hello.js @@ -0,0 +1,10 @@ +/* This is a code which is going to be compiled together with the library */ + +function init() { + var map = ol.map() + .render('map') + .layers([ol.layer.osm()]) + .center([45, 5]) + .zoom(10); +} +window['init'] = init; \ No newline at end of file diff --git a/demo/hello.json b/demo/hello.json new file mode 100644 index 0000000000..6578a75419 --- /dev/null +++ b/demo/hello.json @@ -0,0 +1,43 @@ +{ + "id": "hello", + + "output-file": "hello-compiled.js", + + "inputs": [ + "hello.js", + "../src/ol.js" + ], + "paths": [ + "../src" + ], + + "define": { + // "goog.dom.ASSUME_STANDARDS_MODE": true, + "goog.DEBUG": false + }, + + "mode": "ADVANCED", + "level": "VERBOSE", + // "pretty-print": true, + // "debug": true, + + // "experimental-compiler-options": { + // "generateExports": true + // }, + + + "checks": { + // acceptable values are "ERROR", "WARNING", and "OFF" + "accessControls": "WARNING", + "visibility": "WARNING", + "checkTypes": "WARNING", + "checkRegExp": "WARNING", + "checkVars": "WARNING", + "deprecated": "WARNING", + "fileoverviewTags": "WARNING", + "invalidCasts": "WARNING", + "missingProperties": "WARNING", + "nonStandardJsDocs": "WARNING", + "undefinedVars": "WARNING" + } +}