control.onAddPane = function (map, button, $ui) {
var $section = $("<div>")
- .attr("class", "section")
+ .attr("class", "p-3")
.appendTo($ui);
$ui
}
function update() {
- var layer = map.getMapBaseLayerId(),
+ var layerId = map.getMapBaseLayerId(),
zoom = map.getZoom();
$(".mapkey-table-entry").each(function () {
var data = $(this).data();
$(this).toggle(
- layer === data.layer &&
+ layerId === data.layer &&
(!data.zoomMin || zoom >= data.zoomMin) &&
(!data.zoomMax || zoom <= data.zoomMax)
);