Select to view content in your preferred language

Can't draw a graphic in esri experience Builder SDKs

343
0
10-26-2023 04:05 AM
Labels (2)
warddourji
Emerging Contributor

I need Help with esri experience builder SDK. I'm Creating a new draw function from scratch. and i want to load some graphics and render the graphic on the map but i dont receive any errors yet the  marker doesn't show on the map. please advise.

 

geometries.forEach((geometry) => {
      let newGeom = Geometry.fromJSON(geometry.geometry);

      const markerSymbol = {
        type: 'simple-marker',
        style: 'circle',
        size: 10,
        color: [255, 255, 255, 0.8],
        outline: {
          color: [211, 132, 80, 0.7],
          width: 10,
        },
      };

      const pointGraphic = new Graphic({
        geometry: newGeom,
        symbol: markerSymbol,
      });

      graphicsLayer.add(pointGraphic);
    });
 
  jmv.view.map.add(graphicsLayer);
0 Kudos
0 Replies