[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:

http://trac.openlayers.org/changeset/7964#file1
http://trac.openlayers.org/changeset/8831#file1

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

Tim

> 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