【问题标题】:add openweathermap png tile layers on mapbox style在 mapbox 样式上添加 openweathermap png 平铺层
【发布时间】: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


【解决方案1】:

尚未实现对源“tiles”属性的支持。我将在https://bugreports.qt.io 开一张关于此功能请求的票 - 谢谢!

【讨论】:

    猜你喜欢
    • 2016-06-18
    • 1970-01-01
    • 2016-01-27
    • 2020-09-01
    • 2017-01-21
    • 1970-01-01
    • 1970-01-01
    • 2015-10-06
    • 1970-01-01
    相关资源
    最近更新 更多