Marc Jansen
9fc0fb5e74
Merge pull request #6916 from marcjansen/eslint-4-upgrade
...
Upgrade eslint to v4.0.0
2017-06-22 07:55:06 +02:00
Marc Jansen
7d6929c710
Manual adjustment of indentation
2017-06-20 10:41:03 +02:00
Marc Jansen
d0ef05977b
Autofix indentation issues (eslint --fix)
2017-06-19 11:58:00 +02:00
Frederic Junod
3e7aecd094
Handle setActive(false) on an interaction without map
2017-06-15 08:41:52 +02:00
Andreas Hocevar
9b41ea4017
Use class instead of style for Translate cursor
2017-06-12 13:30:25 +02:00
Andreas Hocevar
00c8a5845e
Disable rotation for views with enableRotation: false
2017-06-08 17:29:47 +02:00
Andreas Hocevar
959367629e
Merge pull request #6851 from ahocevar/draganddrop-active
...
Register/unregister listeners in setActive
2017-05-24 15:36:26 +02:00
Andreas Hocevar
278d3a0313
Register/unregister listeners in setActive
2017-05-24 14:51:39 +02:00
Andreas Hocevar
b6f446e909
Merge pull request #6845 from tchandelle/snap-circle
...
Snap on circles
2017-05-24 14:34:07 +02:00
Thomas Chandelle
074fdeb212
Add snapping abilities on circles
2017-05-23 14:45:03 +02:00
Chase(Seul-gi Choi)
661410a96e
add condition to check if active
...
fixes #6840
"setMap" registers listeners to dropArea, but it doesn't check whether "active" is true or false. Simply add condition to check "active".
2017-05-23 10:48:12 +09:00
Frédéric Junod
b8164df349
Merge pull request #6795 from fredj/ol.DrawGeometryFunctionType_type
...
Fix ol.DrawGeometryFunctionType coordinates argument type
2017-05-11 08:26:58 +02:00
Frederic Junod
55de3020d3
Fix ol.DrawGeometryFunctionType coordinates argument type
2017-05-10 13:36:29 +02:00
Frederic Junod
ff91974345
Add insertVertexCondition to ol.interaction.Modify options
2017-05-09 15:34:43 +02:00
Andreas Hocevar
642ed5f46e
Merge pull request #6757 from hajjimurad/master
...
Fix crashing on creation of snap-interaction, if Circle is among the features to snap to.
2017-05-02 21:05:31 +02:00
Murad Khafizov
242c55dcff
formatting fixed
2017-04-28 10:50:05 +02:00
Murad Khafizov
1f87dcc6b8
fix crashing on using undefined segmentWriter
2017-04-28 10:49:58 +02:00
Frederic Junod
dafe3a0811
Add missing goog.require
2017-04-28 08:48:46 +02:00
Frederic Junod
b1f38ea0e8
Fix spelling
2017-04-24 08:58:19 +02:00
Tim Schaub
41ebe62852
Merge pull request #6675 from tchandelle/translate-cursor
...
Reset cursor when translate interaction is removed or deactivated
2017-04-13 20:25:20 -06:00
Thomas Chandelle
5c23123b6d
Reset cursor when translate interaction is removed or deactivated
2017-04-11 09:15:02 +02:00
Frederic Junod
d97d5e5164
Update finishCoordinate in ol.interaction.Draw#removeLastPoint
...
And don't crash if the function is called but no feature is drawn
2017-04-10 12:34:49 +02:00
Frederic Junod
5e84d806d7
Add this jsdoc tag to ol.interaction.DragBox.defaultBoxEndCondition
2017-04-10 09:08:09 +02:00
Andreas Hocevar
07b8d97751
Merge pull request #6671 from kaiCu/master
...
Add constraintResolution option to MouseWheelZoom for zoom with trackpad
2017-04-10 08:47:30 +02:00
Frederic Junod
5c6c555b62
Remove ol.DRAG_BOX_HYSTERESIS_PIXELS define and add option
2017-04-07 15:31:59 +02:00
Frederic Junod
d767f8545f
Fix comment indentation
2017-04-07 15:13:42 +02:00
Kai Culemann
c1adde6a13
Add constraintResolution option to MouseWheelZoom for zoom with trackpad
2017-04-04 15:06:08 +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