[OpenLayers-Users] Drawing Holes in Polygons

Bart van den Eijnden bartvde at boundlessgeo.com
Tue Nov 26 04:00:51 PST 2013


I don’t think this works with the editing toolbar, since you cannot give handlerOptions to its drawing controls.

So either create your own toolbar or set this code:

OpenLayers.Handler.Polygon.prototype.holeModifier = “altKey";

Best regards,
Bart

--
Bart van den Eijnden
Front-end Developer | Boundless
@boundlessgeo

On 26 Nov 2013, at 12:53, adityakumar529 <adityakumar529 at gmail.com> wrote:

> Hey Bart,
>  This is the same example I had used. But I am not able to activate the
> controls.
> 
> 
> Aditya Kumar
> 
> 
> 
> -----
> GIS Developer
> 
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Drawing-Holes-in-Polygons-tp5091258p5091261.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20131126/8fbf209b/attachment.html>


More information about the Users mailing list