Select to view content in your preferred language

AssetGroup and AssetType value in Map Viewer

2072
14
Jump to solution
11-20-2024 01:22 AM
gpgisandsky
Regular Contributor

Hi,

I tried to publish a web map using two methods, starting from a utility network feature service:

  1. Using a group layer
  2. Using a traditional layer

When I use the map viewer in Portal (11.3) and enable the identity (to display the pop-up) feature, the behavior differs between the two methods:

  • In the first case (group layer), the AssetGroup field appears as a code value instead of the name, while the AssetType field appears as the description value.
  • In the second case (traditional layer), the result is inverted: the AssetGroup field appears as the name, while the AssetType field appears as a code value.
0 Kudos
14 Replies
RobertKrisher
Esri Regular Contributor

This is not fixed in 11.4.

PierreloupDucroix
Frequent Contributor

In addition, you can use SubtypeName($feature) in your popups in order to display assetgroups aliases.

CEO of MAGIS
gis_KIWI4
Frequent Contributor

For ASSETTYPE values we use - 

DomainName($feature,"ASSETTYPE")
0 Kudos
gis_KIWI4
Frequent Contributor

In some instances we have also had good success using arcade to display ASSETGROUP and ASSETTYPES in the pop-up headers using arcade. Not the most elegant but it worked for when we were struggling with this issue. 

Return when (
  $feature.ASSETGROUP==1 && $feature.ASSETTYPE == 1,"ICP",
  $feature.ASSETGROUP==1 && $feature.ASSETTYPE == 2,"Streetlight",
  $feature.ASSETGROUP==1 && $feature.ASSETTYPE == 3,"Misc End Point",
  $feature.ASSETGROUP==2, "Power Transformer",
  $feature.ASSETGROUP==3 && $feature.ASSETTYPE ==1, "Distribution Transformer - Overhead | Single Phase",
  $feature.ASSETGROUP==3 && $feature.ASSETTYPE ==2, "Distribution Transformer - Overhead | Three Phase",
  $feature.ASSETGROUP==3 && $feature.ASSETTYPE ==3, "Distribution Transformer - Pad Mount | Single Phase",
  $feature.ASSETGROUP==3 && $feature.ASSETTYPE ==4, "Distribution Transformer - Pad Mount | Three Phase",
  $feature.ASSETGROUP==4, "Regulator",
  $feature.ASSETGROUP==5 && $feature.ASSETTYPE ==1, "High Voltage Switch",
  $feature.ASSETGROUP==5 && $feature.ASSETTYPE ==2, "High Voltage Circuit Breaker",
  $feature.ASSETGROUP==5 && $feature.ASSETTYPE ==6, "High Voltage Circuit Breaker",
  $feature.ASSETGROUP==5 && $feature.ASSETTYPE ==3, "High Voltage Recloser",
  $feature.ASSETGROUP==5 && $feature.ASSETTYPE ==4, "High Voltage Tie Switch",
  $feature.ASSETGROUP==5 && $feature.ASSETTYPE ==5, "High Voltage Sectionalizer",
  $feature.ASSETGROUP==8 && $feature.ASSETTYPE ==1, "Subtransmission Voltage Switch",
  $feature.ASSETGROUP==8 && $feature.ASSETTYPE ==2, "Subtransmission Voltage Circuit Breaker",
  $feature.ASSETGROUP==8 && $feature.ASSETTYPE ==6, "Subtransmission Voltage Switch",
  $feature.ASSETGROUP==8 && $feature.ASSETTYPE ==3, "Subtransmission Voltage Recloser",
  $feature.ASSETGROUP==8 && $feature.ASSETTYPE ==5, "Subtransmission Voltage Secitonalizer",
  $feature.ASSETGROUP==14 && $feature.ASSETTYPE == 2 , "Subtransmission Voltage Arrestor",
  $feature.ASSETGROUP==14 && $feature.ASSETTYPE == 1, "High Voltage Arrestor",
  $feature.ASSETGROUP==6 , "High Voltage Fuse",
  $feature.ASSETGROUP==7 , "High Voltage Link",
  $feature.ASSETGROUP==9 , "Subtransmission Voltage Fuse",
  $feature.ASSETGROUP==10 , "Subtransmission Voltage Link",
  $feature.ASSETGROUP==11 , "Low Voltage Fuse",
  $feature.ASSETGROUP==12 , "Low Voltage Link",
  $feature.ASSETGROUP==13 , "Groud Point",
  "Other"
)
rlyding
Regular Contributor

You can also use arcade to symbolize and classify your features in web maps using multiple fields. You can use else if statements or a when statements. The returned values become a symbol class. Example below of sewer mains by asset group, asset type, and ownership

 

var ag = $feature.ASSETGROUP
var at = $feature.ASSETTYPE
var ut = $feature.usetype
var pt = $feature.forcemainpressuretype
var ow = $feature.ownedby

When((ag == 1 || ag == 2) && ow != 1, "Main Not OwnedBy County", ag == 3 && ow != 1, "Lateral Not OwnedBy County", ag == 1 && at == 1,
"Collector Gravity Main", ag == 1 && at == 2, "Interceptor Gravity Main", ag == 2 && pt == 1, "Force Main", ag == 2 && pt == 2, "Low Pressure Main",
ag == 2 && pt == 3, "Vacuum Main", ag == 3 && ut == 1, "Force Main Lateral", ag == 3 && ut == 2, "Gravity Lateral", ag == 3 && ut == 3, 
"Low Pressure Lateral", ag == 3 && ut == 4, "Vacuum Lateral", null)