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
+3 -3
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 * Deserialize a WKT string and return a vector feature or an
* array of vector features. Supports WKT for POINT, MULTIPOINT, * array of vector features. Supports WKT for POINT, MULTIPOINT,
* LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and * 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. * Serialize a feature or array of features into a WKT string.
* *
* Parameters: * Parameters:
@@ -95,7 +95,7 @@ OpenLayers.Format.WKT = OpenLayers.Class(OpenLayers.Format, {
* {String} The WKT string representation of the input geometries * {String} The WKT string representation of the input geometries
*/ */
write: function(features) { write: function(features) {
var collection, geometry, type, data, isCollection; var collection, geometry, isCollection;
if (features.constructor == Array) { if (features.constructor == Array) {
collection = features; collection = features;
isCollection = true; isCollection = true;