By default, when leafletJS is loading a map, the background tiles are all grey. I'd like to change that color to be black (or any other arbitrary color). How can I go about doing this?
It's controlled by the below css rule in the file 'leaflet.css':
.leaflet-container { background: #ddd; }
so you just need to change this rule.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With