Add ol.TileCoord.toString

This commit is contained in:
Tom Payne
2012-07-10 18:28:56 +02:00
committed by Tom Payne
parent e199fbd7f6
commit 5adbd13705

View File

@@ -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('/');
};