Commit Graph

8586 Commits

Author SHA1 Message Date
Éric Lemoine
b7fa22c4d4 Add type VectorLayerOptions 2013-03-17 22:33:02 +01:00
Éric Lemoine
b381b28169 Merge pull request #381 from elemoine/countriesjson
The vector-layer example does not work when hosted
2013-03-17 01:36:35 -07:00
Éric Lemoine
392735c823 Merge pull request #384 from elemoine/optional
Exports fixes
2013-03-15 14:26:05 -07:00
Éric Lemoine
1f641c5933 Make the generated Export classes accept undefined
We have constructors, like ol.View2D and ol.control.Attribution, whose "options" argument is optional (opt_options). But currently, we cannot do "new ol.View2D()" in uncompiled code that uses an ol3 build compiled in advanced mode. This commit fixes that by changing the generated Export constructors.
2013-03-15 18:01:53 +01:00
Éric Lemoine
6eaad6a837 Source option "projection" is a ProjectionLike 2013-03-15 17:58:54 +01:00
Éric Lemoine
f86dfc3212 Remove ol.source.SourceOptions typedef
The ol.source.SourceOptions type is already declared in objectliteral.exports, so it should not be declared in the ol/source/source.js file.
2013-03-15 17:56:14 +01:00
Tom Payne
0a9cf1230e Merge pull request #374 from twpayne/functionality-not-form
You can't extend expect.js outside expect.js
2013-03-15 07:55:45 -07:00
Éric Lemoine
51625b8008 Make vector-layer example ignore XHR errors
This is a workaround for our check-example.js PhantomJS script to work with this example. Without this check-example.js fails because xhr.status is 0. I tried to give the explicit file:/// scheme as indicated in https://groups.google.com/d/msg/phantomjs/wFGme0pE-Tk/WUjU5s-27NwJ, but that didn't work for me.
2013-03-15 15:46:40 +01:00
Tom Payne
af6de5582a Add comment to highlight use of modified expect.js
Hat tip @marcjansen
2013-03-15 15:29:16 +01:00
Éric Lemoine
a34adc6f62 Add countries.json to examples data dir
The examples cannot use files located in the test dir, or they won't work when hosted as GitHub pages.
2013-03-15 14:25:05 +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
Tom Payne
c9f43b4da7 Move equalArray into expect.js 2013-03-15 01:39:11 +01:00
Tom Payne
79c77a6369 Move intersect into expect.js 2013-03-15 01:39:11 +01:00
Tom Payne
7c7c4df3fc Move called into expect.js 2013-03-15 01:17:28 +01:00
Tom Payne
62011dab28 Move roughlyEqual into expect.js 2013-03-15 01:17:28 +01:00
Tom Payne
bddaecbe69 Make it clear that ol3's expect.js is different 2013-03-14 23:33:58 +01:00
ahocevar
31e59d3a8b Merge pull request #373 from ahocevar/origin
Fixing origin for default tile grid. r=@twpayne,@elemoine
2013-03-14 11:47:06 -07:00
ahocevar
e9d86fdfdc Fixing origin for default tile grid
We count tiles from bottom to top, so we want the origin in the
bottom left corner, not the top left corner.
2013-03-14 18:27:18 +01:00
Frédéric Junod
b4317a8f9c Merge pull request #372 from fredj/typecast
Fix typecast
2013-03-14 09:42:46 -07:00
Frederic Junod
bce9e9d0de Fix typecast
Fix JSC_MISPLACED_TYPE_ANNOTATION warnings with the plovr 2013 release
candidate (http://plovr.com/plovr-2013-rc.jar)
2013-03-14 15:59:21 +01:00
Tom Payne
1d002dd4ae Merge pull request #368 from twpayne/equalarray
Add array value equality test
2013-03-14 07:42:40 -07:00
Bruno Binet
68714e73c3 Merge pull request #369 from bbinet/fix-unusedrequires
Remove unused goog.require directives
2013-03-14 07:21:28 -07:00
Bruno Binet
6cf20ef82f Remove unused goog.require directives
See #367.
2013-03-14 14:57:21 +01:00
Tom Payne
7222464426 Don't use goog.array in ol.Collection tests 2013-03-14 14:50:23 +01:00
Tom Payne
d7b13ab09f Add test for array equality
Hilariously, expect.js does not have one.
2013-03-14 14:49:43 +01:00
Éric Lemoine
4b18d3d89a Merge pull request #367 from elemoine/ratio
Make ratio configurable in WMS single image
2013-03-14 06:37:49 -07:00
Cédric Moullet
8532bc5a4d Make ratio configurable in WMS single image 2013-03-14 14:29:51 +01:00
Éric Lemoine
8ca763cdbd Merge pull request #330 from cedricmoullet/wmscustom
Add single image WMS with custom projection example
2013-03-14 06:21:42 -07:00
Éric Lemoine
453877455f Update CONTRIBUTING.md 2013-03-14 14:20:47 +01:00
Éric Lemoine
a924103335 Update CONTRIBUTING.md 2013-03-14 14:20:30 +01:00
Éric Lemoine
38f1af6204 Merge pull request #366 from elemoine/347
Add ScaleLine control to wms-custom-proj example
2013-03-14 06:15:50 -07:00
Cédric Moullet
d66e67966d Add ScaleLine control to wms-custom-proj example
This requires using Proj4js, and configuring it with an extent.
2013-03-14 14:01:29 +01:00
Bruno Binet
81089b2199 Remove unused goog.require directives 2013-03-14 12:39:51 +01:00
Bruno Binet
15ce80f42e Merge pull request #364 from bbinet/fix-check-requires
Fix check for unused goog.require directives
2013-03-14 04:29:41 -07: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
Bruno Binet
9b1c389c80 Remove unused goog.require directives 2013-03-14 11:39:43 +01:00
Marc Jansen
5059fe0be7 Adjust test syntax. 2013-03-14 11:31:58 +01:00
Bruno Binet
1eabd7f4e6 Fix check for unused goog.require directives 2013-03-14 11:30:05 +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