AW: [OpenLayers-Users] Re: changing style of layerusingradiobutton

vrbikdan vrbikdan at gmail.com
Wed Mar 7 02:12:42 EST 2012


Hi,
so I suppose that this three lines are a key for my problem? 
styleAvon = new OpenLayers.StyleMap({'default': style, 'select':
selectStyle});
map.layers[2].styleMap = styleAvon;
map.layers[2].redraw();
Ok, I will try it. I suppose, that I can replace map.layers[2] with name of
the layer (f.e. avonZony_layer and so on) and instead of flags I can use my
old way (not so nice :)), am I wrong?

Thanks a lot, I will try it and I will write if I am succesfull ;)

Dan

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/changing-style-of-layer-using-radiobutton-tp4507241p4553559.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list