【发布时间】:2018-05-02 06:58:14
【问题描述】:
我正在尝试在 mapbox 地图样式上实现来自 https://openweathermap.org/api/weathermaps 的 openweathermap 地图天气图层,但我不知道将图像平铺源放在 json 文件中的哪个位置。我可以帮忙吗? 谢谢你。我正在为 Qt 使用 Mapbox,这是我的代码,我正在为 Qt 使用 Mapbox 地图,这是我的 QML 代码
MapParameter {
id: source
type: "source"
property var name: "weatherSource"
property var sourceType: "raster"
property var url: "https://tile.openweathermap.org/"
property var tiles:
["https://tile.openweathermap.org/map/clouds_new/{z}/{x}/{y}.png?appid=API_ID"]
property var tileSize: 256
property var scheme: "xyz"
property var minzoom: 4.0
property var maxzoom: 20.0}
MapParameter {
type: "layer"
property var name: "wind_weather"
property var layerType: "raster"
property var source: "weatherSource"}
【问题讨论】:
-
您能分享一下您使用的是哪个版本的 Mapbox Maps SDK?
-
@jmkiley 这是代码
标签: qt styles mapbox openweathermap