[OpenLayers-Users] drawFeature control needs two clicks...?

Alexandre Dube adube at mapgears.com
Thu Apr 15 15:07:34 EDT 2010


Chris Green wrote:
> Hi Alex
>
> Thanks for the suggestion, it works!
>
> But....I can't see how to change the radius of the point that is drawn - is
> it possible?
>   
Yes.  Take a look at the following file at line 392 :
http://trac.openlayers.org/browser/tags/openlayers/release-2.9-rc2/lib/OpenLayers/Feature/Vector.js

There you have the default symbolizers for features drawn.  You 
overwrite these by using the OpenLayers.Util.applyDefaults method, see 
in this acticle (the first gray box, below *Basics*)

What you're looking for is 'pointRadius'.

Kind regards,

-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Users mailing list