Frederic Junod
d767f8545f
Fix comment indentation
2017-04-07 15:13:42 +02:00
Andreas Hocevar
35ef65e6b9
Reset dragSegments after vertex deletion
2017-03-20 09:39:34 +01:00
Thomas Chandelle
08a118cc94
Determine if we should handle the drawing when the pointer is moving
2017-02-16 16:52:04 +01:00
Andreas Hocevar
b05136ea53
Merge pull request #6499 from tchandelle/circle-modify
...
Be more tolerant when comparing vertices when modifying a circle
2017-02-16 13:49:42 +01:00
Thomas Chandelle
9bf6dcbdcb
Find the closest vertex on the circle from the pixel coordinates
2017-02-16 10:35:01 +01:00
Thomas Chandelle
73ef345a2d
Abort drawing to clear the sketch feature
2017-02-14 09:26:35 +01:00
Thomas Chandelle
4575c4ab6f
Do not draw circle when pointer not moved AND freehand is on
2017-02-14 09:22:07 +01:00
Andreas Hocevar
676dda7ca6
Reset kinetic when number of touches changes
2017-02-14 01:15:16 +01:00
Andreas Hocevar
186935c147
Only update kinetic when number of touches has not changed
2017-02-14 00:48:59 +01:00
Andreas Hocevar
8e35b7a1ad
Do not set center when touches count has changed
2017-02-13 22:30:51 +01:00
Frederic Junod
5c731176b9
Use ol.coordinate.distance
2017-02-07 08:25:19 +01:00
Andreas Hocevar
bff6a14a16
Merge pull request #6457 from tst-ppenev/add-circle-support
...
Add Circle Modification
2017-02-06 21:14:49 +01:00
Pavel Penev
7dde3d5cff
Add circle support to {ol.interaction.Modify}
...
Circles are broken into two modifiable line segments: center and
circumference.
Method {@link ol.interaction.Modify#writeCircleGeometry_} has been
added for adding a circle to the R*-bush of modifiable segments.
Methods {handleDownEvent_}, {handleDragEvent_}, {handleUpEvent_} and
{handlePointerAtPixel_} have been updated to support circle segments.
Helper static methods
{@link ol.interaction.Modify.pointDistanceToSegmentDataSquared_} and
{@link ol.interaction.Modify.closestOnSegmentData_} with support for
circle line segments have been added.
Constants {@link ol.interaction.Modify.MODIFY_SEGMENT_CIRCLE_CENTER_INDEX}
and
{@link ol.interaction.Modify.MODIFY_SEGMENT_CIRCLE_CIRCUMFERENCE_INDEX}
have been added.
Conflicts:
src/ol/interaction/modify.js
2017-02-06 14:43:20 -05:00
Tim Schaub
f5aea97d3b
All @api annotations imply stability
2017-02-06 09:22:05 -07:00
Tim Schaub
67e2d02046
Resetting kinetic after one pointer up
2017-02-03 14:10:56 -07:00
Tim Schaub
14222e68e7
Removing side effects from logical expression
2017-02-03 14:10:56 -07:00
Thomas Chandelle
54c8beef4e
Stop handling down/up sequence when all fingers have been removed
2017-02-03 14:10:56 -07:00
Tim Schaub
d713c9fea6
Disallow pinch zooming beyond min/max resolution
2017-02-03 12:56:03 -07:00
Frédéric Junod
66722553a6
Merge pull request #6365 from gberaudo/public_enums_for_draw_modify_interactions
...
Make enums for draw and modify interactions public
2017-01-31 16:57:47 +01:00
Guillaume Beraudo
b54ea89395
Handle concrete classes with non implemented abstract methods
2017-01-30 17:16:01 +01:00
Frederic Junod
d59224f5eb
Add missing override and inheritDoc jsdoc tags
2017-01-30 17:16:01 +01:00
Andreas Hocevar
c78746b309
Only stop animation when animating
2017-01-21 14:23:58 +01:00
Thomas Chandelle
8a440b0c20
Listen only to change event triggered by the feature
...
ol.Feature catch change event from its geometry and trigger a change
event itself. ol.Feature will also trigger change event when its
geometryName has changed
2017-01-20 13:01:28 +01:00
Thomas Chandelle
b7922b365a
Check if interaction is active before drawing modifying vertex
2017-01-19 14:51:20 +01:00
Guillaume Beraudo
67a4eaa9d5
Move ol.interaction.TranslateEventType enum to its file
2017-01-18 22:33:48 +01:00
Guillaume Beraudo
1faead6d69
Rename and move some interaction enums
2017-01-18 21:11:59 +01:00
Thomas Chandelle
dec39151a0
Consider pointerdown only if the last pointerup has been emitted
2017-01-11 10:21:21 +01:00
Thomas Chandelle
f5785549ae
Constrain center in DragZoom interaction
2017-01-09 09:05:51 +01:00
Thomas Chandelle
7f1f3fd6fe
Constraint center when using trackpad to zoom
2017-01-06 15:28:38 +01:00
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
e473671975
Ensure resolution stays in range when pinching
2017-01-03 18:11:21 -07:00
Tim Schaub
137cdc04c8
Remove ol.DEBUG
2017-01-01 20:37:52 -07:00
Tim Schaub
c9794b77db
Shared module for vector event type enum
2016-12-27 14:13:45 -07:00
Tim Schaub
c6c105b62f
Shared module for map browser event type enum
2016-12-27 13:48:50 -07:00
Tim Schaub
0e05b174fd
Private enum for translate interaction event types
2016-12-27 13:34:03 -07:00
Tim Schaub
751c05b715
Private enum for select interaction event types
2016-12-27 13:33:18 -07:00
Tim Schaub
69d345171e
Private enum for mousewheel mode
2016-12-27 13:32:24 -07:00
Tim Schaub
455be84cbd
Private enum for modify interaction event types
2016-12-27 13:31:11 -07:00
Tim Schaub
4972e16867
Private enum for extent interaction event types
2016-12-27 13:30:21 -07:00
Tim Schaub
4d52dcda22
Private enum for draw event types
2016-12-27 13:29:29 -07:00
Tim Schaub
f21d5fcdb0
Private enum for draw mode
2016-12-27 13:28:45 -07:00
Tim Schaub
eede241e82
Private enum for drag box event types
2016-12-27 13:27:48 -07:00
Tim Schaub
ee833b0c2f
Private enum for drag and drop event types
2016-12-27 13:26:57 -07:00
Tim Schaub
847efde217
Dedicated module for collection event type enum
2016-12-27 12:31:50 -07:00
Tim Schaub
3852c0da83
Remove hint enum from view constructor
2016-12-27 10:17:26 -07:00
Tim Schaub
50b9e598f6
Remove property enum from interaction constructor
2016-12-27 10:11:18 -07:00
Frédéric Junod
dd3dcde160
Merge pull request #6255 from fredj/translate_cursor
...
Don't reset the css cursor if it's not needed
2016-12-22 09:20:00 +01:00
Tim Schaub
ef04f466cd
Name modules more like their provide
2016-12-18 11:24:01 -07:00
Frederic Junod
c6fe60bcd7
Don't reset the css cursor if it's not needed
2016-12-16 15:57:41 +01:00