Use block scoping
This commit is contained in:
@@ -207,11 +207,11 @@ ol.format.MVT.prototype.setLayers = function(layers) {
|
||||
ol.format.MVT.calculateFlatCoordinates_ = function(
|
||||
coords, flatCoordinates, ends) {
|
||||
var end = 0;
|
||||
var line, coord;
|
||||
for (var i = 0, ii = coords.length; i < ii; ++i) {
|
||||
line = coords[i];
|
||||
for (var j = 0, jj = line.length; j < jj; ++j) {
|
||||
coord = line[j];
|
||||
var line = coords[i];
|
||||
var j, jj;
|
||||
for (j = 0, jj = line.length; j < jj; ++j) {
|
||||
var coord = line[j];
|
||||
// Non-tilespace coords can be calculated here when a TileGrid and
|
||||
// TileCoord are known.
|
||||
flatCoordinates.push(coord.x, coord.y);
|
||||
|
||||
Reference in New Issue
Block a user