For now, we require a projection on loc internally.

This commit is contained in:
Tim Schaub
2012-06-23 19:59:49 +02:00
parent 12fb6c5af4
commit 2fcbce30bc
2 changed files with 4 additions and 2 deletions

View File

@@ -91,7 +91,8 @@ ol.renderer.MapRenderer.prototype.getLocForPixel = function(pixel) {
size = goog.style.getSize(this.container_);
return new ol.Loc(
center.getX() - (size.width/2 - pixel.x)*resolution,
center.getY() + (size.height/2 - pixel.y)*resolution
center.getY() + (size.height/2 - pixel.y)*resolution,
undefined, this.renderedCenter_.getProjection()
);
};