I may be missing something simple here but I have this issue in the new map viewer as well as in experience builder. I am getting repeat labels that make these new products basically unusable. Has anyone else had this issue? It works fine in map viewer classic and webapp builder.
Thanks!
This is a current known limitation in 4.x based JSAPI apps like Map Viewer and Experience Builder. I don't have an exact date for the release that will address this but thanks for your feedback and I've brought this post up with the team.
I have the same issue James. The only way I have found to work around it and space the labels is to change the posting from a specific attribute i.e. NAME and add spaces after using an Arcade expression.
Click on the </> icon to the right of the value in the Label Field
Kathryn,
This is a clever work around, I will give it a try. I hope they continue to give us more flexibility with labels as new releases come out.
I'd like to add that in addition to the line labels repeating in the New Map Viewer, there needs to be an option for line placement, e.g., above the line, below, etc. Trying to label a map of road centerlines is relatively painful when the major roads label every 100-200 feet and you'd also like to have the labels appear above the roads. I realize this is may be cartographically splitting hairs, but labeling is definitely not a one-size-fits-all approach. Hoping that later releases of the Map Viewer will address this as well.
additional label placements is something we would like to add in a future release and is dependent on API support. This can be tracked through this ENH request ENH-000130376
Thanks for the feedback!
We just updated Map Viewer with some label enhancements. For lines you can now choose to repeat a label along a line feature and set the distance between repeats. You can also allow label overruns for cases where the label can be still displayed on smaller features.
Is this available in portal/enterprise? I am not seeing a repeat option only placement.
Anderson way was 3 different features in that case
For Field Maps support for this you would have to post that in their forum.
In web maps the property would be under labelinginfo
https://developers.arcgis.com/web-map-specification/objects/labelingInfo/
repeatLabel | A boolean value indicating whether or not to repeat the label along the feature. If true, the label will be repeated according to the repeatLabelDistance. |
repeatLabelDistance | The repeat label distance used when repeatLabel is true. It represents a screen distance in points. |