Trying to customize the CSS for the zoom buttons in Leaflet, but unable to assign a class or id. How can I access them?
Any suggestions?
Thanks!
Map declaration:
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {
attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,
id: 'mapbox.streets',
accessToken: 'pk.eyJ1IjoicHcxN2wwMDgiLCJhIjoiY2pua2c2OWxuMGVkOTNxbWh5MWNqajEwdyJ9.X_SuGwNGs12TwCsrsUvBxw'
}).addTo(map);
Adding the zoom feature:
L.control.zoom({
position: 'topright',
}).addTo(map);
Upon page load, zoom button appears with Leaflet classes. How can I make custom changes to them?