使用map.add添加图层出现问题
var map = new Map({
basemap: "gray",
// layers: [layer]
});
const layer = new TileLayer({
url: "http://localhost:6080/arcgis/r ... ot%3B
});
map.add(layer)
这是报错
[esri.support.LayersMixin]
#add() The item being added is not a Layer or a Promise that resolves to a Layer.
4 个回复
Castiel
赞同来自:
盛淮南
赞同来自:
许丹石
赞同来自:
小邪
赞同来自:
要回复问题请先登录或注册
发起人
相关问题
问题状态