Thanks, Chris!

ryan

On Wed, Feb 10, 2010 at 4:57 AM, Christopher Schmidt <
[email protected]> wrote:

> On Wed, Feb 10, 2010 at 12:37:00AM -0500, ryan burns wrote:
> > Hi all OLers-
> >
> > Does anyone know of a way to structure a text file (for reading into
> > OpenLayers) to support lines and polygons? In my OL interface I am
> reading a
> > text file into a vector layer but so far it only works with points. My
> code
> > is below. Many, many thanks in advance for any suggestions!!
>
> Use GeoJSON, KML, GML, OSM, or any of the other formats provided
> in OpenLayers.
>
>  http://docs.openlayers.org/library/formats.html
>
> -- chris
>
> > var tLayer = new OpenLayers.Layer.Vector( 'Features', {
> >               strategies: [new OpenLayers.Strategy.Fixed()],
> >               projection:map.displayProjection,
> >               protocol: new OpenLayers.Protocol.HTTP({
> >                  url: loc,
> >                  format: new OpenLayers.Format.Text
> >               })
> >               }
> >            );
> >
> >
> >
> >
> >
> > --
> > Department of Geography
> > University of Washington
> >
> > [email protected]
> > [email protected]
>
> > _______________________________________________
> > Users mailing list
> > [email protected]
> > http://openlayers.org/mailman/listinfo/users
>
>
> --
> Christopher Schmidt
> MetaCarta
>



-- 
Department of Geography
University of Washington

[email protected]
[email protected]
859-582-9125
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to