[OpenLayers-Dev] setLayer

Mohammed Rashad mohammedrashadkm at gmail.com
Mon Nov 1 05:24:47 EDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20101101/28d95539/attachment.html


More information about the Dev mailing list