[OpenLayers-Users] vector layer from text file
ryan burns
burnsr77 at gmail.com
Wed Feb 10 00:37:00 EST 2010
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!!
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
BurnsR77 at gmail.com
rlburns at uw.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100210/d97e5966/attachment.html
More information about the Users
mailing list