Commit Graph

16511 Commits

Author SHA1 Message Date
Andreas Hocevar
9a58151caa Do not wrapX for editing 2015-04-18 19:10:54 +02:00
Andreas Hocevar
d5e5628fe1 Add some tests 2015-04-18 19:10:54 +02:00
Andreas Hocevar
b51aaa5055 Wrap the x-axis for the map's replay group 2015-04-18 19:10:53 +02:00
Andreas Hocevar
45cc660c48 Use x of the real world in forEachFeatureAtCoordinate 2015-04-18 19:10:53 +02:00
Andreas Hocevar
a90a012e5d Replay vector batches for each world 2015-04-18 19:10:53 +02:00
Marc Jansen
a948ed410e Merge pull request #3583 from marcjansen/one-sentence-proj-layer
Add a one sentence summary for ol.proj.* and ol.layer.* exportable symbols
2015-04-18 18:14:12 +02:00
Tim Schaub
62e7f69be4 Merge pull request #3581 from tschaub/doc-links
Always show links to related API documentation.
2015-04-18 08:47:01 -06:00
Tim Schaub
7ca20665a5 Merge pull request #3582 from tschaub/index-requires
Index what the examples require.
2015-04-18 08:41:46 -06:00
Marc Jansen
a278c65e61 Add basic docs for layer.Vector 2015-04-18 09:07:41 +02:00
Marc Jansen
041abdb6a1 Add basic docs for layer.Tile 2015-04-18 09:07:34 +02:00
Marc Jansen
b457b26743 Add basic docs for layer.Group 2015-04-18 09:07:13 +02:00
Marc Jansen
b46505a09b Add basic docs for layer.Base 2015-04-18 09:07:05 +02:00
Marc Jansen
18bb32e409 Add basic docs for layer.Image 2015-04-18 09:01:15 +02:00
Marc Jansen
192639a876 Add basic docs for layer.Heatmap 2015-04-18 09:00:51 +02:00
Marc Jansen
0360e8bce8 Add unit 'us-ft' to API docs 2015-04-18 08:26:26 +02:00
Tim Schaub
2dd3fbf307 Renaming and docs for clarity 2015-04-17 16:09:43 -06:00
Tim Schaub
bc1bde6a86 Index what the examples require 2015-04-17 16:03:55 -06:00
Tim Schaub
e65800ca63 Always show links to related API documentation
This is based on the assumptions that

 * our examples always goog.require something ol.* (otherwise why have the example)
 * our examples only goog.require exportable symbols or "namespaces" for exportable symbols (e.g. ol.control for the defaults function)
 * we have an API doc page for each exportable symbol and each "namespace" that has exportable symbols (e.g. ol.Map.html and ol.control.html)

It may be that this assumption proves to be wrong, but it would be nice to avoid the extra network traffic and layout shifting when examples load.
2015-04-17 15:41:38 -06:00
Marc Jansen
f07b14c436 Merge pull request #3580 from marcjansen/one-sentence-source
Add a one sentence summary for ol.source.* exportable symbols
2015-04-17 23:01:12 +02:00
Marc Jansen
0ea3645ae9 Merge pull request #3551 from marcjansen/examples-link-to-api-docs
Automatically add links to API-docs in examples
2015-04-17 22:52:19 +02:00
Marc Jansen
99e39fe06e Add basic documentation to @api symbols 2015-04-17 22:38:29 +02:00
Bart van den Eijnden
8f0d6a6382 No need to quote object properties in tests 2015-04-17 21:56:40 +02:00
Tim Schaub
857baaa7e6 Merge pull request #3575 from nd0ut/master
Check proj equivalence by code.
2015-04-17 13:55:29 -06:00
Marc Jansen
0fcd312812 Check if API-docs point to existing resources 2015-04-17 21:54:15 +02:00
Marc Jansen
fedceb9a05 Automatically add links to API-docs in examples
When we create the examples, we know exactly which specific `ol.…` symbols
we `goog.require(…)`. We can create links to the API documentation of these
symbols automatically.
2015-04-17 21:50:50 +02:00
Tim Schaub
eff48c026a Merge pull request #3579 from tschaub/ssl
Use HTTPS were available.
2015-04-17 11:10:14 -06:00
Tim Schaub
ad95efd795 Use HTTP for {a-c}.tile.opencyclemap.org
While the resource is available via HTTPS, it currently generates NET::ERR_CERT_COMMON_NAME_INVALID.
2015-04-17 10:40:59 -06:00
Bart van den Eijnden
32120f6cfb Move examples to examples directory 2015-04-17 18:39:05 +02:00
Bart van den Eijnden
560a45847f No quotes needed around object keys 2015-04-17 18:36:17 +02:00
Bart van den Eijnden
4901d9a48f Primitive types are not nullable by default 2015-04-17 18:36:17 +02:00
Bart van den Eijnden
6c4f2a4ce3 Document convert rings function and use GeometryType enums 2015-04-17 18:36:16 +02:00
Bart van den Eijnden
a438ffb280 Add full support for XYM and XYZM layouts 2015-04-17 18:36:16 +02:00
Bart van den Eijnden
db8c6ef1b4 Write support for Esri JSON 2015-04-17 18:36:16 +02:00
Bart van den Eijnden
93c524baa0 Esri JSON read support 2015-04-17 18:36:16 +02:00
Tim Schaub
3b1c33ded5 Remove unused ol.IS_HTTPS 2015-04-17 10:30:31 -06:00
Tim Schaub
b22f3c6829 Use HTTPS where available 2015-04-17 10:30:31 -06:00
Tim Schaub
0dfc2ce44f Avoid protocol relative URLs
These fail to load in contexts where the "file protocol" is used (e.g. PhantomJS).
2015-04-17 10:30:31 -06:00
Tim Schaub
bba326fdf4 Merge pull request #3558 from tschaub/built-examples
Example sources in examples dir and built examples in build/examples.
2015-04-17 10:17:41 -06:00
Tim Schaub
13e40fb98c Merge pull request #3550 from tschaub/fewer-differences
Reduce differences between the rendering test runner and the standard test runner.
2015-04-17 10:16:00 -06:00
Tim Schaub
14b7edb140 Keep the examples simple
Please write blog posts, create tutorials, or develop workshops that show off cool ways to develop applications that use OL3.  The examples should be kept very simple.  This download functionality is neat, but it's really a gratuitous use of non-map related functionality.  While it does demonstrate the use of `format.writeFeatures()`, this is buried in too much additional code that is not accessible (buried in resources/common.js) and not really related to mapping things.  If we want to have examples that demonstrate how formats can be used to serialize features, a simple textarea would suffice as the target.
2015-04-17 09:55:44 -06:00
Tim Schaub
c5cf709c55 The common.js script makes a "common" object available 2015-04-17 09:49:53 -06:00
Tim Schaub
eff14b06e0 Refactor common example script and run the linter on it 2015-04-17 09:43:46 -06:00
Tim Schaub
f2600977ae Avoid words with contentious alternative spellings 2015-04-17 09:43:37 -06:00
Tim Schaub
4e8b10ae1c Use --ssl-protocol=any in PhantomJS with a page that uses HTTPS
The `check-examples` target fails on Travis without this option.  We get "SSL handshake failed" when loading resources via HTTPS with whatever the default SSL protocol is.

In addition, as a precaution, the --ignore-ssl-errors option is set to true in case anybody adds a resource with an invalid certificate.  This option does not get around SSL handshake errors.
2015-04-17 09:18:39 -06:00
Tim Schaub
7c8eaae6a1 Remove jQuery from mobile fullscreen example 2015-04-17 06:22:39 -06:00
Tim Schaub
f712123e93 Remove jQuery use from IGC example 2015-04-17 06:22:39 -06:00
Tim Schaub
c385a1b7dd Remove jQuery use from earthquake heatmap example 2015-04-17 06:22:39 -06:00
Tim Schaub
2f160d29c7 Remove jQuery use from geolocation example 2015-04-17 06:22:39 -06:00
Tim Schaub
c3362c1685 Remove jQuery use from geolocation orientation example 2015-04-17 06:22:39 -06:00
Tim Schaub
0121a12293 Remove jQuery use from device orientation example 2015-04-17 06:22:39 -06:00