The correct syntax is:

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

Erwin

2009/4/8 Erwin Poeze <[email protected]>:
> 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
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to