Skip to content

Commit

Permalink
Merge pull request #651 from brianbancroft/master
Browse files Browse the repository at this point in the history
A solution to issue #647
  • Loading branch information
jgravois committed Oct 14, 2015
2 parents eea863f + 7ab39f9 commit 780c960
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Layers/BasemapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export var BasemapLayer = L.TileLayer.extend({
maxZoom: 16,
subdomains: ['server', 'services'],
pane: (pointerEvents) ? 'esri-labels' : 'tilePane'
}
}
},
NationalGeographic: {
urlTemplate: tileProtocol + '//{s}.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}',
Expand Down Expand Up @@ -86,6 +86,7 @@ export var BasemapLayer = L.TileLayer.extend({
maxZoom: 16,
subdomains: ['server', 'services'],
pane: (pointerEvents) ? 'esri-labels' : 'tilePane'

}
},
Gray: {
Expand Down Expand Up @@ -247,7 +248,9 @@ export var BasemapLayer = L.TileLayer.extend({
},

getAttribution: function () {
var attribution = '<span class="esri-attributions" style="line-height:14px; vertical-align: -3px; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; display:inline-block;">' + this.options.attribution + '</span>';
if (this.options.attribution) {
var attribution = '<span class="esri-attributions" style="line-height:14px; vertical-align: -3px; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; display:inline-block;">' + this.options.attribution + '</span>';
}
return attribution;
},

Expand Down

0 comments on commit 780c960

Please sign in to comment.