<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
There is a function called "OnMapLoading" which you can hijack like
this:<br>
<br>
//Keep a reference to the original function<br>
GetMapFrame().original_OnMapLoading = GetMapFrame().OnMapLoading;<br>
<br>
//Assign a new function<br>
GetMapFrame().OnMapLoading = function(){<br>
<br>
try {<br>
<br>
//Place more meaningfull code here :)<br>
alert("The map is now loading");<br>
<br>
} catch (e) //Make sure our code does not break the function<br>
{} <br>
<br>
//Activate the actual MapGuide handler<br>
original_OnMapLoading();<br>
};<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Langen, Gido skrev:
<blockquote
cite="mid:EDE78E704FF591488634CF2607D4F95E02E2EEC0@s0-ott-x4.nrn.nrcan.gc.ca"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator"
content="MS Exchange Server version 6.5.7654.12">
<title>Event that captures mouse action</title>
<!-- Converted from text/rtf format -->
<p><font face="Arial" size="2">Does anyone know how to capture a
mouse click on the map? I want to do some scale dependent processing
and want to capture the scale after zooming in/out. I need to know the
scale right after the zoom in/out, before the map is redrawn. </font></p>
<p><font face="Arial" size="2">Thanks for any insight,</font>
<br>
<font face="Arial" size="2">Gido </font>
</p>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>