Absolute position for tiles.

This commit is contained in:
Tim Schaub
2012-06-22 20:06:53 +02:00
parent af73489bd5
commit f86e6f17a9

View File

@@ -170,6 +170,7 @@ ol.Tile.createConstructor = function(width, height) {
Tile.prototype.createImage = (function() { Tile.prototype.createImage = (function() {
var img = document.createElement("img"); var img = document.createElement("img");
img.className = "olTile"; img.className = "olTile";
img.style.position = "absolute";
img.style.width = width + "px"; img.style.width = width + "px";
img.style.height = height + "px"; img.style.height = height + "px";
return function() { return function() {