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
Returns{OpenLayers.Format.WKT} A new WKT parser. read
Deserialize a WKT string and return a vector feature or an array of vector features. Supports WKT for POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and GEOMETRYCOLLECTION. Parameters
Returns{<OpenLayers.Feature.Vector>|Array} A feature or array of features for GEOMETRYCOLLECTION WKT. |
Deserialize a WKT string and return a vector feature or an array of vector features.
read: function( wkt )
Serialize a feature or array of features into a WKT string.
write: function( features )