git-svn-id: http://svn.openlayers.org/trunk/openlayers@1265 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
12 lines
745 B
Plaintext
12 lines
745 B
Plaintext
OpenLayers.Layer.GeoRSS
|
|
|
|
GeoRSS layer. Pass a name and location of a GeoRSS file on the web, and a marker will be added to the map for each item in the GeoRSS feed. Uses OpenLayers.loadURL to load the XML, parses the data, and adds markers to the map.
|
|
|
|
* Constructor
|
|
OpenLayers.Layer.GeoRSS(name, url) -- Name and location of GeoRSS XML file.
|
|
|
|
* Methods
|
|
parseData(ajaxResponse) -- none -- Callback for the loadURL call. This function parses the XML for the GeoRSS feed, creating markers for the data and adding a popup to each marker. It populates an array of features as 'this.features'.
|
|
markerClick(Event) -- none -- Action to perform when a marker is clicked.
|
|
clearFeatures() -- none -- Removes all features and markers from the map.
|