贴个群号
WebGIS学习交流群461555818,欢迎大家。
mapbox
map.addSource('raster-layer', {
type: 'raster',
tiles: ['你的地址']
})
map.addLayer({
type: 'raster',
source: 'raster-layer',
id: 'layer',
paint: { 'raster-opacity': 0.7 },
layout: { visibility: 'visible' }
})
leaflet
L.tileLayer("你的地址", {
maxZoom: 18,
id: 'raster',
tileSize: 512,
zoomOffset: -1
}).addTo(mymap);