Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Sep 9, 2016
1 parent bef1841 commit c40d05d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions debug/sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down
4 changes: 0 additions & 4 deletions src/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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);
Expand Down

0 comments on commit c40d05d

Please sign in to comment.