[OpenLayers-Users] donut hole in regular polygon

Eric Lemoine eric.lemoine at camptocamp.com
Mon May 14 22:21:26 PDT 2012


On Tuesday, May 15, 2012, Richard Greenwood wrote:

> The ability to create a donut hole in a polygon is very slick! But now
> I'd like to add the same functionality to the regular polygon tool.
> The RegularPolygon is based on the Drag handler as opposed to the
> Polygon which is based on the Path handler. The Drag handler and the
> RegularPolygon do not to appear to the provide a holemodifier option
> or hole creation functionality. Can anyone give me suggestions or
> pointers on how to add hole creation functionality to the
> RegularPolygon handler?


It is indeed a shame that RegularPolygon does not inherit (to the broad
sense) from Polygon's functionality.

I'm afraid you'll have to write your own RegularPolygon handler. You can
some inspiration by looking at the Polygon handler.

Good luck.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120515/3cba2a84/attachment.html


More information about the Users mailing list