Base class for format reading/writing a variety of formats. Subclasses of OpenLayers.Format are expected to have read and write methods.
OpenLayers.
|
Base class for format reading/writing a variety of formats. |
Properties | |
externalProjection | {OpenLayers.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes. |
internalProjection | {OpenLayers.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes. |
data | {Object} When keepData is true, this is the parsed string sent to <read>. |
keepData | {Object} Maintain a reference (data) to the most recently read data. |
Constructor | |
OpenLayers.
|
Instances of this class are not useful. |
Functions | |
destroy | Clean up. |
{OpenLayers.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes. The externalProjection is the projection used by the content which is passed into read or which comes out of write. In order to reproject, a projection transformation function for the specified projections must be available. This support may be provided via proj4js or via a custom transformation function. See {OpenLayers.Projection.addTransform} for more information on custom transformations.
{OpenLayers.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes. The internalProjection is the projection used by the geometries which are returned by read or which are passed into write. In order to reproject, a projection transformation function for the specified projections must be available. This support may be provided via proj4js or via a custom transformation function. See {OpenLayers.Projection.addTransform} for more information on custom transformations.
{Object} When keepData is true, this is the parsed string sent to <read>.
{Object} Maintain a reference (data) to the most recently read data. Default is false.
Instances of this class are not useful. See one of the subclasses.
options | {Object} An optional object with properties to set on the format |
keepData | {Boolean} If true, upon <read>, the data property will be set to the parsed object (e.g. the json or xml object). |
An instance of OpenLayers.Format
Clean up.
destroy: function()
Set a custom transform method between two projections.
OpenLayers.Projection.addTransform = function( from, to, method )