Switch the Map layer of Leaflet map

I have created Mapbox custom Styles over Mapbox. As we know that Leaflet API is using for the Map with Algolia Search. What I have to do to addLayer function to switch those Mapbox Custom styles with leaflet.
As you can see, In the given URL that I can’t switch the layers with Aloglia Search functionality.


Hi there! I believe most of us here are unfortunately fairly unfamiliar with Leaflet’s API.
We will need more details about what’s not working for you, what you’ve already tried, and what were the results of those attempts.