diff --git a/demo/map.html b/demo/map.html index 0a818261cd..7cca289999 100644 --- a/demo/map.html +++ b/demo/map.html @@ -6,19 +6,12 @@
- - \ No newline at end of file + + diff --git a/demo/map.js b/demo/map.js new file mode 100644 index 0000000000..c5ea52311c --- /dev/null +++ b/demo/map.js @@ -0,0 +1,6 @@ +var map = ol.map({ + renderTo: 'map', + layers: [ol.layer.osm()], + center: [0, 0], + zoom: 1 +}); diff --git a/demo/map.json b/demo/map.json new file mode 100644 index 0000000000..7725caf2bf --- /dev/null +++ b/demo/map.json @@ -0,0 +1,39 @@ +/** + * Build configuration for the map.js example. Use following syntax: + * + * ol build map.json + * + * The output will be named map-compiled.js. + */ + +{ + "id": "hello", + + "output-file": "map-compiled.js", + + "inputs": ["../src/ol.js", "map.js"], + + "paths": ["../src"], + + "define": { + "goog.DEBUG": false + }, + + "mode": "ADVANCED", + "level": "VERBOSE", + + // acceptable values are "ERROR", "WARNING", and "OFF" + "checks": { + "accessControls": "WARNING", + "visibility": "WARNING", + "checkTypes": "WARNING", + "checkRegExp": "WARNING", + "checkVars": "WARNING", + "deprecated": "WARNING", + "fileoverviewTags": "WARNING", + "invalidCasts": "WARNING", + "missingProperties": "WARNING", + "nonStandardJsDocs": "WARNING", + "undefinedVars": "WARNING" + } +}