Andreas Hocevar
ee0eb8b1a0
Normalize rotation to values between -180 and 180 degrees after animation
2017-06-28 16:36:33 +02:00
Andreas Hocevar
c0e4da6d8c
Merge pull request #6966 from ahocevar/resolution-for-zoom
...
Add getResolutionForZoom method for ol.View
2017-06-28 13:01:54 +02:00
Andreas Hocevar
aa8d7b0b36
Add getResolutionForZoom method for ol.View
2017-06-28 10:30:32 +02:00
Andreas Hocevar
67f69a32bb
Use shortest rotation delta for animation
2017-06-28 10:06:10 +02:00
Marc Jansen
d0ef05977b
Autofix indentation issues (eslint --fix)
2017-06-19 11:58:00 +02:00
Frédéric Junod
88b028e4a5
Merge pull request #6765 from fredj/fit_callback
...
Add new callback function to view.FitOptions
2017-05-02 10:36:37 +02:00
Frederic Junod
403214f569
Add new callback function to view.FitOptions
2017-05-02 08:49:39 +02:00
Michel Beaudouin-Lafon
944f0df981
Fixed test to compare to true/false rather than 0/1
2017-05-01 17:09:27 +02:00
Michel Beaudouin-Lafon
97b3ff0499
Added View#getInteracting() to the api, similar to View#getAnimating() to access the hints
2017-05-01 14:09:44 +02:00
Tim Schaub
e9c340b957
Allow min/max zoom to be set on a view
2017-03-27 14:18:16 -06:00
Tim Schaub
b383e0ecb2
Add view.getMaxZoom() and view.getMinZoom()
2017-02-19 18:11:04 -07:00
Tim Schaub
719fa6e004
Add view.getZoomForResolution()
2017-02-19 17:16:20 -07:00
Tim Schaub
9bd48d06c3
Complete animations at target values
2017-02-17 13:06:20 -07:00
Thomas Chandelle
c69efeb8ea
Fit on circle
2017-02-02 10:34:57 +01:00
Andreas Hocevar
472ab00d24
Merge pull request #6285 from ahocevar/calculate-extent
...
Make size argument of ol.View#calculateExtent() optional
2017-01-13 13:22:29 +01:00
Tim Schaub
3852c0da83
Remove hint enum from view constructor
2016-12-27 10:17:26 -07:00
Andreas Hocevar
3f4f38b835
Make size argument of ol.View#calculateExtent() optional
2016-12-20 21:17:08 +01:00
Andreas Hocevar
20155ce2a7
Remove the requirement to provide a size to ol.View#fit()
2016-12-16 14:52:09 +01:00
Frederic Junod
392cbcc138
Enforces spacing around commas
2016-12-14 13:42:47 +01:00
Tim Schaub
12add87603
Stop asserting that zero duration animations take time
2016-12-04 15:04:54 -07:00
Tim Schaub
a3f3c24c51
Merge pull request #6202 from tschaub/animate-zero
...
Allow animation duration to be zero
2016-12-03 10:28:18 -08:00
Tim Schaub
c04a011077
Merge pull request #6198 from oterral/flyTo
...
Fix sourceResolution value in view.animate
2016-12-02 23:07:30 -08:00
Tim Schaub
dfb4c800b9
Allow animation duration to be zero
2016-12-02 19:15:34 -08:00
oterral
9eda6df821
Fix sourceResolution value in view.animate
2016-12-02 16:39:25 +01:00
Thomas Chandelle
5b04771d3f
Add duration and easing options to view.fit() for animations
2016-11-28 13:55:40 +01:00
Tim Schaub
1ae6921e53
Make view.setHint() trigger change
2016-11-14 10:18:39 -07:00
Tim Schaub
7f01de9261
Reset hint first and notify of change when cancelling animations
2016-11-11 06:31:26 -07:00
Tim Schaub
97d942c8e2
Correctly prune completed animation series
2016-11-10 10:18:42 -07:00
Tim Schaub
7fde4a48f4
Test that zoom is preferred over resolution
2016-11-06 16:48:04 -07:00
Tim Schaub
6f08498684
Run animations in series
2016-11-06 10:06:58 -07:00
Tim Schaub
da8eb97f54
Use the animating hint
2016-11-06 09:13:59 -07:00
Tim Schaub
5fb9a2ebf8
Test animation callback
2016-11-06 07:53:19 -07:00
Tim Schaub
c452164b8a
Ensure that all animations complete
2016-11-05 17:31:49 -06:00
Tim Schaub
d02cf1e7a9
Shuffle assertions
2016-08-12 10:53:47 -06:00
Tim Schaub
ed5dbd1293
Put test requires on top
2016-08-08 09:58:11 -06:00
Andreas Hocevar
98fbfe4b67
Support fractional zoom levels in ol.View#getZoom and #setZoom
2016-08-03 11:48:13 +02:00
Frederic Junod
6910c471bf
Add unit tests for ol.View.createCenterConstraint
2016-07-04 16:46:57 +02:00
Peter Marlow
9b9d006d75
Tests for #getResolutions on ol.View
...
Created tests for new getResolutions() function on ol.View.
2016-05-15 16:48:09 +01:00
Tim Schaub
4e0cddcb41
Lint-free tests
2016-01-11 18:56:07 -08:00
Tim Schaub
23eebf396c
Lint-free view.test.js
2016-01-11 18:56:06 -08:00
Bart van den Eijnden
7c207d47bb
Move upgrade notes to 3.7 and fix typos
2015-07-02 15:23:34 +02:00
vmalaret
4d3e903670
ol.View#fit -- fix docs and add assertions
2015-07-02 15:19:09 +02:00
vmalaret
e7cd691362
rotation support for ol.View#calculateExtent
2015-07-02 15:19:08 +02:00
vmalaret
74759142d9
Replace fitGeometry and fitExtent with fit
...
Fit accepts either a geometry or an extent.
This combines two previously distinct functions
into one more flexible call.
Also brings the rotations support and options
previously available to fitGeometry to extents
2015-07-02 15:19:08 +02:00
Frederic Junod
829a0ca224
Disallowed undefined rotation value
2015-01-27 09:26:51 +01:00
tsauerwein
3b8e182856
Add maxZoom to ol.View.fitGeometry() options
2014-07-11 16:31:01 +02:00
Tim Schaub
47d37fabea
Rename ol.View2D to ol.View
2014-06-27 09:59:39 -04:00