[OpenLayers-Dev] get the map that caused the event

bartvde at osgis.nl bartvde at osgis.nl
Tue Jun 24 06:44:25 EDT 2008


Try evt.object.

Best regards,
Bart

On Tue, 24 Jun 2008 20:00:50 +1000, "Darko Radiceski" <radiceski at gmail.com>
wrote:
> Dear all,
> 
> Is it possible to get the name of the map that fired the cliecked event?
> 
> I can get
> 
> 
> onClick: function(evt) {
> 
> var output = document.getElementById(this.key + "Output");
> 
> var msg = "click " + evt.xy;
> 
> output.value = output.value + msg + "\r\n";
> 
> },
> 
> the x and y but how about the map name? or maybe div id?
> 
> 
> 
> Cheers
> 
> Dan
> 
> 
> --
> Radiceski Dan
> University of Wollongong
> Australia
> SIFE - UOW Chapter - Alumni
> CASUAL ACADEMIC STAFF TEACHING - UOW SITACS
> (School of Information Technology and Computer Science,University of
> Wollongong)
> Univeristy of Wollongong - Alumni




More information about the Dev mailing list