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

John Cole john.cole at uai.com
Sun Mar 11 11:19:53 EDT 2007


Christopher,
  I'm not married to the markers, but it seems to fit the bill for this
application.  Will the new WFS allow points to be rendered with a bitmap as
well as a vector symbol?

  In either case, it would be very nice to have an option to attach a
feature level event to vector layers, to handle selection/info/editing of
WFS features.

  To make sure I understand how to do what I want with the 2.3 WFS markers,
I need to create a new class, inherit from OpenLayers.Layer.WFS and override
the function that populates the markers array, attaching my event handler as
the markers are created.  That seems ok, but I can't seem to find the
function that actually loads the markers, could you provide a hint as to
it's location? :-)

Thanks,

John

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

On Sat, Mar 10, 2007 at 03:15:32PM -0600, John Cole wrote:
> I'm trying to create a popup based off of a WFS layer, but I'm a little
> unclear on which object I should register for the call back.
> 
> I'd like it to work similar to the Text layer, where I click on a marker
and
> it displays the info from the WFS object.  The Text layer puts a popup
> handler on each marker.  With the WFS layer, I can get an event registered
> so it is called when a marker is clicked, but I don?t yet understand how
to
> tie the event back to the information in the WFS layer.
> 
> I'd appreciate a suggestion or pointer on how to implement this type of
> popup.

Two things:
 
  1. The next release of OpenLayers is going to change the WFS
     functionality to be based on vectors instead of markers. Because I
     had not yet seen what I considered a critical mass of users
     changing the behavior of the WFS layer, I considered changing this
     without changing the name to be acceptable. It sounds like you're
     saying that you would like this to not change. Is this correct?

  2. I don't know of anyone who has succesfully done this. In general,
     the way this is meant to be done is via subclassing Feature.WFS
     such that it has a different createMarker and createPopup functions
     or something like that, but I don't have any working examples for
     you. 

Regards,
-- 
Christopher Schmidt
MetaCarta

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.8/716 - Release Date: 3/9/2007
6:53 PM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.8/718 - Release Date: 3/11/2007
9:27 AM
 
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