[OpenLayers-Dev] styling RegularPolygon handler?

Tim Schaub tschaub at opengeo.org
Mon Feb 8 12:18:03 EST 2010

Bart van den Eijnden wrote:
> Hi list,
> is there currently a way to not have the RegularPolygon handler draw things in the default style, but in another style?
> The constructor currently reads:
> this.style = OpenLayers.Util.extend(OpenLayers.Feature.Vector.style['default'], {});
> which gives me no option to change the style.

Here are the related changes to allow this in the other sketch handlers:


You could create a similar patch for the regular polygon handler.


> Best regards,
> Bart
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev

Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.

More information about the Dev mailing list