Leaflet drawing tiles disjointly(传单不连贯地绘制瓷砖)
问题描述
我正在实例化一张传单地图,但图块基本上散布在整个页面上 - 虽然地图位于 div 内,但大多数图块不遵守该边界:
I am instantiating a leaflet map, but the tiles are basically being scattered all over the page - while the map is within a div, most of the tiles are not respecting that boundary:
javascript 归结为:
The javascript comes down to:
什么会导致瓷砖在整个地方绘制?几个瓷砖在 div 的范围内,但不是其余的.您可以在此处看到发生的情况的屏幕截图:
What would cause the tiles to plot all over the place?a couple of tiles are within the bounds of the div, but not the rest of them. You can see a screenshot of what happens here:
推荐答案
这听起来像是缺少 Leaflet CSS 文件的症状,或者该文件的版本不正确.
This sounds like a symptom of missing Leaflet CSS file, or incorrect version of that file.
这篇关于传单不连贯地绘制瓷砖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!