[OpenLayers-Users] EditingToolbar - how to freehand and style the pen color

Chris Hardin chrislhardin at gmail.com
Thu Aug 23 10:49:29 EDT 2007


I have the following on my map

var editOptions = {handlerOptions: {freehand: true}};

                  map.addControl(new
OpenLayers.Control.EditingToolbar(editableLayer,editOptions  ));


I want to freehand draw circles and other objects, but the toolbar
doesn't have an option for that. I choose point and I want to draw a
circle or write, but it just puts orange round circles on the map. How
can I draw on the map freehand?? Also, how can I style the color of
the points and lines. I might want red or blue. Is there a color
chooser palette????

Chris



More information about the Users mailing list