小白首发撒花~
初转到arcgis js 4.4,码代码的过程中遇到如下问题:
设定好MapImageLayer及其sublayer之后运行程序,发现图层不能加载出来,报错及MapImageLayer设定代码如下:
MapImageLayer设定代码:
var layer1 = new MapImageLayer({
title: "标题_区域绿地1",
url: "http://192.168.1.128:6080/arcgis/rest/services/智慧园林示例数据/全示例数据源_比对测试/MapServer",
sublayers: [
{
id: 1,
visible:true
}, {
id: 4,
visible: true
}, {
id: 7,
visible: true
}
]
});
报错图:
图上图例不显示