itggis

Map events handling

Discussion created by itggis on May 27, 2010
Latest reply on May 28, 2010 by lordcasb
Hi all.

I am bulding my application, and puting tools I need one by one. But now I have faced one problem with map events. As I add event handling functions in init function, some of them seems are not working properly. Now I can't make fire event onLayerAdd. I am testing it using line from reference: dojo.connect(map, "onLayerAdd", function() { console.log("Layer added"); });
Working only with onLoad events I have noticed it depends order (my guess is it helped), so may be there is some rules of how to make correct order of them.

If any one has an idea, please response.

Thanks in advance
Ricardas

Outcomes