Select to view content in your preferred language

Popup with attachements outside map view

567
11
Jump to solution
06-03-2024 11:57 AM
kapalczynski
Occasional Contributor III

Looking for help on displaying my popup attributes and attachments in a DIV outside the map view.  Anyone have any examples?

I am not looking for a dock solution rather a div below my map div that can display the results when the user clicks on the feature in the map.

Thanks in Advance

0 Kudos
11 Replies
JeffreyThompson2
MVP Regular Contributor

Content is an array so you can have multiple types of content in a single popup.

let template = new PopupTemplate({
                    title: "Testing",
                    outFields: ["*"],
                    content: [
                        {
                            type: "fields", // Autocasts as new FieldsContent()
                            // Autocasts as new FieldInfo[]
                            fieldInfos: [
                                {
                                    fieldName: "APPLICATIONNUMBER",
                                    label: "Application Number",
                                    format: {
                                        digitSeparator: false
                                    }
                                },
                                {
                                    fieldName: "DISTRICT"
                                }]
                        }, attachmentsElement],
                });
GIS Developer
City of Arlington, Texas
kapalczynski
Occasional Contributor III

@JeffreyThompson2  thanks for your guidance... much appreciated.

0 Kudos