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:
@@ -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>
|
||||||
|
|||||||
@@ -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);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user