Ticket #1024: w3cgeo.patch
| File w3cgeo.patch, 1.7 kB (added by crschmidt, 1 year ago) |
|---|
-
tests/Format/test_GeoRSS.html
old new 26 26 var data = parser.write([f]); 27 27 t.eq(data, '<rss xmlns="http://backend.userland.com/rss2"><item><title></title><description></description><georss:line xmlns:georss="http://www.georss.org/georss">45.68 -111.04 45.68 -112.04</georss:line></item></rss>', 'GeoRSS serializes a line correctly'); 28 28 } 29 function test_Format_GeoRSS_w3cgeo(t) { 30 t.plan(2); 31 32 var parser = new OpenLayers.Format.GeoRSS(); 33 var data = parser.read('<rss xmlns="http://backend.userland.com/rss2" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"><item><geo:long>-1</geo:long><geo:lat>1</geo:long></item></rss>'); 34 t.eq(features.geometry.x, "-1", "w3c geo x read correctly"); 35 t.eq(features.geometry.y, "1", "w3c geo y read correctly"); 36 } 29 37 function test_Format_GeoRSS_roundtrip(t) { 30 38 t.plan(input.length); 31 39 var parser = new OpenLayers.Format.GeoRSS(); -
lib/OpenLayers/Format/GeoRSS.js
old new 38 38 * "http://www.georss.org/georss" 39 39 */ 40 40 georssns: "http://www.georss.org/georss", 41 42 /** 43 * APIProperty: geons 44 * {String} W3C Geo namespace to use. Defaults to 45 * "http://www.w3.org/2003/01/geo/wgs84_pos#" 46 */ 47 geons: "http://www.w3.org/2003/01/geo/wgs84_pos#", 41 48 42 49 /** 43 50 * APIProperty: featureTitle
