AGO で一連のマップを扱っており、より細かなラベル式を作成したいと考えています。たとえば、Desktop で VB や Python を使って行ったように、ラベルに改行を挿入するなどです。挿入した特殊文字や HTML マークアップなどを使って、これはもうできるのでしょうか?
ありがとうございます
-caminante
Hi Robert and Kevin,
Currently the 3X Javascript API does not support the Arcade expression that adds a newline.
This web map, has the proper expression, but you will see that the labels are not stacked:
Arcade Expression: "APN: "+$feature.PIN +TextFormatting.NewLine+ "Acres: "+Round($feature.ACRES, 2)
Map: https://arcg.is/9a0SX
However, when this app is included in a 4X Javascript API, the Newline function is applied to the labels:
https://onlineshowcase.maps.arcgis.com/apps/Media/index.html?appid=fa4ad95adbad410aaf00790a3c18d0f8
Currently, Media Map, Styler and Minimal Gallery are available in 4X and can take advantage of the Newline function with Arcade.
-Kelly
Hi Robert, adding nuanced label expressions can be accomplished by editing web maps creating in ArcGIS Online or ArcGIS Enterprise using the Map Viewer and working with Arcade expressions. Arcade provides formatting functions as well as global variables that provide direct access to features in the map for labeling purposes. Here is an example web map that illustrates the process involved.
Awesome, thanks for that helpful clarification and insight Kelly!
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.