AnsweredAssumed Answered

Map scale in Arcade labels

Question asked by gareth.baker_wessexwater on Nov 13, 2017
Latest reply on Nov 15, 2017 by gareth.baker_wessexwater

I'd like to be able to include the current map scale in the labels for a feature in Portal 10.5.1. The documentation on this page suggests that only the feature to be labelled is available as a global variable in Arcade expression

https://developers.arcgis.com/arcade/guide/profiles/#labelling

 

However within the playground section on the same site the current map scale is available under the labelling profile

Map scale available in Arcade expression on playground site

 

If I try to use the map scale global in an Arcade label expression on a layer in a Portal 10.5.1 web map I get an error about the view identifier not being found.

View scale not available in Portal 10.5.1 Arcade

I'm guessing that the reason it works in the playground is that the page is built with the JS API and that has a slightly different implementation of Arcade than Portal 10.5.1 perhaps? My question is will the map scale global be available in later versions of Portal?

Outcomes