')
+ .attr('class', 'section overlay-layers')
+ .appendTo($ui);
+
+ $('
')
+ .text(I18n.t('javascripts.map.layers.overlays'))
+ .attr("class", "deemphasize")
+ .appendTo(overlaySection);
- toggleLayers: function (e) {
- e.stopPropagation();
- e.preventDefault();
+ var list = $('
')
+ .appendTo(overlaySection);
- var controlContainer = $('.leaflet-control-container .leaflet-top.leaflet-right');
+ function addOverlay(layer, name, maxArea) {
+ var refName = name.split(' ').join('_').toLowerCase();
+ var item = $('- ')
+ .attr('class', refName)
+ .tooltip({
+ placement: 'top'
+ })
+ .appendTo(list);
+
+ var label = $('