MediaTileLayer
客户端根据 extent 获取当前可视化区域内贴图列表
分别将列表内要素叠加到地图上
基础用法
MediaTileLayer Props
prop | type | default | descriptions |
---|---|---|---|
url* | String | - | 获取媒体资源的 URL 地址 |
layerName* | String | - | 图层名称 |
headers | NormalObject | ({}) | fetch 请求头 |
customParameters | NormalObject | ({}) | 自定义参数 |
MediaTileLayer Other
parameters
yaml
SERVICE: ZZTS
LAYER: rs1
SCALE: 11160.911554355149
SRS: EPSG:4326
BBOX: 120.91820094618856,30.845048464808947,120.95281897380741,30.860420449289336
HEIGHT: 450
WIDTH: 870
接口返回示例
json
{
"elements": [
{
"type": "image",
"id": "string",
"url": "string",
"extent": {
"xmin": 0,
"ymin": 0,
"xmax": 0,
"ymax": 0,
"spatialReference": {
"wkid": 0,
"wkt": "string"
}
}
}
],
"zoom": 0
}