Commit Graph

2125 Commits

Author SHA1 Message Date
tschaub 02aa9bcc36 Tests with a description of the updated method.
The old `containsPoint` method was sensitive to failure when looking for ray crossings with nearly vertical edges.  These added tests demonstrate the simple cases where `containsPoint` succeeds.  The tests also now include a case that covers the failure for polygons with nearly vertical edges.  The previous `getX` method (within the `containsPoint` method) and the new one are mathematically equivalent.  The updated version performs better in cases using coordinates with many significant figures.
2012-01-16 16:59:54 -07:00
fredj 0e8b3f2ff8 Popup tests: return false if map.events.listeners.movestart is undefined 2012-01-16 12:30:03 +01:00
Bart van den Eijnden 8905ef2fa5 Merge pull request #145 from bartvde/cswemptysubject
ignore empty subject tags in CSWGetRecords parser (r=ahocevar)
2012-01-15 23:50:36 -08:00
fredj b900144ce3 remove map.getSize call to avoid creating new instances 2012-01-14 14:11:25 +01:00
fredj 1df5cfa158 replace LonLat argument with simple object (Map.getLayerPxFromLonLat) 2012-01-14 14:11:24 +01:00
Éric Lemoine 7a5b469192 Merge pull request #116 from elemoine/redraw
make Layer.redraw not unconditionally set zoomChanged to true when calling Layer.moveTo
2012-01-13 08:37:09 -08:00
Pierre GIRAUD 7a0336a9ef Fixing a wrong calculation in LinearRing::containsPoint 2012-01-13 17:36:23 +01:00
Bart van den Eijnden c667e9a147 ignore empty subject tags in CSWGetRecords parser 2012-01-13 13:05:20 +01:00
Éric Lemoine 2f700bd894 Merge branch 'master' into osm
Conflicts:
	apidoc_config/Menu.txt
2012-01-12 21:27:39 +01:00
Éric Lemoine 3cbd7b4b40 move Layer.OSM in its own script file 2012-01-12 21:22:58 +01:00
Éric Lemoine e1ea3471e0 Merge pull request #143 from jorix/stop-freehand
Handler.Path: Stop freehand using "maxVertices"
2012-01-12 12:08:12 -08:00
Xavier Mamano 59dfb7ec11 Add test for stop freehand using "maxVertices" 2012-01-12 20:23:01 +01:00
Bart van den Eijnden 476d438578 minor doc adjustments and a bit more test coverage 2012-01-09 10:27:44 +01:00
Bart van den Eijnden 41370b3eb7 fix up broken test 2012-01-09 09:57:32 +01:00
Bart van den Eijnden 849189d136 Merge branch 'master' of github.com:bartvde/openlayers into csw 2012-01-09 09:41:59 +01:00
Bart van den Eijnden a6be4a4b6c start with the patch from OL Trac ticket 2133 2012-01-09 09:29:15 +01:00
Tim Schaub 0127806ee2 Assert that split control works with no geometry. 2012-01-08 21:14:17 -05:00
Éric Lemoine 30c5b11d99 Merge branch 'master' into tile-fade-in
Conflicts:
	examples/fullScreen.js
2012-01-05 09:39:39 +01:00
Éric Lemoine 77f227ffed more Grid tests, for delayed back buffer removal 2012-01-04 21:01:46 +01:00
fredj 3245836b6d New OpenLayers.Layer.Grid.tileClass option. Defaults to OpenLayers.Tile.Image 2012-01-04 12:37:39 +01:00
Éric Lemoine 0cc4dc81ec Merge branch 'master' into redraw 2012-01-04 09:06:29 +01:00
Éric Lemoine eedcaf0ba2 add a test to verify that Layer.HTTPRequest.mergeNewParams set resolution to null prior to calling redraw 2012-01-04 09:02:38 +01:00
Éric Lemoine 0d702609b1 revert changes to layer mergeNewParams tests (ff045172) 2012-01-04 08:59:47 +01:00
tschaub 3556af9cb2 Moving animation methods out of Util.js.
Animation methods get their own module, giving methods more sensible names:

 * `OpenLayers.Animation.requestFrame` (was `OpenLayers.Util.requestAnimationFrame`)
 * `OpenLayers.Animation.start` (was `OpenLayers.Util.startAnimation`)
 * `OpenLayers.Animation.stop` (was `OpenLayers.Util.stopAnimation`)
2012-01-03 09:43:50 -07:00
Éric Lemoine 4f4a7e9c0a Merge branch 'master' into tile-fade-in 2012-01-03 08:27:20 +01:00
Tim Schaub 3f6e0141a4 No animation frames on hidden windows.
As an optimization, Firefox does not execute functions passed to requestAnimationFrame when the window is hidden.  This is the case for the panTo tests here that use a map in a hidden iframe.  Since other browsers may follow suit, we just test the fallback setTimeout method of animating on these tests.
2012-01-02 22:29:23 -07:00
Tim Schaub bd4278de4a Docs and tests for animation methods. 2012-01-02 21:54:08 -07:00
Tim Schaub c151b04257 Use requestAnimationFrame for tweening.
Instead of using an arbitrary interval for tweening, we let the device decide the best animation frame rate.  Where requestAnimationFrame is not available, this will default to 60 fps.
2012-01-02 20:52:46 -07:00
Tim Schaub 5c2af142b6 Use requestAnimationFrame where available.
For kinetic panning, let the device determine the animation frame rate.
2012-01-02 20:40:29 -07:00
tschaub 3c910c8801 Removing the tileAnimation map property.
Edit CSS to change the style.
2012-01-02 15:49:55 -07:00
Éric Lemoine 78963a5fa8 correct typo in tests/Tile/Image.html, @tschaub has sharp eyes 2012-01-02 23:34:02 +01:00
Éric Lemoine eb924c8f77 no longer rely on the transitionend event, unwanted flashes are avoid using a timer 2012-01-02 22:53:53 +01:00
tschaub 3eb34f587e Add test for setOpacity. 2012-01-02 11:52:54 -07:00
tschaub b7b0d6b712 Collecting image tile changes in the Image.js. 2012-01-02 11:40:50 -07:00
Tom Hughes dd103ebf82 Use OpenLayers.Util.DEFAULT_PRECISION for geometry comparisons 2011-12-31 14:00:25 +00:00
Éric Lemoine 587650e01b use parseFloat to read opacity style values in tests 2011-12-31 14:09:24 +01:00
Tom Hughes 93f2a31253 Add tests for regular and irregular transformations 2011-12-31 12:08:21 +00:00
Éric Lemoine d2856cd721 remove duplicated setOpacity tests (MapServer/Untiled.html) 2011-12-31 12:25:37 +01:00
Éric Lemoine e7ef3d6c21 remove duplicated setOpacity tests 2011-12-31 12:23:32 +01:00
Éric Lemoine afc0283c06 fix the Layer.WMS setOpacity tests 2011-12-31 00:45:15 +01:00
Éric Lemoine 6b918bc9ab make the Layer/Image.html tests pass again 2011-12-31 00:19:44 +01:00
Éric Lemoine 5edd3d3f84 make Tile.Image compatible with CSS-based tile fade animation 2011-12-31 00:19:19 +01:00
Éric Lemoine 04f72a0e07 tests for the tileAnimation map option 2011-12-30 23:28:21 +01:00
tschaub 958221d5f4 Moving Rectangle geometries to deprecated.js.
The VML and SVG renderers still have support for drawing rectangles.  This can be safely removed in 3.0.
2011-12-29 14:14:49 -07:00
ahocevar cfe25feecf Making dateline handling work with ratio. 2011-12-28 20:14:39 +01:00
ahocevar d42eec9775 No new argument for Layer::redraw.
Instead, make _resolution a private property (resolution) which is set to null to make redraw call moveTo with zoomChanged set to true.
2011-12-26 11:09:07 +01:00
ahocevar 6e39c3e3e0 Moving test for reproject option to deprecated tests.
Also re-adding accidently removed ```reproject: true``` option to test.
2011-12-23 18:32:28 +01:00
Éric Lemoine ff04517232 HTTPRequest.mergeNewParams should now do redraw(true) 2011-12-22 14:21:07 +01:00
Éric Lemoine 289d9d371d make Layer.redraw not unconditionally set zoomChanged to true in moveTo 2011-12-22 14:19:02 +01:00
ahocevar 701e171081 Adding test to make sure we don't pan. 2011-12-16 11:48:08 +01:00