')
+ .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 overlays = $('
')
+ .appendTo(overlaySection);
+
+ var addOverlay = function (layer, name, maxArea) {
+ var item = $('- ')
+ .tooltip({
+ placement: 'top'
+ })
+ .appendTo(overlays);
+
+ var label = $('