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
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
Thomas Chandelle
b7922b365a
Check if interaction is active before drawing modifying vertex
2017-01-19 14:51:20 +01:00
Guillaume Beraudo
1faead6d69
Rename and move some interaction enums
2017-01-18 21:11:59 +01:00
Tim Schaub
137cdc04c8
Remove ol.DEBUG
2017-01-01 20:37:52 -07:00
Tim Schaub
c6c105b62f
Shared module for map browser event type enum
2016-12-27 13:48:50 -07:00
Tim Schaub
455be84cbd
Private enum for modify interaction event types
2016-12-27 13:31:11 -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
862152f9db
Merge pull request #6192 from tchandelle/delete-vertex
...
Modify interaction: always stop event propagation when removing vertex
2016-12-10 11:18:37 -07:00
Marc Jansen
f795019215
Merge pull request #6075 from tchandelle/modify_stride
...
Keep the other dim from the original segment when modifying vertex
2016-12-07 19:22:59 +01:00
Guillaume Beraudo
109e6a8324
Make modify interaction more robust
...
When the map has not been rendered yet, adding a feature should not
trigger coordinate related functions as they make use of the framestate.
2016-12-07 11:15:28 +01:00
Tim Schaub
37c445275f
Require ol.MapBrowserEvent
2016-12-03 10:37:49 -08:00
Thomas Chandelle
510076290d
Always stop event propagation when removing vertex
2016-12-01 10:27:47 +01:00
Thomas Chandelle
5d61218134
Keep the other dim from the original segment when modifying vertex
2016-11-04 09:47:30 +01:00
Andreas Hocevar
c2aa18dcbf
Make vertex candidate selection work better on rotated views
2016-11-02 19:21:45 +01:00
Frederic Junod
e853f1ed2a
Remove the vertex on ol.interaction.Modify deactivation
2016-10-19 11:06:29 +02:00
Frederic Junod
f860c94840
Rename ol.ModifyEventType to ol.interaction.Modify.EventType
2016-09-07 16:57:03 +02:00
Frederic Junod
c6a9bc66d6
Rename ol.interaction.ModifyEvent to ol.interaction.Modify.Event
2016-09-07 16:55:47 +02:00
Andreas Hocevar
d1e4b33760
Rename goog.DEBUG to ol.DEBUG
2016-08-31 21:10:01 +02:00
Frederic Junod
243f1061df
Accept feature without geometry in ol.interaction.Modify
2016-08-23 13:49:43 +02:00
Frederic Junod
522398d064
Add missing goog.require('ol.style.Style')
2016-08-17 10:00:36 +02:00
Tim Schaub
3afb42828f
Add Hint and Property as ol.View properties
2016-08-12 10:53:50 -06:00
Tim Schaub
2da724cad4
Static ol.style.Style functions
2016-08-12 10:53:48 -06:00
Tim Schaub
907a65ab83
Remove unused goog.require() calls in the source
2016-08-08 09:58:10 -06:00
Tim Schaub
feb7713225
Remove lint
2016-08-07 13:28:19 -06:00
Tim Schaub
035885c25d
Move interaction files so they are named like their provides
2016-08-07 10:49:10 -06:00