[Users] Change color line in OpenLayers.Handler.Path

Vidal, Antoni antoni.vidal at icc.cat
Fri Mar 4 12:26:12 CET 2011


Hi Alexander,

 

You answered me in OL list but my problem is using GeoExt.

 

My code:

 

        action = new GeoExt.Action({

            control: new OpenLayers.Control.Measure(OpenLayers.Handler.Path, {persist: true}),

            tooltip: 'Line',

            map: map,

            iconCls: 'drawline',

            toggleGroup: 'tools'

        });

 

        action.control.events.on({

            "measure": handleMeasurement,

            "measurepartial": handleMeasurements

        });

 

        actions.push(action);

 

How can I change default orange color of drawned lines?

 

Thanks again

 

Antoni Vidal

Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392> 
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110304/269bc6b8/attachment.htm 


More information about the Users mailing list