From 5adbd137050f2dea0e1d44a7330e1aa6a13d90b3 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Tue, 10 Jul 2012 18:28:56 +0200 Subject: [PATCH] Add ol.TileCoord.toString --- src/ol/tilecoord.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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('/'); +};