Commit Graph
100 Commits
Author SHA1 Message Date
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
Marc Jansen 6600435378 Remove dangling whitespace. 2013-03-05 15:29:47 +01:00
Marc Jansen 192f29513e Merge pull request #189 from marcjansen/travis-tests
Fix the serve-precommit target. (r=@elemoine/@twpayne)
2013-02-12 06:10:26 -08:00
Marc Jansen d851cac891 Fix the serve-precommit target.
When the plovr-jar is being invoked in the serve-precommit target, it needs
the JSON files in `test/` as well to have all requirements for headless testing.

This should also reenable running the testsuite on our continuous integration
server.
2013-02-12 14:28:58 +01:00
Marc Jansen a0932c6cba Merge pull request #177 from marcjansen/build-clean
(Re)add a reallyclean target to the build. (r=@elemoine)
2013-02-12 01:57:01 -08:00
Marc Jansen 6de649f6c6 (Re)add a reallylean target to the build.
Previously we had both a `clean` and `reallyclean` in our Makefile; both
got lost when we switched to a python build.

A clean 'target' can be invoked by calling the build script with the '-c' flag:
  ./build.py -c

This commit readds the `reallyclean` target and lets it clean up a little more
than the Makefiles `clean` or `reallyclean` did. More files are deleted,
but only if these are being ignored inside of the repository (e.g. through
.gitignore files).
2013-02-12 10:11:14 +01:00
Marc Jansen a6f987049e Merge pull request #154 from marcjansen/todo
Add fixme/todo target to build.py.
2013-01-24 23:47:52 -08:00
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
Marc Jansen 6d3e0778e1 Merge pull request #150 from marcjansen/zoombtn-radius
Adjust border-radius of zoom buttons.
2013-01-22 23:56:28 -08:00
Marc Jansen 9af78dd2fe Adjust border-radius of zoom buttons. 2013-01-23 08:14:55 +01:00
Marc Jansen 577fc86684 Merge pull request #147 from marcjansen/goog.now
Use goog.now() instead of Date.now().
2013-01-22 03:13:15 -08:00
Marc Jansen 8d979127fc Use goog.now() instead of Date.now().
Date.now() is not supported in Internet Explorer up to IE 9. The goog.now()
method can be used as a replacement.
2013-01-22 12:01:44 +01:00
Marc Jansen 1670972a9e Ignore all *.pyc files. 2013-01-07 09:08:14 +01:00
Marc Jansen dd566ba595 Ignore pake.pyc file. 2013-01-06 16:08:21 +01:00
Marc Jansen bd4c7f83f6 Merge pull request #46 from marcjansen/master
Replace tabs with spaces.
2012-10-03 23:38:54 -07:00
Marc Jansen 07730d44d6 Replace tabs with spaces. 2012-10-04 08:34:29 +02:00
Marc Jansen 1d12c1b5d8 Better test description. 2012-06-25 23:23:42 +02:00
Marc Jansen f477fd8ced Allow multi* geometries in Collections/collections. 2012-06-25 23:19:25 +02:00
Marc Jansen 29b684f916 Correct the formatPoint test to use API methods. 2012-06-25 23:03:01 +02:00
Marc Jansen ca5b06f108 Add exports for multilinestring. 2012-06-25 23:02:35 +02:00
Marc Jansen 25202cae6d Add a LineStringLike typedef. 2012-06-25 22:46:11 +02:00
Marc Jansen 0a60d2dc82 Include test spec in api.html. 2012-06-25 22:45:17 +02:00
Marc Jansen 7eef78ed4c Add geom/multilinestring classes and tests. 2012-06-25 22:44:42 +02:00