Graphics Disappear

244
0
08-17-2022 06:09 AM
EliyahoLevi
New Contributor III

Hi,

 

i have seen this question already but there was no answer

I am developing an application in ArcGIS JS 4.21 API. I am facing very strange issue. I have added a graphics layer to the map, when I zoom in/out , then graphics disappear/appear, sometimes just one graphic sometimes all.

const  graphicsLayer = new GraphicsLayer({
            id: "los3d",
            visible: true
        });

view.map.add(graphicsLayer);

const p = new Point(lat, long, z);

const g  = new Graphic({
  geometry: p,
  symbol: {
            type: 'point-3d',
            style: '',
            size: 10,
            color: [255, 241, 58, 1],
            outline: {
                color: [255, 241, 58, 1],
                size: 10,
                width: 2,
            }
})
graphicsLayer.graphics.add(g)

 

 

Any suggestion?

 

Regards,
Eliyahu

0 Kudos
0 Replies