Commit Graph

13369 Commits

Author SHA1 Message Date
Bart van den Eijnden
08e2ccb59a Handle srsName better 2014-02-25 13:22:15 +01:00
Tom Payne
0118c3ec17 Activate useInterimTilesOnError in ol.renderer.dom.TileLayer 2014-02-25 13:12:23 +01:00
Tom Payne
8bd44b2fc6 Activate useInterimTilesOnError in ol.renderer.webgl.TileLayer 2014-02-25 13:09:10 +01:00
Tom Payne
0c7a19a307 Activate useInterimTilesOnError in ol.renderer.canvas.TileLayer 2014-02-25 12:59:09 +01:00
Bart van den Eijnden
cbe71fefd0 Merge pull request #4 from ahocevar/gml-stack
Use stack instead of recursion
2014-02-25 09:45:10 +01:00
ahocevar
b4454535f7 Use stack instead of recursion for features
This also allows us to work without a local copy of the
namespace URIs.
2014-02-25 09:34:38 +01:00
Tim Schaub
bfc42ffa62 More realistic precision for cosine distance results
Chris Veness' discussion of using the spherical law of cosines (http://www.movable-type.co.uk/scripts/latlong.html) suggests it gives well-conditioned results "around 1 metre" in JavaScript (this assumes a sphere with 6,371km radius).

In Chrome 33, Math.pow(Math.cos(Math.PI / 4), 2) yields 0.4999999999999999.  When we take the arccosine of twice this, we get something significantly different than zero.  Multiplying by 6371 means we can't assert that this is within 1e-9 of zero.
2014-02-24 15:54:17 -07:00
Tim Schaub
ac83bb78f1 More repeated test cases 2014-02-24 15:02:30 -07:00
Tim Schaub
b01e90b942 Removing repeated test cases 2014-02-24 14:59:18 -07:00
Tim Schaub
7f1a13361b Remove antipodal test cases
The Vincenty formula can fail to converge for antipodal points (see http://en.wikipedia.org/wiki/Vincenty's_formulae#Nearly_antipodal_points), so those test cases are removed.  These tests fail with the latest V8 due to optimization of trig functions with lookup tables.  For example, Math.cos(Math.PI / 2) is no longer calculated based on the value of Math.PI / 2 (which is different than the actual value of π / 2).  Instead, values close to multiples of π / 2 are determined to be 0 (which is arguably what you want).  Previously the tests were relying on very small numbers being returned in this case.
2014-02-24 14:53:00 -07:00
Tim Schaub
2537fb4574 Fixing test failure on Chrome 33 2014-02-24 14:53:00 -07:00
Tom Payne
d0a352816c Add useInterimTilesOnError property to ol.layer.Tile 2014-02-24 21:30:39 +01:00
Tom Payne
8c665c0bb1 Move preload property default value into ol.renderer.Layer#manageTilePyramid 2014-02-24 21:26:11 +01:00
Bart van den Eijnden
0a71b5bbaa Rename NAMESPACE_URIS_ to namespaceURIs_ 2014-02-24 16:59:08 +01:00
Bart van den Eijnden
d2c88c1ea3 Use readFeatureFromNode instead 2014-02-24 16:49:35 +01:00
Bart van den Eijnden
0a93bb38f8 Copy NAMESPACE_URIS_ array to the instance 2014-02-24 16:01:15 +01:00
Tom Payne
53d9335282 Merge pull request #1753 from oterral/fix_typo
Fix option name zoomInTipLabel
2014-02-24 15:37:47 +01:00
oterral
7e842b0850 Fix option name zoomInTipLabel 2014-02-24 15:26:13 +01:00
Bart van den Eijnden
831d233874 Move parseGeometry workaround into the tests 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
a095d41ac4 Add support for axis orientation 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
7145179c30 Port over more test cases 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
dd8d69f976 Call setGeometryName on the feature 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
b2885217df Add feature parsing from WFS FeatureCollection 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
796e7be623 Add preliminary read support for features 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
54426133ab Add test case for gml:LinearRing 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
9e44e79789 Add support for gml:MultiSurface 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
e479bd142f Add gml:MultiCurve support 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
086828ba14 Add support for gml:MultiPolygon 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
a484452207 Add support for gml:MultiLineString 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
aa4d798dc7 Add gml:MultiPoint parsing 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
95bbb849bb Deal with srsDimension 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
877d5a445e Add parser for gml:Envelope 2014-02-24 15:25:52 +01:00
Bart van den Eijnden
85fe1bf737 Add parsing for gml:Curve 2014-02-24 15:25:52 +01:00
Bart van den Eijnden
e845d6558c Add parsing for gml:Surface 2014-02-24 15:25:52 +01:00
Bart van den Eijnden
ae1e660ab4 Add geometry parsing for point, line, polygon 2014-02-24 15:25:52 +01:00
ahocevar
28d0d82253 Merge pull request #1716 from ahocevar/gpx-write
Write support for ol.format.GPX
2014-02-24 14:23:16 +01:00
ahocevar
3a560c9843 Put jsdoc comment into effect 2014-02-24 14:14:13 +01:00
ahocevar
bb38771096 No magic for namespace URI 2014-02-24 14:13:41 +01:00
ahocevar
c1a966bb6f namespaceURI can be null, but not undefined 2014-02-24 13:55:20 +01:00
Tom Payne
f028befdf9 Merge pull request #1739 from twpayne/rotate-with-map
Allow icons to be rotated with the map
2014-02-24 13:06:48 +01:00
Antoine Abt
e213bccef7 Merge pull request #1740 from tonio/interaction_api
Editing interaction api cleanup
2014-02-24 08:46:49 +01:00
Tom Payne
55755871c2 Use write to avoid newline problems 2014-02-23 14:45:30 +01:00
Tom Payne
8e9d5fb0e9 Always write binary files in mode wb 2014-02-23 14:33:38 +01:00
Tom Payne
48b85316bb Always read binary files with mode rb 2014-02-23 14:33:38 +01:00
Tom Payne
3aedca7bd6 Always read line-by-line with mode rU 2014-02-23 13:50:54 +01:00
ahocevar
7b56abdac7 Get rid of compiler warnings 2014-02-23 01:50:59 +01:00
Tim Schaub
9d06dd82ff Merge pull request #1745 from tschaub/linked-css
Don't inject stylesheets with JavaScript.
2014-02-22 09:08:20 -07:00
Tim Schaub
e633f7f8c1 Don't inject stylesheets with JavaScript
This reverts 4d619d71b1 (see #1527), going back to what we had after e13075f6ff (see #881).

To avoid the 404 in the hosted examples, the css is copied to the same relative path when hosted as during development.
2014-02-21 18:45:46 -07:00
ahocevar
696425af36 Documentation and cleanup 2014-02-21 22:49:33 +01:00
ahocevar
480a6a85ba Add trk serialization for ol.format.GPX 2014-02-21 20:27:04 +01:00