For now, it looks like this:
function mousedown(evt) {
alert(marker.lonlat);
}
Not sure how to pass the specifically bound marker object to the
function.
Mike
-----Original Message-----
From: Christopher Schmidt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 16 April 2008 10:55
To: Mike Quentel
Cc: [email protected]
Subject: Re: [OpenLayers-Users] popups for markers dynamically generated
from KML
On Wed, Apr 16, 2008 at 10:40:32AM -0400, Mike Quentel wrote:
> marker.events.register("mousedown", marker, mousedown);
This isn't the useful part of the code. The part of the code that
matters is what is *in* the mousedown function. My guess is that it
refers to a variable ('marker') rather than the bound marker object
('this'), but there's no really any way of knowing with the code you've
provided.
Regards,
--
Christopher Schmidt
MetaCarta
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute non-public
information. Any use of this information by anyone other than the intended
recipient is prohibited. If you have received this transmission in error,
please immediately reply to the sender and delete this information from your
system. Use, dissemination, distribution, or reproduction of this transmission
by unintended recipients is not authorized and may be unlawful.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users