Timeouts and map/layer loading.

1 message Options
Embed this post
Permalink
Tómas Guðmundsson

Timeouts and map/layer loading.

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi all.

 

I am trying to dynamically create a fly-out menu based on some layers in my map. However, I have this function that runs through all the layers and layer groups and adds all the layers to an Array based on a prefix . And I have it print out every time it is being called (it’s recursive). When I do it in the “initialize” function it only prints out twice. If I do it upon button press (i.e. the map is fully loaded) it prints out 6 times.  So just for giggles I tried the “setTimeout” function but then it didn’t recognize the function that was part of Fusion. So I’m wandering, how can I make it wait so that it doesn’t go searching through the whole of the layer groups until they are all fully loaded? Any ideas ?

 

Kind regards,

Tómas.


_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users