[mapguide-users] Handle Click Event On Map

Maciej Skorczewski maciej.skorczewski at procad.pl
Tue Aug 29 05:16:28 EDT 2006


hi

just use javascript handle

  ex:

function watchInitialized ()
{
  try {
   	if(ViewerFrame.mapFrame.mapInit)
    		 {
   		 clearInterval(initTimer);
    	     originalOnSelectionChanged = ViewerFrame.OnSelectionChanged;
          ViewerFrame.OnSelectionChanged = show_file;
	     }
      }
    catch(Exception) {}
}


show_file is a js function ,you can write what script should do.

maciek.


sukalyan chakraborty napisał(a):
> i want to use my own code on map frame click event means when user click 
> on map.
> Now in the map pane or in the main.tmpl or map.tmpl where i will write 
> can you specify the position.
> i've already writen the code in onmapclick event in map.tmpl but it is 
> not working.





More information about the Mapguide-users mailing list