From c40d05d2c202e097533ba864e79bcd45b6e6c00b Mon Sep 17 00:00:00 2001 From: john gravois Date: Fri, 9 Sep 2016 12:00:07 -0700 Subject: [PATCH] cleanup --- debug/sample.html | 3 +++ src/Util.js | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/debug/sample.html b/debug/sample.html index bb15c983b..02740d687 100644 --- a/debug/sample.html +++ b/debug/sample.html @@ -18,12 +18,14 @@ margin:0; padding:0; } + #map { position: absolute; top:0; bottom:0; right:0;left:0; } + #info-pane { position: absolute; top: 10px; @@ -49,6 +51,7 @@ */ var map = L.map('map').setView([40, -100], 4); L.esri.basemapLayer('Topographic').addTo(map); + var fl = L.esri.featureLayer({ url:'http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3' }).addTo(map); diff --git a/src/Util.js b/src/Util.js index f46410878..5527a7263 100644 --- a/src/Util.js +++ b/src/Util.js @@ -153,8 +153,6 @@ export function setEsriAttribution (map) { document.getElementsByTagName('head')[0].appendChild(style); L.DomUtil.addClass(map.attributionControl._container, 'truncated-attribution'); - var toggle = true; - // show all attribution when the mouse is hovered over the control for a little while map.attributionControl._container.addEventListener("mouseenter", function (e) { var attributionExpandTimeout = setTimeout(function () { @@ -167,8 +165,6 @@ export function setEsriAttribution (map) { }); }); - - // update the width used to truncate when the map itself is resized map.on('resize', function (e) { map.attributionControl._container.style.maxWidth = L.esri.Util.calcAttributionWidth(e.target);