From 6abc62718c2eae7a0fea745256d166fdc2f4ad14 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 27 Jun 2006 12:53:50 +0000 Subject: [PATCH] aughhhh. This pains me, but it's in the spec. (Support ',' as a seperator for georss:point data.) git-svn-id: http://svn.openlayers.org/trunk/openlayers@793 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/GeoRSS.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/OpenLayers/Layer/GeoRSS.js b/lib/OpenLayers/Layer/GeoRSS.js index 09a90caf68..e1b93d39ef 100644 --- a/lib/OpenLayers/Layer/GeoRSS.js +++ b/lib/OpenLayers/Layer/GeoRSS.js @@ -66,6 +66,10 @@ OpenLayers.Layer.GeoRSS.prototype = var lon = OpenLayers.Util.getNodes(itemlist[i], 'geo:long'); if (point.length > 0) { var location = point[0].firstChild.nodeValue.split(" "); + + if (location.length !=2) { + var location = point[0].firstChild.nodeValue.split(","); + } } else if (lat.length > 0 && lon.length > 0) { var location = [parseFloat(lat[0].firstChild.nodeValue), parseFloat(lon[0].firstChild.nodeValue)]; } else {