Commit Graph

61 Commits

Author SHA1 Message Date
É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
oterral
cbe1650c79 Finish polygon drawing on last point 2014-01-22 09:55:55 +01:00
Éric Lemoine
9d6d0e03c2 Configure draw interaction with a vector source 2014-01-20 16:09:48 +01:00
oterral
7f12ac90da Add draw interaction events 2014-01-14 17:38:05 +01:00
Frederic Junod
f68631d61c Use goog.asserts.assertInstanceof to check the getSource return type
See 1499af397d
2014-01-13 10:29:29 +01:00
Frederic Junod
f5ce88789e Use goog.isNull in if statements 2014-01-13 10:28:42 +01:00
oterral
f27e42068f Manage multi geometries modes 2014-01-10 14:01:35 +01:00
oterral
235af49f0b Add goog.provide('ol.geom.GeometryType') 2014-01-10 14:00:30 +01:00
Tom Payne
e83e79626a Only use color arrays in the library 2014-01-09 21:55:17 +01:00
oterral
34260399e7 Add draw features interaction 2014-01-08 16:40:14 +01:00
Tom Payne
4e65fefc00 Move vector code out of the way 2013-11-20 11:39:21 +01:00
Tim Schaub
05b9922861 Tests for draw interaction
The tests revealed that polygons can be drawn with counter-clockwise exterior ring order.  In the polygon constructor, we enforce clockwise winding for exterior rings.  So after drawing, we pass polygon coordinates back to the constructor before adding feature to the target layer.
2013-11-12 16:06:42 -07:00
Tim Schaub
5a898884ec Use geometry type enum for configuring draw interaction
This allows us to cast single-part geometries to multi-part types before adding features to the target layer.  This doesn't yet allow for drawing multi-part geometries with multiple parts.  That can be handled separately.
2013-11-12 11:51:41 -07:00