[OpenLayers-Users] correct syntax geometryTypes

Erwin Poeze erwin.poeze at gmail.com
Wed Apr 8 08:53:11 EDT 2009


The correct syntax is:

   modifypoint : new
OpenLayers.Control.ModifyFeature(layer,{hover:true,geometryTypes:["OpenLayers.Geometry.Point"]});

Erwin

2009/4/8 Erwin Poeze <erwin.poeze at gmail.com>:
> I made an application that is able to draw and modify linestrings and
> points.  When the user wants to modify a point, I want to limit the
> features that can be modified to points only.
> A code snippet that works is:
>
> [...]
>  modifypoint : new OpenLayers.Control.ModifyFeature(layer,{hover:true}),
> [...]
>
> I tried to added several options like:
>
>  modifypoint : new OpenLayers.Control.ModifyFeature(layer,{hover:true,
> geometryTypes:["Point"]}),
>
> but they all break the ModifyFeature method.
>
> I can not find any example on openlayers.org. Can someone please tell
> me the correct syntax?
>
> Thanks,
> Erwin
>



More information about the Users mailing list