OpenLayers JavaScript Mapping Library |
OpenLayers. Format.WKTClass for reading and writing Well-Known Text. Create a new instance with the OpenLayers.Format.WKT constructor. Inherits fromSummary
OpenLayers. Format.WKTCreate a new parser for WKT Parameters
Return{OpenLayers.Format.WKT} A new WKT parser. read
Deserialize a WKT string and return an OpenLayers.Feature.Vector or an array of OpenLayers.Feature.Vector. Supports WKT for POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and GEOMETRYCOLLECTION. Parameters
Return{<OpenLayers.Feature.Vector>|Array} A feature or array of features for GEOMETRYCOLLECTION WKT. |
Deserialize a WKT string and return an OpenLayers.Feature.Vector or an array of OpenLayers.Feature.Vector.
read: function( wkt )
Serialize a feature or array of features into a WKT string.
write: function( features )