|
[OSM-dev] GeoRSSClient - a generic JavaScript class for GeoRSS layers: msg#00050gis.openstreetmap.devel
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> |
|---|---|---|
| Previous by Date: | Re: [OSM-dev] New version of tiles@home: 00050, 80n |
|---|---|
| Next by Date: | Re: [OSM-dev] New version of tiles@home: 00050, Rhys Powell |
| Previous by Thread: | [OSM-dev] tiles@home: uploaded images not available?i: 00050, Hakan Tandogan |
| Next by Thread: | [OSM-dev] Another new version of tiles@home: 00050, OJW |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |