I am trying to change the CSS on the zoom buttons in leaflet, but I am not able to add a class or id or anything to those buttons. How do I even get access to them?
Any idea?
thanks!
here I declare the map:
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);
and here I include the zoom:
L.control.zoom({
position: 'topright',
}).addTo(map);
when the page loads I see that it becomes a button with a number of leaflet classes but how can I make my out changes to them?