[OpenLayers-Users] How to start draw feature on map programmatically

KS ks at designers.pl
Mon May 18 03:57:11 PDT 2015


Hi everyone,

 I'd like to know how to start draw a feature (ex. Polygon) on  map  
using OpenLayers.Control.DrawFeature

I have a map with OpenLayers.Control.DrawFeature on toolbar 
(OpenLayers.Control.Panel ).
I can start draw feature geometry on map selecting button/ icon on 
toolbar and it works.

But how to start draw a feature (ex. Polygon) programmatically on  map 
using Control.DrawFeature
without selection on draw button/ icon on toolbar (strat from javascript 
code) .

Thanks in advance for any help

K.Skwarek




More information about the Users mailing list