diff --git a/src/ol/tilecoord.js b/src/ol/tilecoord.js index a34e2e55c9..4252ee098e 100644 --- a/src/ol/tilecoord.js +++ b/src/ol/tilecoord.js @@ -38,3 +38,11 @@ ol.TileCoord.prototype.clone = function() { ol.TileCoord.prototype.hash = function() { return (this.x << this.z) + this.y; }; + + +/** + * @return {string} String. + */ +ol.TileCoord.prototype.toString = function() { + return [this.z, this.x, this.y].join('/'); +};