OpenLayers. Format.Text

Read Text format.  Create a new instance with the OpenLayers.Format.Text constructor.  This reads text which is formatted like CSV text, using tabs as the seperator by default.  It provides parsing of data originally used in the MapViewerService, described on the wiki.  This Format is used by the OpenLayers.Layer.Text class.

Inherits from

Summary
OpenLayers. Format.TextRead Text format.
Constructor
OpenLayers. Format.TextCreate a new parser for TSV Text.
Functions
readReturn a list of features from a Tab Seperated Values text string.

Constructor

OpenLayers. Format.Text

Create a new parser for TSV Text.

Parameters

options{Object} An optional object whose properties will be set on this instance.

Functions

read

read: function(text)

Return a list of features from a Tab Seperated Values text string.

Parameters

data{String}

Returns

An Array of OpenLayers.Feature.Vectors

read: function(text)
Return a list of features from a Tab Seperated Values text string.
Create a new parser for TSV Text.
This layer creates markers given data in a text file.
Base class for format reading/writing a variety of formats.
Vector features use the OpenLayers.Geometry classes as geometry description.
Close