How to check if popupTemplate is open on GraphicsLayer

325
2
Jump to solution
06-28-2021 03:19 PM
LoriEmerson_McCormack
Occasional Contributor

I am using the identifyTask to find information on the features in my map services, and I am using the popupTemplate to view information on my GraphicsLayer.

To create the GraphicsLayer, I read a table with x,y coordinates and plot the points.  I want the popupTemplate to display without the identifyTask results overwriting it.  How do I check whether the popupTemplate is open for a feature of the GraphicsLayer so that I can disable the identifyTask?

Note:  I have an action I want the user to be able to execute in the popupTemplate for my GraphicsLayer feature.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

@LoriEmerson_McCormack , We talking 4.x or 3.x? in 3.x

map.infoWindow.isShowing

In 4.x

view.popup.visible

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

@LoriEmerson_McCormack , We talking 4.x or 3.x? in 3.x

map.infoWindow.isShowing

In 4.x

view.popup.visible

0 Kudos
LoriEmerson_McCormack
Occasional Contributor

Worked perfectly in 4.x.  Thanks, Robert.

0 Kudos