Patch from fredj adds toString() method to Geometry.Linearring. Fixes #565. Thanks, Fred.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2899 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -20,7 +20,7 @@ OpenLayers.Class = {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
if (typeof arguments[i] == "function") {
|
||||
var mixin = arguments[i];
|
||||
arguments[i] = new mixin(OpenLayers.Class.isPrototype);
|
||||
arguments[i] = mixin.prototype;
|
||||
}
|
||||
OpenLayers.Util.extend(proto, arguments[i]);
|
||||
|
||||
|
||||
@@ -108,6 +108,15 @@ OpenLayers.Geometry.LinearRing.prototype =
|
||||
return area;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* @returns The coordinates components as a string
|
||||
* @type String
|
||||
*/
|
||||
toString: function() {
|
||||
return this.components.toString();
|
||||
},
|
||||
|
||||
/** @final @type String */
|
||||
CLASS_NAME: "OpenLayers.Geometry.LinearRing"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user