Merge pull request #815 from Turbo87/wkt

Small Format.WKT code cleanup
This commit is contained in:
Tim Schaub
2012-12-28 11:38:01 -08:00

View File

@@ -41,7 +41,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
},
/**
* Method: read
* APIMethod: 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
@@ -84,7 +84,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
},
/**
* Method: write
* APIMethod: write
* Serialize a feature or array of features into a WKT string.
*
* Parameters:
@@ -95,7 +95,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
* {String} The WKT string representation of the input geometries
*/
write: function(features) {
var collection, geometry, type, data, isCollection;
var collection, geometry, isCollection;
if (features.constructor == Array) {
collection = features;
isCollection = true;