Rename toQuadKey to quadKey

This commit is contained in:
Tom Payne
2012-07-26 01:02:35 +02:00
parent 96b02904ef
commit 69fabce0c0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ ol.TileCoord.prototype.hash = function() {
/** /**
* @return {string} Quad key. * @return {string} Quad key.
*/ */
ol.TileCoord.prototype.toQuadKey = function() { ol.TileCoord.prototype.quadKey = function() {
var digits = new Array(this.z); var digits = new Array(this.z);
var mask = 1 << (this.z - 1); var mask = 1 << (this.z - 1);
var i, charCode; var i, charCode;
+2 -2
View File
@@ -27,8 +27,8 @@ function testCreateFromString() {
} }
function testToQuadKey() { function testQuadKey() {
assertEquals('213', (new ol.TileCoord(3, 3, 5)).toQuadKey()); assertEquals('213', (new ol.TileCoord(3, 3, 5)).quadKey());
} }