giohappy
394ef94fd3
Fix finishCondition test
2016-04-22 23:17:21 +02:00
giohappy
ead6063170
make lint happy with drawinteraction.test.js
2016-04-22 15:16:11 +02:00
giohappy
2076ef02ca
Add test for finishCondition
2016-04-22 15:07:59 +02:00
Tim Schaub
ae4d8195c0
Remove use of goog.dispose()
2016-03-02 15:44:06 -07:00
Frederic Junod
edf2096b1b
Remove use of goog.style.getClientPosition
...
Use Element.getBoundingClientRect() instead.
2016-02-25 08:36:40 +01:00
Tim Schaub
03761642ed
Correct indentation
2016-02-15 16:39:56 -07:00
Andreas Hocevar
3f2d79b7fe
Replace goog.events.Event/EventTarget system with our own
...
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01:00
Tim Schaub
d5c7f805ab
Unregister postrender listener in tests
2015-11-01 09:03:23 -07:00
Tim Schaub
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Éric Lemoine
95030cd838
Add ol.interaction.Draw#extend
...
This commit adds an `extend` method to the draw interaction. This method makes it possible to extend (continue drawing) an existing line string feature. It only works on line string features, where this functionality makes the most sense.
Here's an example on how to use `extend`:
```js
var vectorSource = vectorLayer.getSource();
vectroSource.removeFeature(feature);
drawInteraction.extend(feature);
```
2015-09-02 17:21:10 +02:00
Frederic Junod
2143eebd30
Fix drawstart and drawend events when drawing a point
...
The previous behavior was to fire a `drawstart` on the first `mousemove`.
2015-08-03 13:40:56 +02:00
Frederic Junod
3364dbb46e
Remove count argument from called function
...
This function takes no arguments, use the `callCount` property instead.
2015-08-03 10:02:21 +02:00
Éric Lemoine
b8cb1fe795
Merge pull request #3766 from elemoine/draw-click-tolerance
...
Add a clickTolerance option to the Draw interaction
2015-06-16 10:06:01 +02:00
Éric Lemoine
e99f43af8d
Add a clickTolerance option to the Draw interaction
2015-06-15 15:32:34 +02:00
Andreas Hocevar
53d5d8c1d9
Get rid of ol.FeatureOverlay
...
This also introduces a wrapX option to the Draw, Modify and Select
interaction.
2015-06-09 15:44:31 +02:00
Éric Lemoine
531b35d7c2
Be consistent with the way we name types
2015-05-21 17:32:32 +02:00
Andreas Hocevar
19c91235ce
Add convenience function to create a regular polygon geometryFunction
2015-05-14 23:24:29 +02:00
Andreas Hocevar
ed424eded8
Add support for freehand drawing to the Draw interaction
2015-04-22 17:45:55 +02:00
Guillaume Beraudo
c0c7b71af6
Add draw interaction test case
2015-04-16 17:44:45 +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
Éric Lemoine
56b08adef7
Add goog.provide for ol.DrawEventType
2015-02-25 21:59:57 +01:00
Tim Schaub
3e3104bbb1
Avoid leaking global listenerSpy
2015-02-18 16:05:33 -07:00
Christopher S. Case
b2ce4c19e1
added unit tests.
2015-02-18 09:50:10 -06:00
Éric Lemoine
1a856599cb
Add tests for ol.interaction.Draw#setMap
2014-09-30 10:00:53 +02:00
Éric Lemoine
a31f8a9446
Add tests for ol.interaction.Draw#setActive
2014-09-30 10:00:53 +02:00
Tim Schaub
47d37fabea
Rename ol.View2D to ol.View
2014-06-27 09:59:39 -04:00
tsauerwein
d0e818e8ce
Add condition to draw interaction
2014-06-06 15:54:38 +02:00
Bart van den Eijnden
945f5008f5
Ability to specify geometryName on ol.interaction.Draw
2014-05-14 08:35:27 +02:00
Tim Schaub
5653d57712
Change default renderer to Canvas
2014-04-02 11:43:20 -06:00
ahocevar
f5f2dae300
Updating tests for Draw interaction
2014-03-14 10:16:26 +01:00
Tim Schaub
333e4a9625
Rename getAllFeatures to getFeatures
2014-03-05 12:29:24 -07:00
Tom Payne
710d0c1bd8
Handle asynchronous rendering in tests
2014-02-20 19:44:29 +01:00
oterral
b2819a2332
Add some tests for drawing polygons
2014-01-22 09:59:04 +01:00
Tom Payne
8e372f8db0
Don't automatically orient rings in ol.geom.MultiPolygon
2014-01-21 16:11:52 +01:00
Tom Payne
ff73f080b3
Don't automatically orient rings in ol.geom.Polygon
2014-01-21 16:07:26 +01:00
Éric Lemoine
9d6d0e03c2
Configure draw interaction with a vector source
2014-01-20 16:09:48 +01:00
oterral
049ceb2ada
Add tests for draw interaction events
2014-01-14 17:38:11 +01:00
oterral
80962b0bf9
Add draw interaction tests
2014-01-10 14:02:36 +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