mapbox - MapBox GL JS (WMS Tile) - 添加来自不同域的单个图层
问题描述
基本上我希望我的图层的一些图块使用域 A,一些图块将使用域 B,而一些图块将使用域 C。
解决方案
您可以在源中指定多个图块端点https://docs.mapbox.com/mapbox-gl-js/style-spec/sources/
"mapbox-streets": {
"type": "vector",
"tiles": [
"http://a.example.com/tiles/{z}/{x}/{y}.pbf",
"http://b.example.com/tiles/{z}/{x}/{y}.pbf"
],
"maxzoom": 14
}
推荐阅读
- angular6 - 如何根据我的 api 响应返回的布尔值显示和隐藏 div 部分
- php - Codeigniter中的分页(不能每页显示行)
- sql - sql查询精确搜索比别人
- c# - 在 XAML WPF C# 中使用常量发生 MarkupExtensions 错误
- mongodb - 任何人都可以识别这个 mongodb 查询中的错误吗?
- r - 过滤大于(或小于)作为函数参数
- python - 在图表 X 轴上显示月而不是天
- android - 如何从片段场景中获取片段实例
- highcharts - 连续放大图表后 JSFiddle 变得无响应
- django - 使用 django-redshift-backend 找不到 pg_config 可执行文件