[Users] Force update of Vector legends

Hugo hfpmartins at gmail.com
Sat Nov 12 16:59:36 CET 2011


Hello all,

I've made a widget to change the style of vector features and all is
working fine except for a small detail. After changing the style of a
vector layer, the corresponding legend in the legend panel only gets
updated after a zoom on the map. I've tried the methods update() and
doLayout to both legendPanel and VectorLegend but nothing happens on the
legend.

Any suggestions on how can i force the legend panel to update vector
legends immediately after defining a new style?

Thanks. Regards,

Hugo

-- 
Hugo Martins
LabNT - ISEGI UNL
Campus de Campolide
1070-312 Lisboa
N 38°43'56.84", W 9°9'35.74"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20111112/482dc7ce/attachment.htm 


More information about the Users mailing list