Commit Graph

12909 Commits

Author SHA1 Message Date
Tom Payne
23f6fc0d0f Merge pull request #1732 from twpayne/render-sync
Switch to asynchronous rendering by default
2014-02-27 11:03:20 +01:00
Frédéric Junod
b8d7bc93b2 Merge pull request #1772 from fredj/doc
Minor doc updates
2014-02-27 10:57:49 +01:00
Frederic Junod
2f50fcc56c Better ol.Geolocation documentation 2014-02-27 09:25:50 +01:00
Frederic Junod
431ef6ef07 Add newline in quick start doc 2014-02-27 09:23:23 +01:00
Frederic Junod
2f73816916 Fix path to ol.css 2014-02-27 09:23:00 +01:00
ahocevar
f9a9f70a43 Merge pull request #1770 from ahocevar/export-circle
Export #drawCircleGeometry()
2014-02-26 18:36:46 +01:00
Tom Payne
8a8de9d3cc Merge pull request #1769 from twpayne/clean-ups
Trivial clean-ups
2014-02-26 18:27:35 +01:00
Antoine Abt
c915e1209a Merge pull request #1761 from tonio/chrome_buttons
Fix button tips not disappearing on Chrome
2014-02-26 18:24:29 +01:00
ahocevar
bd22ebca45 Export #drawCircleGeometry()
Especially with the immediate API, it is convenient to be able
to draw cirlces.
2014-02-26 18:22:44 +01:00
Tom Payne
1a81227aef Remove trailing whitespace 2014-02-26 17:58:43 +01:00
Tom Payne
c5f7d08694 Remove stray comma 2014-02-26 17:56:22 +01:00
Frédéric Junod
74dd99485a Merge pull request #1751 from elemoine/vectorlayer
Fix type error in ol.layer.Vector
2014-02-26 17:24:04 +01:00
Éric Lemoine
e43a8d116e Fix type error in ol.layer.Layer 2014-02-26 16:44:52 +01:00
Frederic Junod
69749dee55 Fix type error in ol.layer.Vector 2014-02-26 16:39:21 +01:00
Tom Payne
0daa2b1781 Merge pull request #1757 from twpayne/interim-tiles-on-error
Add option to use interim tiles on tile errors
2014-02-26 16:36:52 +01:00
Tom Payne
e3980078d9 Merge pull request #1764 from bentrm/win-build
Updated build script to run target integration-test in Win
2014-02-26 13:22:04 +01:00
Benjamin Thurm
cb8d9d9b68 Update Win build defaults with min fallbacks 2014-02-26 11:42:34 +01:00
Antoine Abt
d53fa8f45a Fix chrome not to blur on mouseout/focusout
may be related to https://code.google.com/p/chromium/issues/detail?id=321264 ?
2014-02-26 11:24:54 +01:00
Antoine Abt
7426da61ea Make ZoomToExtent listen on button click
& not its container
2014-02-26 11:15:03 +01:00
Benjamin Thurm
1253765c89 Remove unused import and variable 2014-02-26 10:28:09 +01:00
Benjamin Thurm
a19e992a5b Run files via shell commands for Win compatibility 2014-02-26 09:53:56 +01:00
Tim Schaub
667f4278b3 Merge pull request #1748 from tschaub/roughly
Fix test failures on Chrome 33.  The trig functions in V8 have changed, and are may change again (see https://code.google.com/p/v8/issues/detail?id=3006 for the full story).  As a result, we no longer rely on Vincenty for antipodal distance calculations (not recommended anyway), and we use a very low precision match for testing cosine distance on a sphere.
2014-02-25 15:39:31 -07:00
Tom Payne
69addbca87 Merge pull request #1749 from twpayne/windows-newlines
Generate proper line endings on Windows
2014-02-25 22:26:54 +01:00
Tom Payne
face69cda9 Remove reference to stale build/src/external/src/types.js target 2014-02-25 22:16:45 +01:00
Tom Payne
d0c83c74d2 Update to the latest version of pake 2014-02-25 22:02:35 +01:00
Bart van den Eijnden
a78b25cdca Merge pull request #1760 from bartvde/gmlfix2
Get rid of unneccessary if else statements in the GML format (r=@ahocevar)
2014-02-25 20:14:13 +01:00
Bart van den Eijnden
a2c01b1090 Get rid of unneccessary if else statements in the GML format 2014-02-25 19:58:15 +01:00
Bart van den Eijnden
c945768e0e Merge pull request #1752 from bartvde/gml-rewrite
Add format for reading GML v3 (r=@ahocevar)
2014-02-25 19:30:56 +01:00
Bart van den Eijnden
28b12e1b28 Remove unused ol.format.GML.NAMESPACE_URIS_ 2014-02-25 19:13:20 +01:00
Bart van den Eijnden
272a3762d6 Make sure function naming convention is consistent 2014-02-25 18:53:30 +01:00
Bart van den Eijnden
182eba5890 Use goog.isDef where possible 2014-02-25 17:41:14 +01:00
Bart van den Eijnden
7d02c4a371 Handle undefined value at readGeometryFromNode instead 2014-02-25 17:28:36 +01:00
Bart van den Eijnden
46a6f96032 Handle that ol.xml.pushParseAndPop can return undefined 2014-02-25 17:25:14 +01:00
Bart van den Eijnden
8d623d765a Do not create parsers in wfs namespace if not needed 2014-02-25 17:11:24 +01:00
Bart van den Eijnden
6256bf1989 Add feature id (fid) parsing 2014-02-25 16:28:10 +01:00
Bart van den Eijnden
98368a554d Use ol.xml.pushParseAndPop instead 2014-02-25 14:58:16 +01:00
Tom Payne
63e5ec9020 Merge pull request #1756 from twpayne/clean-up-preload
Move preload default value to where it is used
2014-02-25 14:51:22 +01:00
Bart van den Eijnden
346aa730e5 Merge pull request #5 from ahocevar/gml-context
Always use a context for GML parsing
2014-02-25 14:48:10 +01:00
ahocevar
71e1dc9f45 Always use a context for GML parsing
The context is at the bottom of the object stack. All entry
points to parsing (#readGeometryFromNode(),
#readFeaturesFromNode()) set up the context now, and parsers
always access the context at index 0 of the objectStack.
2014-02-25 14:33:20 +01:00
Bart van den Eijnden
679b152852 Add srsName info at index 0 in the stack 2014-02-25 13:58:19 +01:00
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