Commit 3449aa7c authored by David Rheinheimer's avatar David Rheinheimer

fix map

parent 7b0a1357
......@@ -71,8 +71,8 @@ L.GridLayer.GoogleMutant = L.GridLayer.extend({
}.bind(this));
//20px instead of 1em to avoid a slight overlap with google's attribution
map._controlCorners.bottomright = '20px';
map._controlCorners.bottomleft = '20px';
map._controlCorners.bottomright.style.marginBottom = '20px';
map._controlCorners.bottomleft.style.marginBottom = '20px';
this._reset();
this._update();
......@@ -99,8 +99,8 @@ L.GridLayer.GoogleMutant = L.GridLayer.extend({
map.off('resize', this._resize, this);
if (map._controlCorners) {
map._controlCorners.bottomright = '0em';
map._controlCorners.bottomleft = '0em';
map._controlCorners.bottomright.style.marginBottom = '0em';
map._controlCorners.bottomleft.style.marginBottom = '0em';
}
},
......
......@@ -88,7 +88,7 @@ L.GridLayer.GoogleMutant = L.GridLayer.extend({
map.on("resize", this._resize, this);
// 20px instead of 1em to avoid a slight overlap with google's attribution
map._controlCorners.bottomright = "20px";
map._controlCorners.bottomright.style.marginBottom = "20px";
this._reset();
this._update();
......@@ -107,7 +107,7 @@ L.GridLayer.GoogleMutant = L.GridLayer.extend({
map.off("resize", this._resize, this);
if (map._controlCorners)
map._controlCorners.bottomright = "0em";
map._controlCorners.bottomright.style.marginBottom = "0em";
},
getAttribution() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment