Advanced formatting: Area calculation

242
1
Jump to solution
07-14-2021 10:51 PM
Labels (1)
ThorstenHohenstrater
New Contributor III

Good Afternoon,

I am learning to use the Advanced formatting functionality but seem to hit a snag. I am trying to calculate using the following

var feature_area = Area(Geometry($datapoint), 'square-meters');
return {
textColor: '',
backgroundColor: '',
separatorColor:'',
selectionColor: '',
selectionTextColor: '',
attributes: {
feature_area: feature_area
}

}

 

but get an error "Unable to parse script. Check your syntax.". I am sure that it's a user error :)

Thorsten Hohenstrater
0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

According to Advanced Formatting - ArcGIS Dashboards ,

"Geometry functions are not supported."

You might want to calculate the area for the layer at feature layer/ web map level, if required. And then use the respective field here in the expression of the list or indicator.



Think Location

View solution in original post

1 Reply
JayantaPoddar
MVP Esteemed Contributor

According to Advanced Formatting - ArcGIS Dashboards ,

"Geometry functions are not supported."

You might want to calculate the area for the layer at feature layer/ web map level, if required. And then use the respective field here in the expression of the list or indicator.



Think Location