使用arcgis api中的GeoJSONLayer创建图层创建成功后并不显示,怀疑坐标系问题?
有博主说,GeoJSONLayer只支持wgs84坐标系
但看api中没有说有坐标系的限制,只是有默认坐标系
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);