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