Select to view content in your preferred language

Display multiple simultaneous popups

6420
10
09-19-2012 09:46 AM
nathanmanning
Emerging Contributor
Is there any way to display multiple simultaneous popups?

Thanks,
N
10 Replies
nathanmanning
Emerging Contributor
All,

Thank you for your help/suggestions, and I apologize for the delay. For some reason I was never alerted of your posts.

In answer to your question I don't entirely remember. I was likely trying to accomplish something similar to the multiple selection click through that Popup provides and just wasn't aware of it yet. Essentially what I have is a single starting location and multiple feature layers with resource locations. The visibility of these layers are toggled and when the user clicks the map I query the list of visible layers to see if any feature reside under the click. If they do I create a popup that is able to click between them. All this is working just fine and I'm left with only 2 problems.

1) I am unable to control the anchor of the popup. This is a problem because after choosing a resource I get directions from the starting point to that resource and repopulate the popup with the driving directions. Without explicit control over the anchor this new popup sometimes covers the path that is drawn.

2) I can't figure out what controls the little blue highlight box that displays when graphics are clicked. For example, unlike my resources, the starting point is displayed as a graphic not a featureLayer. When this is clicked I'd like to simply display information about the starting location. This is handled just fine in my existing popup, but if I click a resource after the starting location that little blue box keeps highlighting the starting point rather than the resource.

Regards,
NM

You are right Steve this info should be in the documentation. I'll work on adding a sentence or two to the doc to make this clearer.

Nathan - can you tell me a bit more about your use case? Why do you want to display multiple popups? How will users interact with the map to display the popups (clicking a feature, drawing a rectangle)? More details may help us come up with a way for you to display this info.

Kelly
0 Kudos