[mapguide-users] FW: Events? How to see if map is busy?

Willem Schwarte willem at giskit.nl
Wed Jul 12 06:45:48 EDT 2006

Okay, I've been busy trying to get this working.... I seem to have found
a way to open a popup window with a message text, but this popup needs
time to load and sometimes the map is loaded before the text so there is
no text visible.. 


Next I will try to get an image overlay or something on top of the map,
but I'm guessing this needs modifying code in templates, which I would
rather not do... 


Check it out here:




ps. Sometimes the map isn't loading properly, but just refresh...


Willem Schwarte




Van: Willem Schwarte [mailto:willem at giskit.nl] 
Verzonden: woensdag 12 juli 2006 9:15
Aan: users at mapguide.osgeo.org
Onderwerp: [mapguide-users] FW: Events? How to see if map is busy?





One of the most common NOTES we get from users, is that it is not very
clear if the map is doing something. E.g. when you click the map to zoom
in, there is no message or something that the map is busy zooming. The
most users will instantly click the map again, with the result that the
map zooms twice (or more).


So I tried to search for an event or function where I can see if the map
is busy, but I could not find such a function.  I looked at the
ajaxmappane.templ file to see where the zoom functions are invoked. E.g.
the StartToolFeedback(x, y, type)  function. But could not find out how
it handles the ending of zooming etc.


So my question, is there a function which I could use to e.g. generate a
popup window with some text that the map is busy and close the popup
after zooming (or any other function that requires the map to reload). 


Maybe something like this:


var originalOnCommandExecuted;

var initTimer = setInterval(watchInitialized, 200);


function watchInitialized () {

 try {




   originalOnCommandExecuted = ViewerFrame.tbFrame.OnCommandExecuted;

   ViewerFrame.tbFrame.OnCommandExecuted = MyOnCommandExecutedHandler;



   catch(Exception) {}



This works but only on clicking the toolbar, not while busy doing


Maybe there is an alternative, more simple solution to this? Please




Willem Schwarte


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060712/13da9fea/attachment.html

More information about the Mapguide-users mailing list