logo       

[OSM-dev] GeoRSSClient - a generic JavaScript class for GeoRSS layers: msg#00050

gis.openstreetmap.devel

Subject: [OSM-dev] GeoRSSClient - a generic JavaScript class for GeoRSS layers


In an effort to try and factor out common code for developing GeoRSS-based
marker layers, useful for instance for OpenStreetMap mashups, I have started
to develop a class called GeoRSSClient which allows you to (hopefully) easily
add capabilities to view, add and delete GeoRSS-based marker layers to an
OpenLayers-based application.

It's available from the OpenStreetMap SVN archive
(http://svn.openstreetmap.org) under utils/georss. A quick summary of how it
works - it has three modes: normal - for viewing georss layers, add - for
adding new markers (which will be added to the server too), and delete - for
deleting markers (which will be deleted from the server too).

For adding or deleting markers from the GeoRSS server, it's set up at the
moment to talk to a server which will accept the following parameters: (this
probably needs making more REST-compliant...)

action : add or delete
description: the description of the feature (goes in the RSS description tag)
type: the type of the feature (goes in featuretypetag)
lat
lon
link : the link associated with the tag (if any)
title: the title of the feature (goes in the RSS title tag)
guid: (delete only) the ID of the feature to delete

I can think of a number of ways to improve this but if anyone has any comments
please let me know.

Example application at
http://www.free-map.org.uk/test/index.html

Nick


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise