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"><<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>></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>
> Hi all OLers-<br>
><br>
> Does anyone know of a way to structure a text file (for reading into<br>
> OpenLayers) to support lines and polygons? In my OL interface I am reading a<br>
> text file into a vector layer but so far it only works with points. My code<br>
> 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>
> var tLayer = new OpenLayers.Layer.Vector( 'Features', {<br>
> strategies: [new OpenLayers.Strategy.Fixed()],<br>
> projection:map.displayProjection,<br>
> protocol: new OpenLayers.Protocol.HTTP({<br>
> url: loc,<br>
> format: new OpenLayers.Format.Text<br>
> })<br>
> }<br>
> );<br>
><br>
><br>
><br>
><br>
><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>
<br>
</div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> <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>