How can we style a label for a symbol we uploaded using a SVG to be text-align: left? We can do this for pop-ups using the html editor, like here:
https://support.esri.com/en-us/knowledge-base/how-to-use-arcade-expression-to-configure-the-text-for...
We found we could do these:
https://developers.arcgis.com/arcade/function-reference/text_functions/https://support.esri.com/en-u...
But we could not find text alignment. So, we are forced to have them all be centered.
Can we do something with this?
Arcade | Overview | ArcGIS Maps SDK for JavaScript 4.28 | ArcGIS Developers
Solved! Go to Solution.
Currently polygon alignment is not supported and the only property for labelplacement is
always-horizontal |
Can you share the SVG you are uploading? We currently dont expose controls on elements within a symbol layer but depending on how the symbol is generated you could manually add the JSON to it after or use Pro.
I wrote on behalf of a teammate to help out, as we are really busy. And, I misspoke. Sorry.
This particular issue is not with regards to a SVG.
This is a polygon feature service with a label class.
The text within the label class needs to be left aligned in this particular example, but we will have use cases where we may need right as well. See attached screenshots.
We also have a point feature service with a label class, where we need to left align.
We were looking for a way within the label class to align text left, center or right.
We are currenting using Map Viewer to define our label class. We have the ability to use ArcGIS Maps SDK for JavaScript, if that is the direction that we need to head.
In addition, we are using arcade to populate attributes within the label.
Currently polygon alignment is not supported and the only property for labelplacement is
always-horizontal |