Thomas Chandelle
395d833dd6
Constrain the center in zoomByDelta
2017-01-06 09:31:00 +01:00
Thomas Chandelle
8956a492eb
Remove unused map parameter from several interaction methods
2017-01-05 15:34:47 +01:00
Tim Schaub
50b9e598f6
Remove property enum from interaction constructor
2016-12-27 10:11:18 -07:00
Tim Schaub
f16d1b06eb
Use view.animation() when rotating
2016-11-06 09:12:18 -07:00
Tim Schaub
c95aa39dde
Support anchor for resolution animations
2016-11-05 20:41:40 -06:00
Tim Schaub
f6e9c12161
Use view.animate() in the pan interaction
2016-11-05 18:26:24 -06:00
Frederic Junod
5a3794752a
Rename ol.interaction.InteractionProperty to ol.interaction.Interaction.Property
2016-10-13 11:50:42 +02:00
Tim Schaub
907a65ab83
Remove unused goog.require() calls in the source
2016-08-08 09:58:10 -06:00
Frederic Junod
e289bfbb7d
Use ol.inherits instead of goog.inherits
2016-06-08 08:38:12 +02:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Tim Schaub
3cf8618fc7
Prefer single line assignment to 80 character limit
2016-01-11 18:56:08 -08:00
Frederic Junod
6525bda9fd
Export ol.interaction.Interaction#getMap function
2015-11-23 15:35:36 +01:00
Frederic Junod
4d53049a7f
Remove unnecessary cast
2015-10-01 13:38:49 +02:00
Tim Schaub
ac7db89a91
Replace goog.isDefAndNotNull() with truthy checks
2015-09-29 09:32:51 -06:00
Andreas Hocevar
4e48170fac
Only animate when resolution is about to be changed
2015-09-27 20:38:50 +02:00
Tim Schaub
0927c55b3c
Toward natural JavaScript syntax
2015-09-25 12:16:42 -06:00
Marc Jansen
68442578ba
Use ol.isDef when checking booleans
2015-09-25 11:35:11 -06:00
Marc Jansen
293c65088d
Remove goog.isDef from interaction
2015-09-25 11:28:56 -06:00
Marc Jansen
1917193ea9
Add basic docs for interaction
2015-04-22 14:19:17 +02:00
Tim Schaub
0189e11931
Remove unconditionally exported methods
2015-04-07 08:35:47 -06:00
Frederic Junod
65c2f7de5f
Remove unused goog.require
2015-02-05 10:56:44 +01:00
Éric Lemoine
d07185e8f2
Add an "handleEvent" interaction option
2014-12-12 18:30:31 +01:00
Éric Lemoine
f32c550dbe
Better docs for handleMapBrowserEvent
2014-11-09 22:08:29 +01:00
Björn Harrtell
c4d6e04e4b
Do not rename handleMapBrowserEvent internally
2014-10-10 10:43:59 +02:00
Björn Harrtell
59cc2ac736
Enable subclassing Interaction in public API
2014-10-07 09:15:25 +02:00
Éric Lemoine
dede4f379f
Make interaction "active" an ol.Object property
2014-09-29 17:31:58 +02:00
Éric Lemoine
de319b9ae8
Add ol.interaction.Interaction#setActive and #getActive
2014-09-23 12:37:53 +02:00
Frederic Junod
7b7788973b
Remove unnecessary newlines
2014-07-22 15:00:23 +02:00
Paul Spencer
befcc4ceea
Merge pull request #2204 from probins/dragbox
...
Correct/improve dragbox docs
2014-07-08 19:40:55 -04:00
Tim Schaub
47d37fabea
Rename ol.View2D to ol.View
2014-06-27 09:59:39 -04:00
Tim Schaub
3c1cb55079
Remove IView and IView2D
2014-06-27 09:52:19 -04:00
Peter Robins
c1c98b45b9
Correct/improve dragbox docs
2014-06-20 04:45:12 -04:00
Peter Robins
75be215497
Add standard docs text to abstract base classes
2014-06-14 07:20:33 -04:00
Peter Robins
41d9f0360a
Add @classdesc to classes
2014-06-09 12:10:19 -04:00
Éric Lemoine
42adc23e86
Use ol.View2D#rotate in Interaction
2014-04-10 14:05:18 +02:00
Tom Payne
c9c8497b7e
Don't use withFrozenRendering in ol.interaction.Interaction.zoomWithoutConstraints
2014-02-27 19:01:07 +01:00
Tom Payne
e0c8b57e11
Don't use withFrozenRendering in ol.interaction.Interaction.rotateWithoutConstraints
2014-02-27 19:01:01 +01:00
Éric Lemoine
d3f90418df
Make Interaction inherit from Observable
2013-12-17 10:39:40 +01:00
Tom Payne
35768f8b48
Improve type checking in ol.interaction.Interaction
2013-12-13 18:59:24 +01:00
Tom Payne
2bf7dc5568
ol.interaction.Interaction methods should take ol.IView2Ds, not ol.View2Ds
2013-12-13 18:04:48 +01:00
Tim Schaub
009f7b53a1
Make interactions event targets
2013-11-07 16:39:05 -07:00
Tim Schaub
7d2d68c011
Give interactions a reference to the map
...
This is in line with what we do for controls and overlays. A follow-up change will add calls to `setMap` when interactions are added to a map.
2013-10-31 09:25:52 -06:00
Tom Payne
b533cad031
Only install animations if duration > 0
2013-10-08 14:35:04 +02:00
Tom Payne
92f7f14744
Constrain center in ol.interaction.Interaction.pan
2013-09-30 10:17:24 +02:00
Tim Schaub
8ca3f13bd2
Instead of providing animation functions, provide the namespace
...
This follows the convention in the Closure Library of providing either namespace objects (where the property starts with a lowercase letter), constructors (where the property starts with an uppercase letter), or enums (all uppercase properties, only one instance of this in the closure library).
2013-09-04 13:55:36 -06:00
Tim Schaub
dc76b81780
Rename addPreRenderFunction to beforeRender and remove the plural
2013-09-03 10:57:31 -06:00
ahocevar
9dfbfab648
Follow-up improvements for #897
...
* Interaction is no goog.Disposable any more.
* Permanent cleanup during selection instead of disposeInternal.
* Moved selectionLayers creation outside feature loop.
* Maintain selectedFeatures and unselectedFeatures only for
layers that have a setRenderIntent method.
2013-08-30 16:26:49 +02:00
ahocevar
e2c4fec253
Let's at least be disposable, so we can clean up after ourselves
2013-08-30 12:00:06 +02:00
ahocevar
6bb23cdda5
No longer inheriting from EventTarget
2013-08-30 11:43:35 +02:00
ahocevar
100b85a7b0
Converting control to an interaction
...
To dispatch events, the interaction base class now inherits from
goog.events.EventTarget.
2013-08-29 16:50:53 +02:00