MediaTileLayer

客户端根据 extent 获取当前可视化区域内贴图列表

分别将列表内要素叠加到地图上

基础用法

MediaTileLayer Props

proptypedefaultdescription
url*String获取媒体资源的 URL 地址
layerName*String图层名称
headersNormalObject{}fetch 请求头
customParametersNormalObject{}自定义参数
fullExtent__esri.Extentnew Extent({
  xmin: -180,
  ymin: -90,
  xmax: 180,
  ymax: 90,
  spatialReference: {
    wkid: 4326,
  },
})| fullextent|

|retryTimes|Number|5|| |retryInterval|Number|1000|| |showGeoSlot|Boolean|false|show geoslot|

MediaTileLayer Emits

nameargumentsdescriptions
loadview: __esri.View,
layer: __esri.MediaTileLayer
-
request__RequestTileResponse请求瓦片列表

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
}