Commit Graph

363 Commits

Author SHA1 Message Date
tsauerwein fca9c50a3f PointerInteraction uses MapBrowserPointerEvent not MapBrowserEvent 2014-03-14 10:16:26 +01:00
tsauerwein a696150470 base interaction for zoom box on pointer events 2014-03-14 10:16:26 +01:00
tsauerwein 692a68644f introduce type POINTERDRAG to make a distinction between pointer move and drag 2014-03-14 10:16:26 +01:00
tsauerwein d772c95ccf makes PointerEvent a plain closure class, instead of trying to mimic a mouse event, which was required for the polyfill 2014-03-14 10:16:25 +01:00
tsauerwein a31cc3f18c only track events when "pointerdown" event was received, because on native android browser wrong move events are sent with no "pointerdown" event 2014-03-14 10:16:25 +01:00
tsauerwein 1c75ecc260 former touch interactions now use pointer events 2014-03-14 10:16:25 +01:00
Andreas Hocevar 1a40b1793c Merge pull request #1789 from ahocevar/mousewheel-delta
Mousewheel zoom broken and resolution constraints not respected in Firefox
2014-03-13 23:43:04 +01:00
ahocevar 44e0f6ce68 Use the delta from goog.events.MouseWheelHandler as-is 2014-03-13 19:51:28 +01:00
ahocevar ecddcdd732 Add support for editing interior polygon rings 2014-03-13 01:02:15 +01:00
Andreas Hocevar 1fbdf47e2a Merge pull request #1807 from ahocevar/float-no-zero
Modify interaction sometimes does not allow to create a new vertex
2014-03-13 00:51:43 +01:00
Andreas Hocevar e017555b7f Merge pull request #1808 from ahocevar/modify-multi
Modify interaction allows vertices to be added where they shouldn't be
2014-03-12 22:59:56 +01:00
Tom Payne 271487c1bc Remove leading whitespace 2014-03-12 19:52:13 +01:00
ahocevar 62034e8fb9 Only update the index for the current component 2014-03-12 13:02:52 +01:00
ahocevar bc79b89c5e Limit shared segment editing
To avoid surprises, we enable shared segment editing only on
segments that have the same vertex coordinates.
2014-03-07 10:52:50 +01:00
ahocevar 42935408fb Keep track of intersecting segments
Because we have nodes sorted by segment distance from the
editing vertex in #handleMouseAtPixel(), it is cheap to create a
hash of intersecting segments there. Now in #handleDragStart(),
we do not need to measure the distance of the vertex to the
segment. Instead, we just test if the segment is in the hash.
2014-03-07 10:52:49 +01:00
Tim Schaub 1f30a5f40d Merge pull request #1662 from tschaub/drawing-rings
Add `minPointsPerRing` option to the draw interaction.  By default, polygon drawing cannot be finished until three points have been added.  To allow polygon drawing to finish after only two points have been added, set `minPointsPerRing: 2`.
2014-03-06 09:39:45 -07:00
Tom Payne e5ee44f8ad Rename ol.structs.RBush#getAllInExtent to getInExtent 2014-03-06 14:30:56 +01:00
Tim Schaub a18593ee10 Support minPointsPerRing and default to 3 2014-03-05 12:58:03 -07:00
Tom Payne b2aa9bb19f Export ol.DragBoxEvent coordinate as a property, not a function 2014-03-02 12:24:09 +01:00
Tom Payne df3ff9e546 Merge pull request #1781 from twpayne/format-feature
Rename ol.format.Format to ol.format.Feature
2014-02-28 14:47:19 +01:00
Tom Payne ea8944c755 Rename ol.format.Format to ol.format.Feature 2014-02-28 13:05:57 +01:00
Tom Payne ad29e6bceb Don't use withFrozenRendering in ol.interaction.Select#handleMapBrowserEvent 2014-02-27 19:01:21 +01:00
Tom Payne 73be72380b Don't use withFrozenRendering in ol.interaction.DragRotateAndZoom#handleDragEnd 2014-02-27 19:01:15 +01: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
Tom Payne 23f6fc0d0f Merge pull request #1732 from twpayne/render-sync
Switch to asynchronous rendering by default
2014-02-27 11:03:20 +01:00
Antoine Abt a971928bbe Add features option to draw interaction 2014-02-21 13:41:07 +01:00
Antoine Abt ec832bdf6e Modify interaction takes style & features options
Instead of a FeatureOverlay
2014-02-21 12:35:30 +01:00
Antoine Abt 7cea6f3240 Make select interaction create its FeatureOverlay
You can now configure it with a `style` option.
2014-02-21 11:59:43 +01:00
Tom Payne a8f932fa07 Rename ol.Map#requestRenderFrame to ol.Map#render 2014-02-20 16:54:20 +01:00
Éric Lemoine db83b11eee Modify interaction doesn't need to store styles 2014-02-16 16:15:11 +01:00
Tim Schaub 10d5073732 Give the draw interaction a style option 2014-02-13 10:25:17 -07:00
Antoine Abt f8a748d7f4 Fix MultiPoint modify 2014-02-12 15:26:57 +01:00
Antoine Abt 56a1f053ff Check geometry type instead of instanceof 2014-02-12 15:25:47 +01:00
Antoine Abt 0764ea99ee Merge pull request #1654 from tonio/vector-api-modify
Add Modify Interaction
2014-02-11 16:59:43 +01:00
Tom Payne e0765240a2 Merge branch 'ie-compat' of git://github.com/Intermedix/ol3 into Intermedix-ie-compat 2014-02-11 16:54:39 +01:00
Antoine Abt 03624b5f78 Check segment writers existence 2014-02-11 14:36:54 +01:00
Antoine Abt f9b6eabfef %s/render.FeaturesOverlay/FeatureOverlay/ 2014-02-10 11:26:14 +01:00
Antoine Abt 0272659118 Remove useless style method 2014-02-10 11:26:14 +01:00
Antoine Abt 72675bf6ad Make interaction ctor only have an option object 2014-02-10 11:26:13 +01:00
Antoine Abt 5325af26d6 Store mouse last position to draw vertex at feature selection 2014-02-10 11:26:13 +01:00
Antoine Abt e64766f01f Add support for GeometryCollection in modify interaction 2014-02-10 11:26:13 +01:00
Antoine Abt a60203f931 Move segment writers in their own methods 2014-02-10 11:26:13 +01:00
Tim Schaub 2fc15a5bf0 As it is currently used, opt_options is not optional
It would be nice if the compiler would warn us of things like this (accessing properties of undefined).
2014-02-07 13:48:32 -07:00
Antoine Abt 933ef64db1 Force remove vertexFeature when there’s no features left in FeaturesOverlay 2014-02-07 14:52:59 +01:00
Antoine Abt fb637aedca Move variables declaration at the top 2014-02-07 14:52:59 +01:00
Antoine Abt a1d20182fe Make modify interaction use FeaturesOverlay
Instead of a whole map.
2014-02-07 14:52:58 +01:00
oterral 3155d681be Add modify feature interaction and its example 2014-02-07 14:52:57 +01:00
oterral 3bb90c5b4c Send the feature drawn with the drawend event 2014-02-07 13:45:13 +01:00
Éric Lemoine 57f77bb444 Merge pull request #1638 from elemoine/featureoverlay
Rename ol.render.FeaturesOverlay to ol.FeatureOverlay
2014-02-06 18:00:09 +01:00