Select to view content in your preferred language

Identify Task using right-click

3299
2
Jump to solution
12-31-2015 12:52 PM
JohnPreston
Deactivated User

is it possible to execute an Identify Task when right mouse button is clicked instead of left mouse button (map onclick event)? 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RickeyFight
MVP Regular Contributor

John,

Yes it should be possible.

This is not an exact example how but shows that it is possible.

Display context menu | ArcGIS API for JavaScript

One thing to think about though, if the user is using a mobile device they would have to use a two finger click?

View solution in original post

2 Replies
RickeyFight
MVP Regular Contributor

John,

Yes it should be possible.

This is not an exact example how but shows that it is possible.

Display context menu | ArcGIS API for JavaScript

One thing to think about though, if the user is using a mobile device they would have to use a two finger click?

JohnPreston
Deactivated User

Thank you Rickey,

I figured out that I could use mouse-up event and test which button was pressed, then I execute Identify Task (after I disabled right-click context menu).

0 Kudos