Carry over label's custom text formatting tags from ArcPro to ArcOnline

242
1
02-04-2020 12:49 PM
AlexanderLynch2
New Contributor III

Hello All,

I am trying to format web service so that labels are displayed correctly in ArcOnline. The image below has two windows, where top-floating window and bottom window are ArcPro and ArcOnline, respectively. I pasted Label expression used below picture.

Thanks!!!

-Alexander

//create labels for all_jointattachment layer by commtransfer value
var i = 0
var features = []
var j = 0
var jfeatures = []
//create function to filter from comm transferred field
function addvalue(feat) {
if (RIGHT(feat,5)=='FALSE') {
features[i++] = feat;
}
else if(RIGHT(feat,4)=='TRUE') {
jfeatures[j++] = feat;
}
}

//add value from field commtransferred and filter out ones with false
addvalue($feature.JointCompany_1+$feature.CommTransferred_1)
addvalue($feature.JointCompany_2+$feature.CommTransferred_2)
addvalue($feature.JointCompany_3+$feature.CommTransferred_3)
addvalue($feature.JointCompany_4+$feature.CommTransferred_4)
addvalue($feature.JointCompany_5+$feature.CommTransferred_5)
//returns all features where value is false

var lbl = Concatenate (Replace(features,'FALSE',''), "")
var jlbl = Concatenate (Replace(jfeatures,'TRUE',''), "")
return(lbl + jlbl)

0 Kudos
1 Reply
PeterMilenkovic
New Contributor III

Hi Alexander,

Looks like I am also having a similar issue. I am trying to publish a referenced web layer to my portal from arcgis pro, and some of the formating is dropped.

 

ArcGIS Pro

Portal

I have been successful publishing from ArcGIS pro to ArcGIS Server (as a map service, no portal is installed on that server), so i wonder if this is a bug in Portal/ArcGIS online?

Peter

0 Kudos