Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reverting b0a7bad

I think it's complicating things at this point to deal with this.  Unfortunately, it's not proper dateline wrapping as is (only arbitrary tile range extent wrapping).
  • Loading branch information...
commit 033daa425b85c6ce94ddb1fbe2bdc23fb8b0aa63 1 parent 8d5a45d
@tschaub tschaub authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/ol/renderer/canvas/canvasvectorlayerrenderer.js
View
5 src/ol/renderer/canvas/canvasvectorlayerrenderer.js
@@ -222,9 +222,6 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
var sketchCanvasRenderer = new ol.renderer.canvas.Renderer(
sketchCanvas, sketchTransform);
var renderedFeatures = {};
- // TODO: wrap date line properly
- var numCols = Math.ceil((tileRangeExtent.maxX - tileRangeExtent.minX) /
- tileSize.width / tileResolution);
var tile, tileContext, tileCoord, key, tileExtent, tileState, x, y;
// render features by geometry type
var filters = this.geometryFilters_,
@@ -232,7 +229,7 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
i, filter, type, features, symbolizer;
for (x = tileRange.minX; x <= tileRange.maxX; ++x) {
for (y = tileRange.minY; y <= tileRange.maxY; ++y) {
- tileCoord = new ol.TileCoord(z, goog.math.modulo(x, numCols), y);
+ tileCoord = new ol.TileCoord(z, x, y);
key = tileCoord.toString();
tile = this.tileCache_[key];
tileExtent = tileGrid.getTileCoordExtent(tileCoord);
Please sign in to comment.
Something went wrong with that request. Please try again.