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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user