click event to a point

3078
3
Jump to solution
01-31-2018 06:28 AM
JoséTorres
New Contributor II
Hello everyone, 
I need a little help, how to add the click event to a point? 
I am using version 4.6 of the ArcGis api.
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Jose,

   There is no event that you can use on a graphic/feature in 4.x for a click. You have to change your way of thinking and programming. Here is a sample that will help get you on the right path:

Access features with pointer events | ArcGIS API for JavaScript 4.6 

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Jose,

   There is no event that you can use on a graphic/feature in 4.x for a click. You have to change your way of thinking and programming. Here is a sample that will help get you on the right path:

Access features with pointer events | ArcGIS API for JavaScript 4.6 

JoséTorres
New Contributor II
Hi Robert, thanks again for your help, if I'm looking at that example to know how it works.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.

0 Kudos