Commit Graph
100 Commits
Author SHA1 Message Date
Marc Jansen e4d1d60a73 Merge pull request #3445 from marcjansen/faq
Start a FAQ document.
2015-04-03 21:12:26 +02:00
Marc Jansen b8cf41a8c9 Merge pull request #3468 from marcjansen/coveralls-executable
Use the coveralls executable.
2015-04-03 21:09:42 +02:00
Marc Jansen 8e86fca453 Merge pull request #3473 from marcjansen/rotate-test
Add more tests for ol.coordinate.
2015-04-02 20:19:30 +02:00
Marc Jansen 3245fa43ae Add more tests for ol.coordinate. 2015-04-02 19:16:05 +02:00
Marc Jansen e3face3d9d Position the rotate control lower than usual
This way it does not overlap with the fullscreen control.
2015-04-02 19:10:16 +02:00
Marc Jansen 1940f33c43 Add a FAQ document. 2015-04-02 17:20:07 +02:00
Marc Jansen 1125e45856 Merge pull request #3467 from openlayers/coveralls-badge
Update the coveralls badge.
2015-04-02 13:44:54 +02:00
Marc Jansen bca661ee57 Update the coveralls badge. 2015-04-02 13:21:35 +02:00
Marc Jansen 127e626315 Use the coveralls executable. 2015-04-02 13:15:55 +02:00
Marc Jansen 72a4b31e86 Merge pull request #3466 from marcjansen/show-coverage
Include coveralls code-coverage badge in README.
2015-04-02 12:58:15 +02:00
Marc Jansen 6aef9fe67a Include coveralls code-coverage badge in README. 2015-04-02 12:54:05 +02:00
Marc Jansen d824996b97 Merge pull request #3457 from marcjansen/test-coverage
Integrate istanbul for test coverage
2015-04-02 12:04:26 +02:00
Marc Jansen 8c8bd50a4a Add test-coverage target to build.py.
As suggested by @tsauerwein.
2015-04-02 11:49:32 +02:00
Marc Jansen 245aec8eba Fix typos in doc-comments. 2015-04-02 09:45:25 +02:00
Marc Jansen 17ea9ecef5 Run the istanbul code-coverage via node script. 2015-04-02 09:16:43 +02:00
Marc Jansen 6a9c8f36f7 Refactor tasks/test.js to be more modular.
This way the main functionality of the script can be reused in the
tasks/test-coverage.js script, which has to run the testsuite as well.
2015-04-02 09:13:17 +02:00
Marc Jansen e5f6bae49b Merge pull request #3428 from marcjansen/reorder-assertions
Reorder assertions and variable declarations.
2015-03-31 10:31:34 +02:00
Marc Jansen 2077211e67 Reorder assertions and variable declarations. 2015-03-31 10:19:04 +02:00
Marc Jansen fb9ba22c30 Add message to assertions. 2015-03-30 22:53:03 +02:00
Marc Jansen 6a1d143f9f Merge pull request #2784 from marcjansen/tag-kml-example
Add 'tooltip'-tag to KML example.
2014-10-02 10:23:58 +02:00
Marc Jansen 46db263088 Add 'tooltip'-tag to KML example.
Fixes #2708.
2014-10-01 20:35:21 +02:00
Marc Jansen dfa6a7c497 Merge pull request #2704 from gberaudo/pooled_example_checks
Use pool thread for calling bin/check-example.js.
2014-09-11 17:35:26 +02:00
Marc Jansen b60609d93c Make stroke style of the graticule configurable 2014-08-08 08:28:34 +02:00
Marc Jansen 495ad3de93 Merge pull request #2452 from marcjansen/test-typo
Fix typo in ol.Map test.
2014-07-28 09:36:28 +02:00
Marc Jansen 2e37a34459 Fix typo in ol.Map test. 2014-07-28 09:35:23 +02:00
Marc Jansen f5bb790509 Merge pull request #2167 from elemoine/graticule
Add a Graticule component
2014-07-24 19:13:26 +02:00
Marc Jansen 8b7f80c64e Merge pull request #2425 from marcjansen/examples
Add examples to ol.coordinate functions
2014-07-23 09:26:47 +02:00
Marc Jansen 64c03d0f9c Add examples to ol.coordinate functions. 2014-07-23 09:15:50 +02:00
Marc Jansen 434bf0bf42 Merge pull request #2409 from vicb/patch-1
fix: typos in map.js
2014-07-20 17:37:16 +02:00
Marc Jansen 5cd202d50b Merge pull request #2355 from probins/mapelements
Document map DOM elements
2014-07-13 11:05:05 +02:00
Marc Jansen 59fe635b46 Merge pull request #2350 from probins/obj
Expand on docs for observable properties
2014-07-12 17:51:47 +02:00
Marc Jansen 4fed441eda Merge pull request #2280 from probins/intro
Introduction tutorial
2014-07-03 16:53:55 +02:00
Marc Jansen 700a0b15b3 Merge pull request #2278 from probins/control
Document custom controls
2014-07-02 18:52:34 +02:00
Marc Jansen fdf0525c71 Merge pull request #2286 from probins/defines
Improve docs for define tag
2014-07-02 18:45:27 +02:00
Marc Jansen a3e332c0c2 Merge pull request #2282 from marcjansen/coordinate-tests
Add more tests to ol.coordinate
2014-07-01 17:14:44 +02:00
Marc Jansen 70548b4704 Add tests for ol.coordinate.equals(). 2014-07-01 17:02:34 +02:00
Marc Jansen 00fd5caa92 Add tests for ol.coordinate.createStringXY(). 2014-07-01 17:02:34 +02:00
Marc Jansen 07b41f84d0 Add tests for ol.coordinate.add(). 2014-07-01 17:02:34 +02:00
Marc Jansen 8f81f2e453 Merge pull request #2267 from probins/sig
Docs: fix missing space on type signature
2014-06-28 14:54:59 +02:00
Marc Jansen f2389a9a7d Merge pull request #2231 from probins/patch-1
Correct minor typo in ol.extent.buffer docs
2014-06-21 18:32:34 +02:00
Marc Jansen 43a9dbd6a8 Merge pull request #1925 from marcjansen/keyboard-interaction-docs
Correct documentation for `keyboardEventTarget`.
2014-03-31 10:34:54 +02:00
Marc Jansen 8b538d765a Correct documentation for keyboardEventTarget. 2014-03-31 10:23:39 +02:00
Marc Jansen 84463f59d4 Merge pull request #1614 from Intermedix/ol-touch-zoomslider
Add styles for .ol-touch .ol-zoomslider
2014-03-24 09:24:23 +01:00
Marc Jansen 044b8380fa Merge pull request #1817 from marcjansen/fix-modify-example
Close polygon in modify-feature example.
2014-03-07 10:25:47 +01:00
Marc Jansen 8a4fba360b Close polygon in modify-feature example. 2014-03-07 10:07:47 +01:00
Marc Jansen e5fe832839 Merge pull request #1814 from marcjansen/no-jsdoc-googx
Exclude `googx/dom/fullscreen.js` from API-docs
2014-03-06 17:12:28 +01:00
Marc Jansen 4107b140a6 Adjust parameters of jsdoc-call in build.py.
The `src`-directory is no longer defined on the commmandline
and the `index.md` as explicit source file is now the first
argument.
2014-03-06 16:08:46 +01:00
Marc Jansen 32524d186a Add explicit includes/excludes to jsdoc config. 2014-03-06 16:06:51 +01:00
Marc Jansen 7910e98c7a Merge pull request #1779 from marcjansen/build.py-help
Minor change of wording in `build.py help`.
2014-02-28 10:33:55 +01:00
Marc Jansen fbecd9a6b9 Minor change of wording in build.py help. 2014-02-28 10:31:53 +01:00
Marc Jansen 0b51772b8c Merge pull request #1447 from probins/build
Make build.py compatible with Python 2.6
2013-12-29 15:08:57 -08:00
Marc Jansen 22a90232be Merge pull request #1307 from marcjansen/right-align
Better formatted output for formatted sizes.
2013-11-21 13:40:43 -08:00
Marc Jansen ed986afe26 Better formatted output for formatted sizes. 2013-11-21 22:26:11 +01:00
Marc Jansen 1f2ae57e73 Merge pull request #1062 from marcjansen/help-typos
Fix typos in build.py's help target.
2013-09-25 10:59:17 -07:00
Marc Jansen 4b60829b4a Fix typos in build.py's help target.
See #1034. Thanks @probins.
2013-09-25 19:56:32 +02:00
Marc Jansen 6a39d11222 Merge pull request #1034 from marcjansen/build-help
Add a help-target to build.py.
2013-09-20 03:47:21 -07:00
Marc Jansen 346fe30a1b Merge pull request #1038 from marcjansen/example-compression-selection
examples: remove social links / include tool to switch compression
2013-09-19 06:10:53 -07:00
Marc Jansen 9e0b560cf6 Remove now obsolete file social-link.js. 2013-09-19 15:05:31 +02:00
Marc Jansen 62a7505d2b Mention default target 'build' in the help output. 2013-09-18 17:49:17 +02:00
Marc Jansen 6d40b170d6 Examples: Remove social links. 2013-09-18 17:39:52 +02:00
Marc Jansen 886e38a69b Examples: Add switch compilation level tool. 2013-09-18 17:26:46 +02:00
Marc Jansen 9deffc9d87 Merge pull request #1035 from marcjansen/jsdoc
Fix spelling on API-doc index page.
2013-09-18 04:50:25 -07:00
Marc Jansen 67f2e57635 Fix spelling on API-doc index page. 2013-09-18 13:48:47 +02:00
Marc Jansen b8a7c5ee9e Add a help-target to build.py. 2013-09-18 13:24:02 +02:00
Marc Jansen 19e6569b69 Merge pull request #462 from marcjansen/same-name
Rename *.exports to match their *.js counterparts.
2013-04-04 02:02:21 -07:00
Marc Jansen 6ca21b32a9 More renames as suggested by @elemoine. 2013-04-04 10:25:11 +02:00
Marc Jansen 636a189330 Merge pull request #461 from marcjansen/istanbul
Fix typo in example.
2013-04-03 23:28:03 -07:00
Marc Jansen 523506ef86 Rename *.exports to match their *.js counterparts. 2013-04-04 07:40:16 +02:00
Marc Jansen 66c03f4178 Fix typo in example. 2013-04-04 07:27:53 +02:00
Marc Jansen 2678c07caf Merge pull request #412 from marcjansen/submittable
Keep the search-filter on submit in example index.
2013-03-21 07:37:59 -07:00
Marc Jansen 10ef5eff8b Keep the search-filter on submit in example index.
When one would hit `ENTER` after filtering the list of examples, the form would
be submitted and the filter would be gone after the page reload. By giving the
main search field the appropriate `name`-attribute, this is being solved.
2013-03-21 15:32:06 +01:00
Marc Jansen 6068895a44 Merge pull request #379 from marcjansen/progressbar
Restrict width of progressbar in example-screenshot.js
2013-03-15 04:12:51 -07:00
Marc Jansen a8457cb736 Merge pull request #378 from marcjansen/examples-file-protocol
Add fallback host when examples are accessed through file:-protocol.
2013-03-15 03:50:48 -07:00
Marc Jansen 92a358967f Restrict progressbar to fixed width.
As more and more examples will be processed with this script, the
progresbar would grow way too long. This commit makes the width of
the bar fixed. Every character in the bar now equals 5% progress,
regardless of the number of examples.
2013-03-15 11:43:50 +01:00
Marc Jansen 24d3c903fe Reformatted and gjslinted example-screenshot.js. 2013-03-15 11:40:55 +01:00
Marc Jansen 3860f806d1 Merge pull request #377 from marcjansen/use-css-constant
Use CSS class constant in zoomslider.
2013-03-15 03:06:43 -07:00
Marc Jansen 2641a1135f Add fallback when examples are opened w/ file://.
When opening an example through the `file:`-protocol, e.g.
`file:///ol3/examples/full-screen.html` our `loader.js` would inject
a `<script>` tag with a `src` pointing to an illegal URL
`http://:9810/compile?mode=ADVANCED&id=full-screen`.

This changes the respective logic, so that in the case that we are accessed
through the `file:`-protocol, we fallback to using `localhost` as hostname
for the plovr-compiler.

The examples that do not use XHR (like e.g. `wms-capabilities.html`) now
work as expected when accessed through `file:`-protocol.
2013-03-15 10:29:01 +01:00
Marc Jansen 8692c42318 Merge pull request #376 from marcjansen/singular-plural
Use correct singular/plural of noun.
2013-03-15 02:03:49 -07:00
Marc Jansen 250e17561a Use CSS class constant in zoomslider. 2013-03-15 10:02:12 +01:00
Marc Jansen b43f25971b Use correct singular/plural of noun. 2013-03-15 09:35:33 +01:00
Marc Jansen 88dd98af8b Merge pull request #345 from marcjansen/zoomslider-own-ui-2
Add a zoomslider control. (r=@twpayne,@elemoine,@fredj)
2013-03-14 04:06:56 -07:00
Marc Jansen 5059fe0be7 Adjust test syntax. 2013-03-14 11:31:58 +01:00
Marc Jansen 1040a082c1 Remove CSS workarounds as suggested by @fredj. 2013-03-14 09:37:36 +01:00
Marc Jansen 9798eb5fa8 Don't use non-exported method in example. 2013-03-14 09:37:36 +01:00
Marc Jansen e872a49beb Use getContentBoxSize() for slider initialisation.
Initial note to revisit this came from @twpayne; thanks.
2013-03-14 09:37:36 +01:00
Marc Jansen 94d7379ba3 Correct API documentation. 2013-03-14 09:37:35 +01:00
Marc Jansen 220c7bd6f8 More specific argument type of callback method. 2013-03-14 09:37:35 +01:00
Marc Jansen bc07722816 Unregister previous event listeners, if any.
Thanks for spotting this, @twpayne.
2013-03-14 09:37:35 +01:00
Marc Jansen d77a8b0a1d Add an assertion to the dragchange handler.
This ensures that the result of resolution calculation stays inside of the
allowed bounds.
2013-03-14 09:37:35 +01:00
Marc Jansen ce67625b20 Use OSM resolutions as fallback resolutions.
Hat tip to @twpayne for suggesting this change in the defaults.
2013-03-14 09:37:35 +01:00
Marc Jansen f496471273 Simplify example and let it use real resolutions.
Thanks to @twpayne for the suggestion.
2013-03-14 09:37:35 +01:00
Marc Jansen 8bf71ebb3a Add a zoomslider control. 2013-03-14 09:37:35 +01:00
Marc Jansen e1bfc0c9dd Merge pull request #355 from marcjansen/screenshot
Add a screenshot script for our examples. (r=@twpayne,@elemoine)
2013-03-13 08:56:32 -07:00
Marc Jansen 2b4545e221 Ignore fewer files and clip correctly. 2013-03-13 16:09:05 +01:00
Marc Jansen 3a863ddf3e Add a screenshot script for our examples.
This script is supposed to be executed via phantomjs. It will generate
screenshots of the html files in the directory specified by a commandline
option when these files are served through a webserver which can also be
specified. The screenshots will be saved in the passed directory.

Example usage:

    user@host:~/ol3/bin $ phantomjs example-screenshot.js \
                          http://localhost:8000/ol3/examples/ \
                          ../examples/

The above command will generate `*html.png` files in `tools/` for all html files
that are served through `http://localhost:8000/ol3/examples/`.

So if there is a file `my-humpty-example.html` inside of the relative folder
`../examples/` which is being served through the webserver so that
`http://localhost:8000/ol3/examples/my-humpty-example.html` is a valid and
reachable URL, this script will generate a screenshot and store it as
`../examples/my-humpty-example.html.png`.

The query string `?mode=raw` will be appended to the generated URL.

Known limitations:

As phantomjs doesn't support WebGL (see e.g.
https://github.com/ariya/phantomjs/wiki/Supported-Web-Standards and
http://code.google.com/p/phantomjs/issues/detail?id=273) This won't render
OpenLayers maps rendered through the webglrenderer.

In parts based upon this gist: https://gist.github.com/crazy4groovy/3160121
2013-03-13 15:50:55 +01:00
Marc Jansen 06f8d1356d Merge pull request #352 from marcjansen/unselectable-css-const
Use constant for CSS class 'ol-unselectable'.
2013-03-12 03:30:38 -07:00
Marc Jansen 5e5e4d110a Use constant for CSS class 'ol-unselectable'. 2013-03-12 10:34:49 +01:00
Marc Jansen 5b258ca23f Merge pull request #283 from marcjansen/test-output
Nicer test output for headless tests
2013-03-05 07:07:25 -08:00
Marc Jansen aed6e4c1e3 JSHintified, thanks @elemoine. 2013-03-05 16:05:07 +01:00
Marc Jansen 2c1fa61078 Nicer output of console runner. 2013-03-05 15:30:01 +01:00