[OpenLayers-Dev] get the map that caused the event
Paul Spencer
pspencer at dmsolutions.ca
Tue Jun 24 07:01:55 EDT 2008
Hi Dan,
I would recommend that you use firefox with the firebug extension for
this kind of work as firebug allows you to set breakpoints in code and
then inspect objects quite completely. In this case, you can set a
breakpoint inside the function and look at the evt object to see what
it contains - and would find what you need reasonably quickly along
with lots of other useful information.
Cheers
Paul
On 24-Jun-08, at 6:00 AM, Darko Radiceski 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
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
__________________________________________
Paul Spencer
Chief Technology Officer
DM Solutions Group Inc
http://www.dmsolutions.ca/
More information about the Dev
mailing list