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 : [email protected] http://www.camptocamp.com
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
