Mapbox为什么会给出错误“南界值必须在-95到95之间”

问题描述 投票:0回答:1

我收到此错误是因为我在数据源中切换了我的经度和纬度值。

但是,我认为有效范围对于纬度应该在-90至+90之间,对于经度应该在-180至+180之间。

为什么对错误消息使用-95/95值?

upload mapbox mapbox-marker
1个回答
0
投票

原始报告在这里:https://github.com/mapbox/tilelive/issues/113

如何解决这类问题(假设我是从头开始发现的,并且不熟悉mapbox源代码):

  1. 针对Google的确切错误消息:"bounds south value must be between -95 and 95"(仅对完全匹配使用双引号)
  2. 底部结果指的是https://coveralls.io/files/925478894
  3. 它给出名字,用谷歌搜索:mapbox tilelive
  4. 发现有https://github.com/mapbox/tilelive
  5. 打开项目#2 https://github.com/mapbox/tilelive/blob/master/lib/tilelive.js中已知的文件
  6. 按下blame按钮:https://github.com/mapbox/tilelive/blame/master/lib/tilelive.js
  7. ctrl + f -95,并查看其在以下位置所做的提交:https://github.com/mapbox/tilelive/commit/ac1298694a5e76f40cb8effdb229b160ec4ef4e5
  8. 该提交指的是原始问题https://github.com/mapbox/tilelive/issues/113
© www.soinside.com 2019 - 2024. All rights reserved.