On Mon, Jan 19, 2009 at 1:52 PM, Jatin Ambasana <[email protected]> wrote: > http://mail.google.com/mail/#label/openlayers/11eeef3d8dc95c53 > Hello everyone, > > I have added DrawFeature control to my map. > Whenever it is activated it will always draw a polygon of sides 40 i.e. an > approx circle. > This is its code: > > polyOptions = {sides: 40, radius: rad, angle: 0}; > polygonControl = new > OpenLayers.Control.DrawFeature(polygonLayer, > > OpenLayers.Handler.RegularPolygon, > {handlerOptions: polyOptions, > featureAdded:circleAdded}); > map.addControl(polygonControl); > > Now the problem is that the circleAdded function is not called when a circle > is drawn on map.
What OpenLayers version do you use? Changeset 8616 (<http://trac.openlayers.org/changeset/8616>) should fix it, give trunk a try. Regards, -- Eric _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
