var list_basemap=[
  'lyr9',
];

list_basemap.forEach(element => {
  const lyr = geovar.lyr[element];
  mymap.createPane(element);
  mymap.getPane(element).style.zIndex = lyr.zIndex;
  //_onsole.log(lyr.pointerEvents)
  //_onsole.log(lyr.indexOf("pointerEvents"))

  if(lyr.pointerEvents!=undefined 
    && lyr.pointerEvents===false){
    // Layers in this pane are non-interactive and 
    //do not obscure mouse/touch events
    mymap.getPane(element).style.pointerEvents = 'none';
  }

  geo_lyr[element] = L.tileLayer(
    lyr.tile_url,
    {
      attribution: lyr.attribution,
      maxZoom: lyr.maxZoom
    }
  ).addTo(mymap);

});

$(document).ready(function() {

  list_basemap.forEach(element => {

    const lyr = geovar.lyr[element];
    if(lyr.inToc!=undefined 
      && lyr.inToc===true){

      $('.box-sidebar-footer-bottom').append(''
        + create_toc_box_style1(element)
      +'');

      $('.box-'+element+'-text').html(lyr.title);
      $('.box-'+element+'-icon').html('<img src="'+source_icon+'px20_'+lyr.icon+'" '
        +'style="width:20px;">');

    }

  });

}); //$(document).ready

//mymap.createPane('carto_labels');
// This pane is above markers but below popups
//mymap.getPane('carto_labels').style.zIndex = 800;




/*var positronLabels = L.tileLayer(
  geovar.language_webapp.en_GB.tile_map01_url_label,
  {
    attribution: geovar.language_webapp.en_GB.tile_map01_attr,
    pane: 'carto_labels',
    maxZoom: 22
  }
).addTo(mymap);*/
