Don't list non-global imagery sources at low zooms (close #7062)

Always show the currently selected background in the list (close #7061)
This commit is contained in:
Quincy Morgan
2019-11-22 12:14:20 -05:00
parent 0ce99bc8fd
commit b5a5dfc34a
2 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ export function uiBackground(context) {
function drawListItems(layerList, type, change, filter) {
var sources = context.background()
.sources(context.map().extent())
.sources(context.map().extent(), context.map().zoom(), true)
.filter(filter);
var layerLinks = layerList.selectAll('li')