')
+ .attr('class', 'section overlay-layers')
+ .appendTo($ui);
- $ui
- .on('show', shown);
+ $('
')
+ .text(I18n.t('javascripts.map.layers.overlays'))
+ .attr("class", "deemphasize")
+ .appendTo(overlaySection);
- function shown() {
- $ui.find('.base-layers .leaflet-container').each(function() {
- $(this).data('map').invalidateSize();
- });
+ 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 = $('