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

Darko Radiceski radiceski at gmail.com
Tue Jun 24 06:00:50 EDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080624/0397ac15/attachment.html


More information about the Dev mailing list