The attached script was created for the geojson file I created that works properly.
<script>
$(document).ready(function() {
$(pz).click(function() {
L.mapbox.featureLayer('map.geojson').addTo(map)
})
});
</script>
My question is how can I hide the displayed layer with the click feature?
I would like to ask you some help to create the script.
(I use mapbox.js not mapbox-gl.js)