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

View File

@@ -95,7 +95,7 @@ ol.TileCoord.prototype.hash = function() {
/**
* @return {string} Quad key.
*/
ol.TileCoord.prototype.toQuadKey = function() {
ol.TileCoord.prototype.quadKey = function() {
var digits = new Array(this.z);
var mask = 1 << (this.z - 1);
var i, charCode;

View File

@@ -27,8 +27,8 @@ function testCreateFromString() {
}
function testToQuadKey() {
assertEquals('213', (new ol.TileCoord(3, 3, 5)).toQuadKey());
function testQuadKey() {
assertEquals('213', (new ol.TileCoord(3, 3, 5)).quadKey());
}