[OpenLayers-Users] Markers with popup
nick at hogweed.org
Fri Jan 5 08:44:43 EST 2007
On Friday 05 Jan 2007 13:25, Yves Jacolin wrote:
> for basic questions.
> I want to display a different popup for each points. My points come from a
> postgresql DB that I retrieve using AJAX. All informations (lon, lat, icon,
> html for popup) are in a variable. I am using the code from the popups.html
> My problem is I can't manage the HTML content for each marker. In the
> popups.html example, there are one marker and so one content.
> Thanks for your answer.
This sounds kind of similar to what I'm doing. If you make your points
available as a GeoRSS feed, you can use the "GeoRSS2" layer available at
which creates markers from a GeoRSS feed.
There is a load() method which takes a bounding box and loads all markers in
There is a full example at
You might want to look at the code for that.
Part of the code is a generic "GeoRSSClient" class which allows the user to
add and remove markers. This is at
Let me know if you need more details on any of this.
More information about the Users