FeatureLayer - 不会渲染

问题描述

我有一个相当简单的代码来创建一个 FeatureLayer,我尝试在其中添加一些客户端图形。

facilitiesLayer = new FeatureLayer({
        title: 'Facilities layers',objectIdField: 'id',source: [
          new Graphic({
            geometry: new Point({ longitude: -96.1034353,latitude: 41.5333259 }),attributes: {
              id: 1,},}),],renderer: new SimpleRenderer({
          symbol: new SimpleMarkerSymbol({
            size: 32,color: '#4652C2',outline: {
              color: 'rgba(137,144,215,0.7)',width: 2,});
      mapView.current!.map.add(facilitiesLayer);

将图层添加到地图后,我立即在控制台中看到了这一点。如果我注释掉添加图层,则地图会正确显示,这意味着所有 ESRI 内容都已正确创建。 我如何找到此转换失败的地方?

使用@arcgis/core 4.18.0

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)