Marc Jansen
750a644396
Add basic docs for drawinteraction
2015-04-22 14:18:50 +02:00
Guillaume Beraudo
a468e8025a
Modify draw interaction dispatch order
...
When finishing drawing, this PR dispatches the `drawend` event before adding
the feature to the source or collection.
This change allows user code to finish configuring the feature (setting style,
properties, ...).
It is useful since inserting a feature, or later on modifying it, may trigger
processing which only makes sense if the feature is ready. For example,
ol3-cesium will recreate a 3D counterpart.
2015-04-16 16:51:54 +02:00
Bart van den Eijnden
47ce127a10
Add assert messages for all assertions up until ol.renderer.vector.
2015-03-30 22:55:23 +02:00
É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
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
É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
Éric Lemoine
6b46d5c76a
Make shouldStopEvent default to the identity func
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
Éric Lemoine
d07185e8f2
Add an "handleEvent" interaction option
2014-12-12 18:30:31 +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
Éric Lemoine
eb4e72c754
Handle activation/deactivation in draw interaction
2014-09-30 10:00:52 +02:00
Tim Schaub
273ba5fb00
Merge pull request #2447 from lazaruslarue/patch-1
...
Correct documentation typo.
2014-08-30 22:18:21 -06:00
Éric Lemoine
47c1f1908e
Remove the ol.geom.RawPolygon type
2014-08-21 10:56:50 +02:00
Éric Lemoine
711c4bbc8c
Merge pull request #2450 from probins/events
...
Improve and standardise event docs
2014-08-18 17:35:59 +02:00
Peter Robins
7a5a5d75e7
Improve and standardise event docs
2014-08-18 15:17:02 +00:00
Peter Robins
ed2f2befdf
Move createDefaultEditingStyles() to ol.style
2014-08-11 15:39:21 +00:00
Frederic Junod
0277026624
Stricter typing for ol.Collection
2014-07-30 09:38:16 +02:00
Jesse F. LaRue
f8824fa4b0
Correct typo in documentation
...
corrected homonym error.
2014-07-25 14:19:53 -07:00
Antoine Abt
60f1874766
Give precedence to feature style
2014-07-16 11:25:16 +02:00
Tim Schaub
4cf5ab4620
Use @api annotation instead of @todo api
2014-07-05 15:41:14 -04:00
tsauerwein
b8ab6fd771
Add stable tags to interactions
2014-07-03 14:19:16 +02:00
Andreas Hocevar
29370a04aa
Show sketch vertex for all geometry types
2014-07-01 11:52:21 +02:00
Éric Lemoine
f0dbcfd541
Merge pull request #2114 from tsauerwein/draw-and-modify
...
Add example combining draw and modify interaction
2014-06-10 10:00:27 +02:00
Peter Robins
41d9f0360a
Add @classdesc to classes
2014-06-09 12:10:19 -04:00
tsauerwein
d0e818e8ce
Add condition to draw interaction
2014-06-06 15:54:38 +02:00
Andreas Hocevar
547334e211
Move oli.* stability notes to the corresponding ol.* symbol
2014-05-22 16:01:35 +02:00
Bart van den Eijnden
945f5008f5
Ability to specify geometryName on ol.interaction.Draw
2014-05-14 08:35:27 +02:00
Andreas Hocevar
7271b50d5a
Simplify fires annotations
2014-05-01 22:17:56 +02:00
Andreas Hocevar
fbdbbfb7a7
Get rid of stability annotations and document stability with api
...
This change adds a stability value to the api annotation, with
'experimental' as default value.
enum, typedef and event annotations are never exportable, but
api annotations are needed there to make them appear in the
docs.
Nested typedefs are no longer inlined recursively, because the
resulting tables get too wide with the current template.
2014-04-29 09:53:07 -06:00
Tim Schaub
fb497f5288
Annotations for exports
2014-04-29 09:53:05 -06:00
Antoine Abt
5cc1a986c2
Share editing default styles
2014-03-31 10:24:17 +02:00
ahocevar
a3b5376520
Add missing event documentation and stability tags
2014-03-26 14:04:58 +01:00
ahocevar
bc1489e8a0
Adding basic support for mobile
...
Usability still needs improvement.
2014-03-14 10:16:26 +01:00
ahocevar
d6880039cc
Making the draw interaction work with pointer events
...
This is not yet optimized for mobile, and tests need to be
updated.
2014-03-14 10:16:26 +01:00
Tim Schaub
a18593ee10
Support minPointsPerRing and default to 3
2014-03-05 12:58:03 -07:00
Antoine Abt
a971928bbe
Add features option to draw interaction
2014-02-21 13:41:07 +01:00
Tim Schaub
10d5073732
Give the draw interaction a style option
2014-02-13 10:25:17 -07: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
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
oterral
3bb90c5b4c
Send the feature drawn with the drawend event
2014-02-07 13:45:13 +01:00
Austin Hyde
48cf5926b8
Fix IIFE invoking Canvas APIs that don't exist in early IE
...
Changed ol.interaction.Draw.defaultStyleFunction to be a getter, so
that it only calls Canvas APIs when needed, rather than on script load
2014-02-05 10:31:16 -05:00
Éric Lemoine
169bdbc16f
goog.require in alphabetical order
2014-02-04 16:32:59 +01:00
Éric Lemoine
10f03374f3
Rename ol.render.FeaturesOverlay to ol.FeatureOverlay
2014-02-04 16:30:15 +01:00
Tom Payne
b43148982a
Add stability annotation to ol.interaction.Draw
2014-02-03 14:59:15 +01:00
Tom Payne
318fc68159
Convert ol.MapBrowserEvent#get* methods into properties
2014-01-29 14:51:27 +01:00
Tom Payne
390b61762e
Convert ol.DrawEvent#getFeature method into feature property
2014-01-27 15:54:00 +01:00