How can I change the default loading tile color in LeafletJS?

后端 未结 1 1873
天命终不由人
天命终不由人 2021-01-07 18:50

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

相关标签:
1条回答
  • 2021-01-07 19:01

    It's controlled by the below css rule in the file 'leaflet.css':

    .leaflet-container {
        background: #ffffd;
    }
    

    so you just need to change this rule.

    0 讨论(0)
提交回复
热议问题