Change Colors or add html to a pop-up in the map viewer

1386
1
06-10-2021 03:58 PM
Labels (2)
RyanBohan
Occasional Contributor III

How do I change colors or add html in the pop-up in the map viewer (formally map viewer beta)?

In the classic map viewer it's super easy to change the color of text in a pop-up.  You could use a simple arcade express to update the colors based on status.  Could you please help me find these button in the current map viewer?

RyanBohan_0-1623365716683.png

RyanBohan_1-1623365753449.png

Thank you!

1 Reply
BrittanyBurson
Occasional Contributor III

Agree with you.

The lack of HTML support is definitely keeping me from using the new Map Viewer so far. It is really useful for changing text or background colors using Arcade statements, as you mentioned.

For example, as {expression/expr1}:

if ($feature.review_status == 'UNDER_REVIEW') {
return 'background-color:#d7a900'
}
return 'background-color:#DDDDDD'

To change color in a status bar:

BrittanyBurson_0-1623366494868.png

via the HTML editor

BrittanyBurson_1-1623366668111.png

As for simple text color edits, it looks like we can edit the color, but not use a custom one yet. This makes it tough to adhere to organization style guidelines...

Hopefully soon!