Concatenate keys instead of joining it

For performances reasons, see http://jsperf.com/array-join-string-concat
This commit is contained in:
Frederic Junod
2013-09-18 17:05:37 +02:00
parent 42f7288d73
commit e30d0fefb0

View File

@@ -109,7 +109,7 @@ ol.TileCoord.createOrUpdate = function(z, x, y, tileCoord) {
* @return {string} Key.
*/
ol.TileCoord.getKeyZXY = function(z, x, y) {
return [z, x, y].join('/');
return z + '/' + x + '/' + y;
};