Re: [OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Mike Quentel
Fantastic--that worked. Thanks Christopher! Mike Quentel -Original Message- From: Christopher Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 April 2008 11:03 To: Mike Quentel Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] popups for markers dynamically generated from

Re: [OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Christopher Schmidt
On Wed, Apr 16, 2008 at 11:01:58AM -0400, Mike Quentel wrote: > 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. Don't use 'marker'. Use 'this'. Regards, -- Christopher Schm

Re: [OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Mike Quentel
Quentel Cc: users@openlayers.org 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 par

Re: [OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Christopher Schmidt
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

[OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Mike Quentel
I know there is a KML parser and examples that render graphics based on KML inputs. Since some of the KML sources I'm using are particularly huge, instead of having the KML parsed on the client through OL, I have a server-side KML reader (uses XPath/xalan.jar) that returns lists of coordinates to