From 96e4c80c75123652bd7d874168e91d777f183fca Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Mon, 10 Dec 2012 17:57:04 +0200 Subject: [PATCH] revert clearing map div contents, fix positioning, close #278 again --- dist/leaflet.css | 1 + src/map/Map.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/leaflet.css b/dist/leaflet.css index 56308e83..21bf8aaa 100644 --- a/dist/leaflet.css +++ b/dist/leaflet.css @@ -15,6 +15,7 @@ .leaflet-layer { position: absolute; left: 0; + top: 0; } .leaflet-container { overflow: hidden; diff --git a/src/map/Map.js b/src/map/Map.js index 640a7a01..6c7e14da 100644 --- a/src/map/Map.js +++ b/src/map/Map.js @@ -417,7 +417,6 @@ L.Map = L.Class.extend({ _initLayout: function () { var container = this._container; - container.innerHTML = ''; L.DomUtil.addClass(container, 'leaflet-container'); if (L.Browser.touch) {