let layer = new GeoJSONLayer({
url:"/public/city/json/industrialPark.geojson",
spatialReference:_this.spatialReference,
id:"industrialPark_url",
renderer: {
type: "simple",
symbol: {
type: "simple-fill",
color: [ 255, 128, 0, 0 ],
outline: { width: 2,color: "red"}
}
},
outFields: ["*"],
labelsVisible:true,
});
view.map.add(layer);
首先你要确认你的地图用的什么坐标系,是wgs84吗?然后再去看图层的坐标系,这样比较明确。