MapTools.org

[Chameleon] legend_single_template works delayed

Huub Fleuren huub.fleuren@geodan.nl
Tue, 25 Nov 2003 13:10:34 +0100
Hi list,

I created two new  widgets called LayerOrderDown and LayerOrderUp (based 
on the MapUpdateWidget)

What the ParseURL function does is, loop through the $oMaps Layers list 
and if the name is the selected_layer $oMap->moveLayerUp($i)  in the 
LayerDown widget and $oMap->moveLayerDown($i)  in the LayerUp widget

I'm proud to say that this works.

That is: the map is recreated in the new order, but, there is a delay in 
the legend
Only a second /pan/update/zoomin event shows the selected layer in the 
new position in the legendlist

Its like the legend_template uses a session number of the previous cicle

What is going wrong?



Greetings,
Huub


-- 
-------------------------------------
Geodan IT b.v.
Buitenhaven 27-A
5211 TP 's-Hertogenbosch (NL)
-------------------------------------
Tel: +31 (0)73 - 692 5151
Fax:  +31 (0)73 - 692 5150
Mobiel:
-------------------------------------
Postadres / mailing address
President Kennedylaan 1
1079 MB Amsterdam (NL)
-------------------------------------
E-mail: huub.fleuren@geodan.nl
Website: www.geodan.nl
Disclaimer: www.geodan.nl/disclaimer
-------------------------------------



This archive was generated by Pipermail.