AnsweredAssumed Answered

Can I search for Graphics added to map?

Question asked by _lars_ on Jan 4, 2019
Latest reply on Jan 4, 2019 by rscheitlin

I've added some map locations by creating a Graphic and added it to the map. They all have attributes like Title and Description.

 

var pointGraphic = new Graphic({
geometry: point,
symbol: markerSymbol,
attributes: {
Title: currentObj.title,
Description: currentObj.description
},
popupTemplate: graphicPopUpTemplate
});

 

view.graphics.add(pointGraphic);

 

Is it possible to add it as a search source?

Outcomes