[OpenLayers-Users] popup with wfs marker layer...
Christopher Schmidt
crschmidt at metacarta.com
Sat Mar 10 22:20:22 EST 2007
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
More information about the Users
mailing list