Popup in sidepanel / outside of mapview

1443
5
Jump to solution
04-26-2021 05:53 AM
LéoPio
New Contributor II

Hi,
Im currently working with Experience Builder - Dev Edition
I'm trying to have the mapview Popup outside of the map (in a side panel for example). As of now everything I tried didnt work. 
I tried to have a Popup widget outside of the mapview and change the popup
Tried to make the popup not displayed and get its content in another div when changes happen
Tried a few other things that I don't remember

If anyone tried with success or has a brillant idea ...

Any help would be appreciated

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
LéoPio
New Contributor II

Thank you Dave for your ideas.
It turns out that the Feature widget from the JS API does the trick by itself.
https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature/

Updating its graphic updates the Feature Widget content.
The widget containing the Feature Widget has to do all the work with the map and the data.

View solution in original post

5 Replies
DaveFullerton
Occasional Contributor III

Have you tried using the Feature Info Widget?

LéoPio
New Contributor II

Yes, I have. Feature Info Widget isn't  what I'm after.
The feature info widget uses a Feature Layer data as param and I dont see how that could work out with a map containing multiple layers.

Maybe multiple Feature Info widgets (1 for each layer) and displaying only the one corresponding to the Feature Layer of the selected feature.

DaveFullerton
Occasional Contributor III

I suppose you could stack them on top of each other and figure out how to hide and show them through code.  It might be just as easy to write a custom widget from scratch to display the info exactly the way you want.  I don't know of a sample widget that helps with getting to the data for the selected features.  However, JimuMapView is very much a Javascript API component, so it should be very doable.  You might look at the js-api-widget sample.

A more wild idea would be to put the feature info widgets in a widget controller and open them through code.  Perhaps this is related:  https://community.esri.com/t5/arcgis-experience-builder/widget-close-event/m-p/1040177#M1658 

0 Kudos
LéoPio
New Contributor II

Thank you Dave for your ideas.
It turns out that the Feature widget from the JS API does the trick by itself.
https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature/

Updating its graphic updates the Feature Widget content.
The widget containing the Feature Widget has to do all the work with the map and the data.

DaveFullerton
Occasional Contributor III

Glad to see you have found a solution.  Would be glad to see what your app looks like when you are done.

0 Kudos