[OpenLayers-Commits] r3132 - in trunk/openlayers: examples lib/OpenLayers/Format tests

commits at openlayers.org commits at openlayers.org
Fri May 4 10:35:49 EDT 2007


Author: crschmidt
Date: 2007-05-04 10:35:48 -0400 (Fri, 04 May 2007)
New Revision: 3132

Modified:
   trunk/openlayers/examples/georss-serialize.html
   trunk/openlayers/lib/OpenLayers/Format/GeoRSS.js
   trunk/openlayers/tests/list-tests.html
Log:
Update GeoRSS serialization so that it works. Damn you, lat/lon! Closes #695.
Thx for review Tim.


Modified: trunk/openlayers/examples/georss-serialize.html
===================================================================
--- trunk/openlayers/examples/georss-serialize.html	2007-05-04 14:34:00 UTC (rev 3131)
+++ trunk/openlayers/examples/georss-serialize.html	2007-05-04 14:35:48 UTC (rev 3132)
@@ -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>

Modified: trunk/openlayers/lib/OpenLayers/Format/GeoRSS.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/GeoRSS.js	2007-05-04 14:34:00 UTC (rev 3131)
+++ trunk/openlayers/lib/OpenLayers/Format/GeoRSS.js	2007-05-04 14:35:48 UTC (rev 3132)
@@ -97,10 +97,10 @@
         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);
     },

Modified: trunk/openlayers/tests/list-tests.html
===================================================================
--- trunk/openlayers/tests/list-tests.html	2007-05-04 14:34:00 UTC (rev 3131)
+++ trunk/openlayers/tests/list-tests.html	2007-05-04 14:35:48 UTC (rev 3132)
@@ -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>



More information about the Commits mailing list