button works well with .gpx

This commit is contained in:
vershwal
2018-05-23 13:39:47 +05:30
parent f247c313fa
commit 7eebd5a6da

View File

@@ -278,9 +278,9 @@ export function uiMapData(context) {
}
function drawMvtItem(selection) {
var mvt = layers.layer('gpx'),
var mvt = layers.layer('mvt'),
hasMvt = mvt && mvt.hasGpx(),
showsMvt = hasMvt && gpx.enabled();
showsMvt = hasMvt && mvt.enabled();
var ul = selection
.selectAll('.layer-list-mvt')