Pro map vs web map popup display

240
0
07-26-2023 09:00 AM
Labels (2)
TychoGranville
Occasional Contributor II

This is somewhat related to Pop-ups configured in ArcGIS Pro change when the feature service is added into a new Map Viewer? as well as another thread I've been fighting for months Bolded strings within Arcade if – then--else expression

I have an Arcade if-then-else statement written for a popup (just a text snippet below)

Spoiler

//Precinct 01
//01-01
if($feature.PRECINCT_T =='01'&&$feature.SPLIT_TXT=='01'){
return "01 West The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Federal Races"+TextFormatting.NewLine+TextFormatting.NewLine+"US Representative 2nd District"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Partisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Senate District 26"+TextFormatting.NewLine+TextFormatting.NewLine+"House District 52"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Nonpartisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Circuit Court District 07"+TextFormatting.NewLine+TextFormatting.NewLine+"District Attorney"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Elected Positions"+TextFormatting.NewLine+TextFormatting.NewLine+"City of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Soil & Water Conservation District"+TextFormatting.NewLine+TextFormatting.NewLine+"N W Co PUD Subdivision #3"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Community College"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge ESD Zone #4 - At Large"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Education Service District Zone 2"+TextFormatting.NewLine+TextFormatting.NewLine+"N Wasco County School District #21 Zone 4"+TextFormatting.NewLine+TextFormatting.NewLine+"Mid Columbia Fire and Rescue"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Library Service District"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Wasco County Parks & Recreation"+TextFormatting.NewLine+TextFormatting.NewLine+"Port of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Oregon Corrections"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County 4-H and Extension Service District"
}
//01.02
else if ($feature.PRECINCT_T =='01'&&$feature.SPLIT_TXT=='02') {
return "01 West The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+ "Federal Races"+TextFormatting.NewLine+TextFormatting.NewLine+"US Representative 2nd District"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Partisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Senate District 26"+TextFormatting.NewLine+TextFormatting.NewLine+"House District 52"+TextFormatting.NewLine+TextFormatting.NewLine+"Statewide Nonpartisan"+TextFormatting.NewLine+TextFormatting.NewLine+"Circuit Court District 07"+TextFormatting.NewLine+TextFormatting.NewLine+"District Attorney"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Elected Positions"+TextFormatting.NewLine+TextFormatting.NewLine+"City of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Soil & Water Conservation District"+TextFormatting.NewLine+TextFormatting.NewLine+"Chenowith Water PUD Subdivision #4"+TextFormatting.NewLine+TextFormatting.NewLine+"N W Co PUD Subdivision #3"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Community College"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge ESD Zone #4 - At Large"+TextFormatting.NewLine+TextFormatting.NewLine+"Columbia Gorge Education Service District Zone 2"+TextFormatting.NewLine+TextFormatting.NewLine+"N Wasco County School District #21 Zone 3"+TextFormatting.NewLine+TextFormatting.NewLine+"Mid Columbia Fire and Rescue"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County Library Service District"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Wasco County Parks & Recreation"+TextFormatting.NewLine+TextFormatting.NewLine+"Port of The Dalles"+TextFormatting.NewLine+TextFormatting.NewLine+"Northern Oregon Corrections"+TextFormatting.NewLine+TextFormatting.NewLine+"Wasco County 4-H and Extension Service District"
}



Which does this in Pro (ignore the bolding, I know that part won't work in the web map)

Spoiler
proversion.JPG

And this when it is exported as either a web map or service (again, ignore the bolding, I know that won't work)

Spoiler
web version.JPG

Presumably there is a way to create popups in Pro that will look the same on a web map? Having to guess what it'll look like then repeatedly exporting to a web map and hoping it'll work seems a little clunky.

Thanks,

Tycho

Tags (3)
0 Replies