Thanks, Chris!<br><br>ryan<br><br><div class="gmail_quote">On Wed, Feb 10, 2010 at 4:57 AM, Christopher Schmidt <span dir="ltr">&lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Wed, Feb 10, 2010 at 12:37:00AM -0500, ryan burns wrote:<br>
&gt; Hi all OLers-<br>
&gt;<br>
&gt; Does anyone know of a way to structure a text file (for reading into<br>
&gt; OpenLayers) to support lines and polygons? In my OL interface I am reading a<br>
&gt; text file into a vector layer but so far it only works with points. My code<br>
&gt; is below. Many, many thanks in advance for any suggestions!!<br>
<br>
</div>Use GeoJSON, KML, GML, OSM, or any of the other formats provided<br>
in OpenLayers.<br>
<br>
 <a href="http://docs.openlayers.org/library/formats.html" target="_blank">http://docs.openlayers.org/library/formats.html</a><br>
<br>
-- chris<br>
<div class="im"><br>
&gt; var tLayer = new OpenLayers.Layer.Vector( &#39;Features&#39;, {<br>
&gt;               strategies: [new OpenLayers.Strategy.Fixed()],<br>
&gt;               projection:map.displayProjection,<br>
&gt;               protocol: new OpenLayers.Protocol.HTTP({<br>
&gt;                  url: loc,<br>
&gt;                  format: new OpenLayers.Format.Text<br>
&gt;               })<br>
&gt;               }<br>
&gt;            );<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Department of Geography<br>
&gt; University of Washington<br>
&gt;<br>
&gt; <a href="mailto:BurnsR77@gmail.com">BurnsR77@gmail.com</a><br>
&gt; <a href="mailto:rlburns@uw.edu">rlburns@uw.edu</a><br>
<br>
</div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<font color="#888888"><br>
<br>
--<br>
Christopher Schmidt<br>
MetaCarta<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Department of Geography<br>University of Washington<br><br><a href="mailto:BurnsR77@gmail.com">BurnsR77@gmail.com</a><br><a href="mailto:rlburns@uw.edu">rlburns@uw.edu</a><br>
859-582-9125<br>