Improve docs, comments and code readability

This commit is contained in:
Andreas Hocevar
2015-04-19 08:49:17 +02:00
parent 6a2aa833b4
commit 8fd4e2c7c5
3 changed files with 10 additions and 6 deletions

View File

@@ -135,14 +135,16 @@ ol.renderer.canvas.Map.prototype.dispatchComposeEvent_ =
var worldWidth = ol.extent.getWidth(projectionExtent);
var world = 0;
while (startX < projectionExtent[0]) {
transform = this.getTransform(frameState, worldWidth * (--world));
--world;
transform = this.getTransform(frameState, worldWidth * world);
replayGroup.replay(context, pixelRatio, transform, rotation, {});
startX += worldWidth;
}
world = 0;
startX = extent[2];
while (startX > projectionExtent[2]) {
transform = this.getTransform(frameState, worldWidth * (++world));
++world;
transform = this.getTransform(frameState, worldWidth * ++world);
replayGroup.replay(context, pixelRatio, transform, rotation, {});
startX -= worldWidth;
}