Select to view content in your preferred language

Arcgis API for JavaScript

347
1
04-17-2022 02:45 AM
HaniaNoor
New Contributor

I have a feature layer in which there are thousands of point. I want to show popup on specific point? When I apply popup Template on feature layer then the popup will appear on all the points. My question is how to enable popup only on Single point where I have more than thousand points?

0 Kudos
1 Reply
YObaidat
Occasional Contributor

I think in your case you should not apply popup template on the feature layer, instead create a new graphic and assign attributes and geometry of the point and apply popup template on that graphic(check this link https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#popupTemplate)  then add it to a graphics layer. By doing this the popup will only appear when you click on a single point.

0 Kudos