Rename toQuadKey to quadKey
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user