How do I add multiple layers to the leaflet map.
I have added the overlay_tile to the tilelayer but nothing happens.
tilelayer = L.tileLayer(url_tile,overlay_tile, {noWrap....
My example can only have one tile at a time. When I add multiple tiles to the tileLayer nothing happens.
What I have Leaflet Example What I am trying to achieve. NASA Example
code
var url_tile='https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png';
url_tile='//gibs-{s}.earthdata.nasa.gov/wmts/epsg4326/best/MODIS_Terra_CorrectedReflectance_TrueColor/default/2020-05-05/EPSG4326_250m/{z}/{y}/{x}.jpg'
var overlay_tile='//gibs.earthdata.nasa.gov/wmts/epsg3857/best/MODIS_Terra_Aerosol/default/2021-06-05/GoogleMapsCompatible_Level6/{z}/{y}/{x}.png';
var map = L.map('map', {editable: true}).setView(startPoint, 2),
tilelayer = L.tileLayer(url_tile,
{ noWrap: true,
maxZoom: 20, attribution: 'Data \u00a9 <a href="https://www.openstreetmap.org/copyright"> OpenStreetMap Contributors </a> Tiles \u00a9 HOT'
}).addTo(map);