Éric Lemoine
80fa7e5ba1
Merge pull request #3237 from Morgul/ccase-circle-drawing
...
Add circles to Draw interaction.
2015-03-11 17:08:10 +01:00
Frédéric Junod
9951c88343
Merge pull request #3322 from fredj/drawinteraction-map.isDef
...
Remove unneeded map.isDef call
2015-03-09 09:01:05 +01:00
Andreas Hocevar
d8150c5155
Add interface definition for ol.SelectEvent
2015-03-06 11:31:30 +01:00
Frederic Junod
0d979e37b8
Remove unneeded map.isDef call
2015-03-05 18:12:23 +01:00
Frederic Junod
daf81b9c26
Remove unused goog.require
2015-03-05 18:11:19 +01:00
Björn Harrtell
49c2af165a
Fix select event always reporting as multi select
2015-03-04 08:48:08 +01:00
Björn Harrtell
e4b1d6e1de
Add SelectEvent to Select interaction
...
Fixes
2015-03-03 12:22:01 +01:00
Alexandre Dubé
d1185da6b1
Replace mouseMove event condition by pointerMove
...
The original browser event was used to catch the mousemove event,
but in IE the 'pointermove' event is returned instead. So, instead
of using the original event, we use the map browser event, which
is always 'pointermove'.
2015-02-27 12:14:13 -05:00
Éric Lemoine
56b08adef7
Add goog.provide for ol.DrawEventType
2015-02-25 21:59:57 +01:00
Christopher S. Case
15a4b7f4a6
Changed default radius to 0, instead of 1000.
...
(This was debugging code.)
2015-02-18 09:50:10 -06:00
Christopher S. Case
ae8321ab30
Added circle drawing to draw interaction.
2015-02-18 09:50:02 -06:00
Frederic Junod
13f265b4e1
Select the uppermost feature
2015-02-10 09:59:09 +01:00
Frédéric Junod
456def67de
Merge pull request #3209 from fredj/coding-style
...
Coding style fixes
2015-02-05 14:53:59 +01:00
Frederic Junod
078d3fb007
Add missing goog.require
2015-02-05 10:56:44 +01:00
Frederic Junod
65c2f7de5f
Remove unused goog.require
2015-02-05 10:56:44 +01:00
Frederic Junod
8ec90a2045
Remove unnecessary newlines
2015-02-05 10:56:44 +01:00
Björn Harrtell
162c47eb3e
Option to enable selection of overlapping features
2015-02-04 16:15:41 +01:00
Frederic Junod
915df000ab
Use view.getRotation instead of view.getState
2015-01-26 13:39:49 +01:00
Frederic Junod
247d8668d1
Use view.getResolution instead of view.getState
2015-01-26 13:39:49 +01:00
Frederic Junod
7c7a4c2b7a
Use view.getRotation instead of view.getState
2015-01-26 13:39:49 +01:00
Frederic Junod
7885ad6ae7
Remove unnecessary newlines
2015-01-26 10:33:00 +01:00
Éric Lemoine
6b46d5c76a
Make shouldStopEvent default to the identity func
2014-12-18 14:13:44 +01:00
Éric Lemoine
1907de667a
Make ol.interaction.Pointer call handleMoveEvent
2014-12-18 14:13:44 +01:00
Éric Lemoine
711ec705b7
Add handle*Event options to ol.interaction.Pointer
...
More specifically: handleDownEvent, handleDragEvent, handleMoveEvent, and handleUpEvent.
2014-12-18 14:13:44 +01:00
Andreas Hocevar
5eb1537f48
Need exportable constructor for constructor options in olx
...
When a constructor options object is created in the olx namespace,
the constructor that uses it must be exportable as well.
2014-12-15 16:15:30 +01:00
Éric Lemoine
86561e5ef2
Merge pull request #3032 from elemoine/custom-components
...
Extension points for custom controls and interactions
2014-12-15 13:41:56 +01:00
Andreas Hocevar
9b0b1543e0
Allow custom mousemove conditions
...
When configuring a Select interaction with a custom condition that
includes mousemove, panning the map will not work any more. This is
because the return value of handleMapBrowserEvent is determined by
checking for a default condition function. By checking for the
underlying event type instead, we gain flexibility with custom condition
functions.
2014-12-15 11:28:45 +01:00
Éric Lemoine
d07185e8f2
Add an "handleEvent" interaction option
2014-12-12 18:30:31 +01:00
Antoine Abt
e7db23761c
Respect geometry stride in modify interaction
2014-12-12 11:22:15 +01:00
Paul Spencer
12ddc7da57
opt_options may not be defined, use options
...
Constructing an instance of `ol.interaction.DragPan` with no options should be possible, the reference to `opt_options` makes this throw an error when no options are passed.
2014-12-05 08:30:14 -05:00
Antoine Abt
374f02c725
Fix pan with select interaction in mousemove mode.
2014-11-21 11:23:06 +01:00
Andreas Hocevar
cee1575a6c
Merge pull request #2936 from ahocevar/unselect-index
...
Fix unselection of selected features
2014-11-13 08:39:40 +01:00
Andreas Hocevar
96729baa9f
Push the feature, not the index
2014-11-11 20:09:24 +01:00
Andreas Hocevar
08aa6ee82d
Do not rely on unstable index
2014-11-11 12:35:19 +01:00
Éric Lemoine
b7376779fb
Merge pull request #2927 from elemoine/finishdrawing
...
Make it possible to programmatically finish drawing
2014-11-10 08:55:45 +01:00
Éric Lemoine
f32c550dbe
Better docs for handleMapBrowserEvent
2014-11-09 22:08:29 +01:00
Éric Lemoine
bdeb195bfb
Add finishDrawing to API
...
This makes it posssible to programmatically finish drawing.
2014-11-09 20:50:36 +01:00
Éric Lemoine
583f47d24d
No need to pass event to finishDrawing_
2014-11-09 20:49:52 +01:00
Björn Harrtell
c4d6e04e4b
Do not rename handleMapBrowserEvent internally
2014-10-10 10:43:59 +02:00
Éric Lemoine
c1259aacab
Merge pull request #2743 from elemoine/drawinteraction
...
Handle ol.interaction.Draw activation/deactivation
2014-10-08 16:01:10 +02:00
Frederic Junod
ec129f5778
Rename reprojectTo option to projection
2014-10-07 11:41:59 +02:00
Björn Harrtell
59cc2ac736
Enable subclassing Interaction in public API
2014-10-07 09:15:25 +02:00
Frederic Junod
a3b3e044f5
Remove unused distinctFeatures object in ol.interaction.Modify#handlePointerDown
...
The object is filled but never used.
2014-09-30 15:08:15 +02:00
Éric Lemoine
eb4e72c754
Handle activation/deactivation in draw interaction
2014-09-30 10:00:52 +02:00
Éric Lemoine
dede4f379f
Make interaction "active" an ol.Object property
2014-09-29 17:31:58 +02:00
Frederic Junod
aaeb2b6938
Remove unnecessary parentheses
2014-09-29 09:05:22 +02:00
Bart van den Eijnden
0145c4fb5f
The getGeometry function of ol.interaction.DragBox always returns ol.geom.Polygon
2014-09-24 11:57:36 +02:00
Éric Lemoine
de319b9ae8
Add ol.interaction.Interaction#setActive and #getActive
2014-09-23 12:37:53 +02:00
Éric Lemoine
cb8b896230
Make ol.Map#setView do not accept undefined
...
With this change map.setView(null) is permitted, but map.setView(undefined) is not. map.getView now always returns a defined value, which may be null is setView was called with null.
2014-09-17 11:47:24 +02:00
Tim Schaub
273ba5fb00
Merge pull request #2447 from lazaruslarue/patch-1
...
Correct documentation typo.
2014-08-30 22:18:21 -06:00