頭が回らず困っています。フィールドの値が特定の値の場合、ポップアップの HTML で div を適用しないようにするにはどうすればよいでしょうか?
こちらが div です:
<div style="background-color:{expression/expr0};color:#FFFFFF;padding:7px;text-align:center;"> <span style="font-size:medium;">{expression/expr1}</span> </div>
Create another expression:
return IIF($feature.Field == xyz, 'none', 'block')
Use the output of that expression in the div's "display" style:
<div style="display:{expression/expr2};background-color:{expression/expr0};color:#FFFFFF;padding:7px;text-align:center;"> <span style="font-size:medium;">{expression/expr1}</span> </div>
For features with the specified value, this will hide (display:none) the div.
サインインすると、投稿したり、更新をフォローしたりできます。初めての方ですか?無料アカウントを登録しましょう。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.