Ticket #1485: more_georss.patch
| File more_georss.patch, 2.6 kB (added by ianmayo, 9 months ago) |
|---|
-
tests/Layer/GeoRSS.html
old new 16 16 } 17 17 18 18 function test_Layer_GeoRSS_constructor (t) { 19 t.plan( 5);19 t.plan( 7 ); 20 20 layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt ); 21 21 t.ok( layer instanceof OpenLayers.Layer.GeoRSS, "new OpenLayers.Layer.GeoRSS returns object" ); 22 22 t.eq( layer.location, georss_txt, "layer.location is correct" ); … … 25 25 t.delay_call( 1, function() { 26 26 t.eq( layer.markers.length, 40, "marker length is correct" ); 27 27 var ll = new OpenLayers.LonLat(-71.142197, 42.405696); 28 var theTitle = "Knitting Room"; 29 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.<br/>Address: 2 lake St, Arlington, MA <br/>Tags: knitting, yarn, pins and needles, handspun, hand dyed, novelty yarn, fancy, simple, young, hip, friendly, needles, addy, cute hats<br /><br /><a href="http://platial.com/place/90306">Map this on Platial</a><br /> <a href="http://platial.com/place_grab/90306">Grab this on Platial</a> '; 28 30 t.ok( layer.markers[0].lonlat.equals(ll), "lonlat on first marker is correct" ); 29 31 t.eq( layer.name, "Crschmidt's Places At Platial", "Layer name is correct." ); 32 t.eq( layer.features[0].data.title, theTitle); 33 t.eq( layer.features[0].data.description, theDescription); 30 34 } ); 31 35 } 32 36 -
lib/OpenLayers/Layer/GeoRSS.js
old new 190 190 new OpenLayers.Size(250, 120); 191 191 192 192 if (title || description) { 193 // we have supplemental data, store them. 194 data.title = title; 195 data.description = description; 196 193 197 var contentHTML = '<div class="olLayerGeoRSSClose">[x]</div>'; 194 198 contentHTML += '<div class="olLayerGeoRSSTitle">'; 195 199 if (link) {
