Update GeoRSS serialization so that it works. Damn you, lat/lon! Closes #695.

Thx for review Tim.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3132 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-05-04 14:35:48 +00:00
parent 4b599da130
commit bdab3adb29
3 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
<head>
<style type="text/css">
#map {
width: 512px;
width: 45%;
height: 350px;
border: 1px solid gray;
}
@@ -42,8 +42,8 @@
</head>
<body onload="init()">
<h1>OpenLayers Draw Point Example</h1>
<div style="float:right">
<textarea id="gml" cols="80" rows="30"></textarea>
<div style="float:right;width:50%">
<textarea id="gml" style="width:100%" rows="30"></textarea>
</div>
<div id="map"></div>
</body>

View File

@@ -97,10 +97,10 @@ OpenLayers.Format.GeoRSS.prototype =
var path = "";
if (points) {
for (var i = 0; i < points.length; i++) {
path += points[i].lat + " " + points[i].lon + " ";
path += points[i].y + " " + points[i].x + " ";
}
} else {
path += geometry.lat + " " + geometry.lon + " ";
path += geometry.y + " " + geometry.x + " ";
}
return document.createTextNode(path);
},

View File

@@ -17,6 +17,7 @@
<li>Geometry/test_Rectangle.html</li>
<li>Geometry/test_Surface.html</li>
<li>test_Format.html</li>
<li>Format/test_GeoRSS.html</li>
<li>Format/test_GML.html</li>
<li>Format/test_WKT.html</li>
<li>test_Icon.html</li>
@@ -58,6 +59,5 @@
<li>Control/test_PanZoomBar.html</li>
<li>Control/test_Permalink.html</li>
<li>Control/test_Scale.html</li>
<li>test_Format.html</li>
<li>test_Map.html</li>
</ul>