Select to view content in your preferred language

Conditionals inside MapTips

507
2
05-24-2012 02:46 AM
MaciejGolebiewski
Emerging Contributor
I was wondering if it's possible to add conditional into a maptip (like if loop in Python or Con functon in Raster Calculator). What I want to achieve is viewing different images depending on a field value, like green tick if field value is 1 and red cross if field value equals 0.
Problem is I've got completely no idea how to make my dream come true 😉
Any hints?

Cheers
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
You can create a value converter that returns the image URL depending on the field values.
Then you can bind the image inside the maptip to the Url coming from this converter.
0 Kudos
JoeHershman
MVP Regular Contributor
You can create a value converter that returns the image URL depending on the field values.
Then you can bind the image inside the maptip to the Url coming from this converter.


Interesting idea, thanks.
Thanks,
-Joe
0 Kudos