+ .html(JST["templates/map/layers"]());
+
+ var list = $(this._uiPane).find('.base-layers ul');
+
+ var layers = this.options.layers;
+ for (var i = 0; i < layers.length; i++) {
+ var item = $('<li></li>')
+ .appendTo(list);
+
+ var div = $('<div></div>')
+ .appendTo(item);
+
+ var map = L.map(div[0], {attributionControl: false, zoomControl: false})
+ .setView(this._map.getCenter(), Math.max(this._map.getZoom() - 2, 0))
+ .addLayer(new layers[i].layer.constructor);
+
+ map.dragging.disable();
+ map.touchZoom.disable();
+ map.doubleClickZoom.disable();
+ map.scrollWheelZoom.disable();
+
+ var label = $('<label></label>')
+ .text(layers[i].name)
+ .appendTo(item);
+ }
+