[OpenLayers-Users] popup with wfs marker layer...

John Cole john.cole at uai.com
Wed Mar 14 09:42:39 EDT 2007


Thanks!  It's working :-)

John

-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt at metacarta.com] 
Sent: Tuesday, March 13, 2007 7:03 PM
To: John Cole
Cc: 'users at openlayers.org'
Subject: Re: [OpenLayers-Users] popup with wfs marker layer...

On Tue, Mar 13, 2007 at 05:35:53PM -0600, John Cole wrote:
> Christopher,
>   I've made it a little further...  I've subclassed Feature.WFS into
> Feature.WFS.Marker, and I'm parsing the GML to get the 'gid' and creating
> the feature with that ID and gid.  But I'm having problems getting back to
> that gid from the evt object.
> 
> Here is my class (and debug routine) so far.  Any suggestions?  I was
> expecting the evt object to have the gid, or an object attached to the evt
> object to have it.

'evt' is the browser event. 'this' in the markerClick function is the
feature. The feature.data has the gid. DumpResult could be
"alert(result.data.gid);", which should show it if you change
markerClick like so:

> markerClick: function(evt) {
> 	
> 	DumpResult("markerClick", this);
> 	OpenLayers.Event.stop(evt);
> },

Regards,
-- 
Christopher Schmidt
MetaCarta

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 3/12/2007
7:19 PM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.11/721 - Release Date: 3/13/2007
4:51 PM
 
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.



More information about the Users mailing list