qt - 在 mapbox 样式上添加 openweathermap png 平铺层
问题描述
我正在尝试在 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"}
解决方案
尚未实现对源“tiles”属性的支持。我将在https://bugreports.qt.io中针对此功能请求开一张票 - 谢谢!
推荐阅读
- sonata-admin - Sonata Admin - 在表头中过滤
- c++ - C++ 中的 Visual Studio 解决方案配置值
- python - 按年和月对 Pandas 数据框进行分组
- sql - Teradata SQL - 如何在连字符之前获取所有内容?
- c# - 如何在 MSBuild 参数命令行上添加任务
- mysql - MySQL 在不同的计算机上使用不同的内存
- python - 删除了 Python 2.7.15 并安装了 3.7.1,但 Spyder 仍然是 python 2.7.15
- javascript - JavaScript 图像打印显示空白
- javascript - Dialogflow 使用 express 检测音频不起作用
- typescript - 打字稿数组与编号索引和自定义属性通过字符串键访问