On 1 November 2010 06:24, Mohammed Rashad <[email protected]> wrote:
> draw = new OpenLayers.Control.DrawFeature( wfs, OpenLayers.Handler.Polygon,{
> title: "Draw Feature", "displayClass: "olControlDrawFeaturePolygon",multi:
> true } );
> wfs is my current layer.
> I had a function addLayer which add a new layer called new_layer.
> How to change the layer of control "draw". I looked at OL documentation and
> cannot find any function to set layers.
> Can we change the layer which control points to by any method.?
> Any help will be greatly appreciated.
> Thanks in advance
> --
> Rashad
>
http://dev.openlayers.org/docs/files/OpenLayers/Control/DrawFeature-js.html#OpenLayers.Control.DrawFeature.layer

just change the property

> _______________________________________________
> Dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>

Felipe Alcacibar Buccioni
Developer of systems and solutions of
information and communication technologies
_______________________________________________
Dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Reply via email to