Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

组合源

组合源允许将多个源组合为一个。组合源由多个用逗号分隔的源组成:{source1},...,{sourceN}

组合源中的每个源都可以使用其 {source_name} 作为 source-layer 属性进行访问。

组合源 TileJSON 端点可在 /{source1},...,{sourceN} 获取,瓦片可在 /{source1},...,{sourceN}/{z}/{x}/{y} 获取。

例如,组合 points 和 lines 源的组合源将在 /points,lines/{z}/{x}/{y} 可用

# TileJSON
curl localhost:3000/points,lines

# 整个世界作为单个瓦片
curl localhost:3000/points,lines/0/0/0