Absolute position for tiles.
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user