Select to view content in your preferred language

Custom formatting for legend headers in a Web Map / Web Mapping Application / ExB?

122
1
Jump to solution
12-19-2024 09:21 AM
Labels (1)
ACCDVermont
Occasional Contributor

I am curious if there is a way to format the legend heading text (i.e. bold, underline, new line, etc.) of a web map. There doesn't seem to be any way to do so within the ArcGIS Online Web Map Viewer. I have also tried editing the JSON of a non-production version web map item within ArcGIS Online Assistant but no luck (shown below). Are there other avenues to accomplish this? Is it possible to make the edits happen in the Web Mapping Application side of things rather than the Web Map Viewer side? I am trying to see if it is actually possible and if it is possible, is the effort to accomplish it actually worth it.

JSON edits that did not work:

     HTML:

          <strong>text to be bolded here</strong> 

          <b>text to be bolded here</b> 

     Markdown syntax: 

          **text to be bolded here**  

     Using a style key:

          "heading": "text to be bolded here",

          "style" : "bold",  

 

JSON code snippet I am trying to edit in AGO Assistant:

ACCDVermont_2-1734627872059.png

 

View from the Layer Style Options tab in Web Map Viewer:

ACCDVermont_1-1734626891596.png

 

View from the Legend tab in Web Map Veiwer:

ACCDVermont_0-1734626813591.png

 

Thanks, 

ACCDVermont

0 Kudos
1 Solution

Accepted Solutions
RussRoberts
Esri Notable Contributor

This is currently not possible in Map Viewer to style that text displayed in the legend. 

View solution in original post

1 Reply
RussRoberts
Esri Notable Contributor

This is currently not possible in Map Viewer to style that text displayed in the legend.