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
Tim Schaub
8194ba9f0a
Remove setMode method from interaction in favor of add/removeInteraction
...
This makes the example a bit more awkward, but eventually adding and removing interactions will be the job of an editing control.
2013-11-12 10:30:37 -07:00
Tim Schaub
dbcfdbc76f
Updated style for draw example
2013-11-12 10:30:37 -07:00
Tim Schaub
2f07433593
Allow user to set drawing mode
2013-11-12 10:30:37 -07:00
Tim Schaub
048dec1644
Updated sketch style
2013-11-12 10:30:36 -07:00
Tim Schaub
d821f227ba
Add point at head of drawing
2013-11-12 10:29:29 -07:00
Tim Schaub
b3487ad30e
Draw interaction
2013-11-12 10:29:21 -07:00