【问题标题】:vector tiles, mapbox style.json矢量瓷砖,mapbox style.json
【发布时间】:2019-12-12 23:35:07
【问题描述】:

我想在mapbox gl 应用程序中使用here maps vector tiles。但是,为了做到这一点,我需要定义一个style.json,请参阅here 了解规范,以及here 了解示例。

这里有我可以使用的基础style.json 吗?

在讨论使用 Mapbox 的 examples page 上,文档简单地说:style: "map_style.json", // you should use your own style。不过,从头开始构建有点 PITA(痛苦的**)。

感谢您的帮助。

【问题讨论】:

  • 我不知道他们为什么不写mapboxgl.accessToken这需要使用mapbox的样式和地图,看来你应该创建自己的地图和样式然后插入composite源样式的来源。
  • @ChaseChoi 只有在使用 Mapbox 地图瓦片或 Mapbox 样式中的一些其他资源时,才需要 Mapbox 访问令牌。此案例适用于第 3 方磁贴服务器。

标签: mapbox here-api mapbox-gl


【解决方案1】:

map_style.json -

this could be different for different use case and plain "JSON" file. This needs to be according to the map properties that needs to be displayed to use the other container style.

【讨论】:

  • 但是你能发布一个完整的示例样式json吗?对于我所说的大多数情况,使图层看起来像本机 HERE 中的默认样式的一种方式就足够了。
猜你喜欢
  • 2020-04-29
  • 1970-01-01
  • 2018-05-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-08-23
  • 2021-04-29
相关资源
最近更新 更多