如何使用 angular-leaflet-directive 显示 leaflet-control-layers-toggle 图标

How to get the leaflet-control-layers-toggle icon to show with angular-leaflet-directive

按照图层简单示例的说明进行操作:http://tombatossals.github.io/angular-leaflet-directive/#!/examples/layers-simple

包含以下内容已成功加载到页面上,但未生成右上角用于切换不同图层的图标。回购协议上没有提供任何指示来确保它被生产出来。

$scope.layers = {
    baselayers: {
        osm: {
            name: 'OpenStreetMap',
            url: 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
            type: 'xyz'
        },
        mapbox_light: {
            name: 'Foo',
            url: 'http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png',
            type: 'xyz'
        }
    }
},

这似乎是 angular-leaflet-directive 当前 0.8.1 版本中的错误。今天我遇到了同样的问题。回到 0.7.15,图层控制再次可见。