diff --git a/lib/OpenLayers/Layer/GeoRSS.js b/lib/OpenLayers/Layer/GeoRSS.js index 1bb4893a0a..701e4332c7 100644 --- a/lib/OpenLayers/Layer/GeoRSS.js +++ b/lib/OpenLayers/Layer/GeoRSS.js @@ -190,6 +190,10 @@ OpenLayers.Layer.GeoRSS = OpenLayers.Class(OpenLayers.Layer.Markers, { new OpenLayers.Size(250, 120); if (title || description) { + // we have supplemental data, store them. + data.title = title; + data.description = description; + var contentHTML = '
[x]
'; contentHTML += '
'; if (link) { diff --git a/tests/Layer/GeoRSS.html b/tests/Layer/GeoRSS.html index 99937ba9fc..2fb66a63db 100644 --- a/tests/Layer/GeoRSS.html +++ b/tests/Layer/GeoRSS.html @@ -16,7 +16,7 @@ } function test_Layer_GeoRSS_constructor (t) { - t.plan( 5 ); + t.plan( 7 ); layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt ); t.ok( layer instanceof OpenLayers.Layer.GeoRSS, "new OpenLayers.Layer.GeoRSS returns object" ); t.eq( layer.location, georss_txt, "layer.location is correct" ); @@ -25,8 +25,12 @@ t.delay_call( 1, function() { t.eq( layer.markers.length, 40, "marker length is correct" ); var ll = new OpenLayers.LonLat(-71.142197, 42.405696); + var theTitle = "Knitting Room"; + var theDescription = 'This little shop is jammed full. Yarn, yarn everywhere. They make the most of every possible nook and cranny. I like this place also because they have a lot of different kinds of knitting needles in all different sizes. Also, the people who work here are younger and hipper than in the other stores I go to. I reccomend buying supplies here and then knitting your way through a good documentary at the Capitol Theater across the street.
Address: 2 lake St, Arlington, MA
Tags: knitting, yarn, pins and needles, handspun, hand dyed, novelty yarn, fancy, simple, young, hip, friendly, needles, addy, cute hats

Map this on Platial
Grab this on Platial '; t.ok( layer.markers[0].lonlat.equals(ll), "lonlat on first marker is correct" ); t.eq( layer.name, "Crschmidt's Places At Platial", "Layer name is correct." ); + t.eq( layer.features[0].data.title, theTitle); + t.eq( layer.features[0].data.description, theDescription); } ); }