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
+3 -3
View File
@@ -2,7 +2,7 @@
<head> <head>
<style type="text/css"> <style type="text/css">
#map { #map {
width: 512px; width: 45%;
height: 350px; height: 350px;
border: 1px solid gray; border: 1px solid gray;
} }
@@ -42,8 +42,8 @@
</head> </head>
<body onload="init()"> <body onload="init()">
<h1>OpenLayers Draw Point Example</h1> <h1>OpenLayers Draw Point Example</h1>
<div style="float:right"> <div style="float:right;width:50%">
<textarea id="gml" cols="80" rows="30"></textarea> <textarea id="gml" style="width:100%" rows="30"></textarea>
</div> </div>
<div id="map"></div> <div id="map"></div>
</body> </body>
+2 -2
View File
@@ -97,10 +97,10 @@ OpenLayers.Format.GeoRSS.prototype =
var path = ""; var path = "";
if (points) { if (points) {
for (var i = 0; i < points.length; i++) { for (var i = 0; i < points.length; i++) {
path += points[i].lat + " " + points[i].lon + " "; path += points[i].y + " " + points[i].x + " ";
} }
} else { } else {
path += geometry.lat + " " + geometry.lon + " "; path += geometry.y + " " + geometry.x + " ";
} }
return document.createTextNode(path); return document.createTextNode(path);
}, },
+1 -1
View File
@@ -17,6 +17,7 @@
<li>Geometry/test_Rectangle.html</li> <li>Geometry/test_Rectangle.html</li>
<li>Geometry/test_Surface.html</li> <li>Geometry/test_Surface.html</li>
<li>test_Format.html</li> <li>test_Format.html</li>
<li>Format/test_GeoRSS.html</li>
<li>Format/test_GML.html</li> <li>Format/test_GML.html</li>
<li>Format/test_WKT.html</li> <li>Format/test_WKT.html</li>
<li>test_Icon.html</li> <li>test_Icon.html</li>
@@ -58,6 +59,5 @@
<li>Control/test_PanZoomBar.html</li> <li>Control/test_PanZoomBar.html</li>
<li>Control/test_Permalink.html</li> <li>Control/test_Permalink.html</li>
<li>Control/test_Scale.html</li> <li>Control/test_Scale.html</li>
<li>test_Format.html</li>
<li>test_Map.html</li> <li>test_Map.html</li>
</ul> </ul>