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