WebTile

约 71 字小于 1 分钟

简单示例

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

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

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

const webTileLayer = new WebTileLayer({
  urlTemplate: "https://stamen-tiles-{subDomain}.a.ssl.fastly.net/terrain/{level}/{col}/{row}.png",
  subDomains: ["a", "b", "c", "d"]
})

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