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
28155a4147
Fix check for missing goog.require directives
...
Take this example:
```
goog.require('ol.projection.addCommonProjections');
ol.projection.addCommonProjections();
```
Without this patch, the build_check_requires_timestamp target would report
that ``ol.projection`` is missing.
This is because ``ol.projection.addCommonProjections();`` would match both
``ol.projection.addCommonProjections and ``ol.projection`` provide
directives.
2013-03-14 15:22:00 +01: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
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
Éric Lemoine
ac86cc1058
Merge pull request #362 from Turbo87/test-improvements
...
Test improvements
2013-03-13 10:18:00 -07:00
Bruno Binet
7d675b73b4
Merge pull request #361 from bbinet/factorize-expandurl-code
...
Factorize code that expand a template url into multiples urls
2013-03-13 09:47:17 -07:00
Tobias Bieniek
47261124fc
test: Added expect(spy).to.be.called() syntactic sugar
2013-03-13 17:18:23 +01:00
Tobias Bieniek
93577bd335
test: Moved intersectsWith() testing function into test-extensions.js
2013-03-13 17:11:21 +01:00