[OpenLayers-Users] Markers with popup

Christopher Schmidt crschmidt at metacarta.com
Mon Jan 8 10:59:47 EST 2007


On Mon, Jan 08, 2007 at 04:26:25PM +0100, Robert Buzink wrote:
> hi Yves,
> 
> You already managed, so just for extra info:
> 
> I use the OpenLayers.Layer.Text() method. I get info from a sql-database and
> make a csv 'file' of it on the fly with php, using echo statements and tabs
> (\t) and linebreaks (\n). In addition, the script can take a category from
> the url to enable different overlays ( markers.txt.php?overlay=houses,
> markers.txt.php?overlay=trees, etc.).
> 
> There are some drawbacks though. Any linebreaks in the description-field
> will mess up the csv, for example. Using xml (georss) will be more robust, I
> guess, although one must escape html-tags properly, otherwise the xml-syntax
> returns errors.
> 
> I chose for csv because it is supported in the current stable version of
> openlayers. GeoRSS isn't, or is it?

GeoRSS has been supported since 2.0, however, it does not have support
built in for changing the display of markers, which the CSV layer does.
This is only because there hasn't been a patch ot support it -- I'd
gladly accept one. 

Regards, 
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list