WMTS

约 60 字小于 1 分钟

简单示例

import Map from "@arcgis/core/Map"
import MapView from "@arcgis/core/views/MapView"
import WMTSLayer from "@arcgis/core/layers/WMTSLayer"

const map = new Map({
  basemap: 'dark-gray',
})

const mapView = new MapView({
  map,
  container: 'js_map',
  center: [102.92934063304513, 25.102234987110343],
  zoom: 3,
})

const wmtsLayer = new WMTSLayer({
  url: "https://gibs.earthdata.nasa.gov/wmts/epsg4326/best",
  activeLayer: {
    id: "SRTM_Color_Index",
  }
})

map.layers.add(wmtsLayer)
上次编辑于: