Marc Jansen 69b915620d Add fixme/todo target to build.py.
Will show a list of lines in sourcefiles that either contains the string TODO
or FIXME.

Example output:

    user@host:~/src/ol3 $ ./build.py fixme
      src/ol/source/xyzsource.js has 4 matches:
        #1         // FIXME add minZoom support
        #46        // FIXME use goog.nullFunction ?
        #59        // FIXME factor out common code
        #76        // FIXME we shouldn't need a typecast here

      src/ol/interaction/dragpaninteraction.js has 2 matches:
        #1         // FIXME works for View2D only
        #39        // FIXME works for View2D only
2013-01-24 10:04:36 +01:00
2013-01-23 08:14:55 +01:00
2012-09-28 21:55:48 +02:00
2013-01-21 12:29:31 +01:00
2012-11-04 19:08:55 +01:00
2012-10-17 17:43:27 +02:00
2012-09-29 11:51:53 +02:00
2013-01-24 10:04:36 +01:00
2013-01-11 23:50:29 +01:00
2013-01-17 12:32:51 +01:00
2013-01-22 08:39:37 +01:00

OpenLayers 3

Travis CI Status

Hosted Examples

The examples are hosted on GitHub (as GitHub pages). See http://openlayers.github.com/ol3/master/examples/.

Build OpenLayers 3

Run build.py:

$ ./build.py

Run examples locally

Run the Plovr web server with:

$ ./build.py serve

Then, either open one of the example html files from the examples directory directly in your browser, or start a simple webserver, for example:

$ python -mSimpleHTTPServer

and explore the examples/ directory, for example by opening http://localhost:8000/examples/side-by-side.html.

You can turn off compilation by appending ?mode=RAW to the URL, for example http://localhost:8000/examples/side-by-side.html?mode=RAW.

Run tests

Run the plovr web server (see above), and either open the test/ol.html file in the browser (e.g. http://localhost:8000/test/ol.html), or run ./build.py test on the console (headless testing with PhantomJS).

See also the test-specific readme.

Run the linter

First, install the Closure Linter. Then:

$ ./build.py lint

Add examples

The examples are located in the examples directory. Adding a new example implies creating two files in this directory, a .html file and .js file. See examples/full-screen.html and examples/full-screen.js for instance.

The .html file needs to include a script tag with loader.js?id=<example_name> as its src. For example, if the two files for the examples are myexample.js and myexample.html then id should be set to myexample in the loader.js URL.

build.py serve should be stopped and restarted for the loader.js?id=<example_name> script tag to refer to a valid URL. build.py serve triggers the examples target which creates Plovr JSON file for each example.

Description
Languages
JavaScript 99%
CSS 0.6%
Handlebars 0.3%
Shell 0.1%