[OpenLayers-Dev] setLayer

Felipe Alcacibar falcacibar at gmail.com
Tue Nov 2 13:29:09 EDT 2010


On 1 November 2010 06:24, Mohammed Rashad <mohammedrashadkm at gmail.com> 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
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>
>

Felipe Alcacibar Buccioni
Developer of systems and solutions of
information and communication technologies


More information about the Dev mailing list