传单地图显示为灰色
本文介绍了传单地图显示为灰色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 quickstart 启动leaflet.js,但我的地图显示为灰色...有什么我遗漏的吗?
I'm starting leaflet.js with the quickstart but my map shows as grey... is there something I'm missing?
script.js:
style.css:
index.html:
index.html:
给我:
推荐答案
你需要实现快速入门指南的下一部分:你已经初始化了地图,但没有添加任何瓦片层,因此灰色.所以请继续阅读以开始的部分,然后我们将添加一个切片图层以添加到我们的地图中.
You need to implement the next section of the Quick Start Guide: you've initialized the map, but haven't added any tile layers to it, hence gray. So read on to the section beginning with Next we’ll add a tile layer to add to our map.
这篇关于传单地图显示为灰色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!