Mapbox.js以错误的顺序返回图块 [英] Mapbox.js returns tiles in wrong order

查看:76
本文介绍了Mapbox.js以错误的顺序返回图块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最新的chrome浏览器中使用Mapbox-gl.js时,一切正常. 当我想使用默认的mapbox.js实现时,地图图块变得混乱不堪,并且显示完全错误.请参见截屏

When using Mapbox-gl.js in the latest chrome browser, everything works fine. When I want to use the default mapbox.js implementation, the map tiles are getting al mixed up and shown totally wrong. See screenshot

我完全不知道为什么它不适用于mapbox.js,而我却没有遇到mapbox-gl.js的任何问题

I have totally no idea why this does not work with mapbox.js, while I did not experience any problem with mapbox-gl.js

推荐答案

请确保您正在加载mapbox.js库的CSS文件.以这种方式排列的图块通常是缺少CSS规则的征兆.

Make sure you're loading the CSS files for the mapbox.js library. Tiles being arranged that way are usually a symptom of missing CSS rules.

这篇关于Mapbox.js以错误的顺序返回图块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆