[OpenLayers-Users] DrawFeature control not working properly
Eric Lemoine
eric.c2c at gmail.com
Mon Jan 19 16:36:33 EST 2009
On Mon, Jan 19, 2009 at 1:52 PM, Jatin Ambasana <jatin.a at iworktech.com> 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
More information about the Users
mailing list