Skip to content

Commit

Permalink
lint for the lint gods
Browse files Browse the repository at this point in the history
  • Loading branch information
jgravois committed Mar 30, 2018
1 parent fe35bbd commit 02ff2aa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Basemap.js
Expand Up @@ -8,7 +8,6 @@ export var Basemap = L.Layer.extend({
URLSUFFIX: '/resources/styles/root.json',
STYLES: {
'DarkGray': '5e9b3685f4c24d8781073dd928ebda50',
'DarkGrayLabels' : '747cb7a5329c478cbe6981076cc879c5',
'Gray': '291da5eab3a0412593b66d384379f89f',
// 'Hybrid': '30d6b8271e1849cd9c3042060001f425', only loads labels
'Navigation': '63c47b7177f946b49902c24129b87252',
Expand Down Expand Up @@ -74,17 +73,15 @@ export var Basemap = L.Layer.extend({

_asyncAdd: function () {
var map = this._map;

// thought it was just me, but apparently its not easy to mixin two different styles
// https://github.com/mapbox/mapbox-gl-js/issues/4000

// set the background color of the map to the background color of the tiles
map.getContainer().style.background = this._mapboxGL.options.style.layers[0].paint['background-color'];

map.on('moveend', Util._updateMapAttribution);
this._mapboxGL.addTo(map, this);
// map._gl = this._mapboxGL;

}
});

Expand Down

0 comments on commit 02ff2aa

Please sign in to comment.