# 使用第三方底图

# 列出所有第三方底图

# 请求 URL:

  • http://host:port/heycloud/api/render/vendor/basemap/list

# 请求方式:

  • GET

# 请求示例:

GET http://host:port/heycloud/api/render/vendor/basemap/list

# 正确响应示例:

{
  "result": [{ "name": "sample", "type": "mbtiles" }]
}

# 错误响应示例:

{
  "error": "ERROR",
  "message": "错误信息"
}

# 按瓦片索引查询并返回第三方底图数据

# 请求 URL:

  • http://host:port/heycloud/api/render/vendor/basemap/:mapName/:mapType/:z/:x/:y/tile.:format

# 请求方式:

  • GET

# 请求参数:

字段 类型 说明
mapName String 第三方底图的名字
mapType String 第三方底图的类型,应为 mbtiles/arcgise/arcgisc/arcgisc2
z String 瓦片的层级
x String 瓦片 x 方向的索引
y String 瓦片 y 方向的索引
format String 第三方底图的图片存储格式,应为 png/jpeg/webp

其中,支持的第三方底图类型说明如下:

  • mbtiles:MBTiles
  • arcgise:ArcGIS Exploded
  • arcgisc:ArcGIS Compact
  • arcgisc2:ArcGIS Compact V2

# 请求示例:

GET http://host:port/heycloud/api/render/vendor/basemap/sample/mbtiles/0/0/0/tile.png

# 错误响应示例:

{
  "error": "ERROR",
  "message": "错误信息"
}