Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认情况下,当 LeafletJS 加载地图时,背景图块都是灰色的。我想将该颜色更改为黑色(或任何其他任意颜色)。我该怎么做呢?
它由文件'leaflet.css'中的以下css规则控制:
.leaflet-container { background: #ddd; }
所以你只需要改变这个规则。