Select to view content in your preferred language

New map Viewer and Line Labels

5072
28
Jump to solution
12-13-2021 07:10 AM
Labels (2)
WardMitchell2
Frequent Contributor

Hello All,

I see that there have been some recent updates to the new make viewer. One of those being the labels associated with line work. The amount of labels per line has been greatly reduced (thankfully). The issue now appears that the labels do not move when you zoom in and out. In my case I am referring to road names . Roads tend to be long and have the label "sit" in one spot doesn't help the user know where they are at when zooming around in a map. I have only noticed it so far in the AGOL webmaps I have not tried the new line work labeling in a webmap application yet. I'm I missing something? 

1 Solution

Accepted Solutions
RussRoberts
Esri Notable Contributor

We have made some updates to line labeling in the map viewer.

- We have a setting on the label style panel for lines to enable/disable label repeats

- When disabled right now the label is in a fixed centroid position on the line.

- When label repeat is enabled there is a setting to set the interval distance to control the number of repeats

- Setting the overrun on labeling will allow smaller features to display labels that are larger.

 

RussellRoberts1_0-1639412065354.png

 

View solution in original post

28 Replies
RussRoberts
Esri Notable Contributor

We have made some updates to line labeling in the map viewer.

- We have a setting on the label style panel for lines to enable/disable label repeats

- When disabled right now the label is in a fixed centroid position on the line.

- When label repeat is enabled there is a setting to set the interval distance to control the number of repeats

- Setting the overrun on labeling will allow smaller features to display labels that are larger.

 

RussellRoberts1_0-1639412065354.png

 

DJB
by
Regular Contributor

Hi @RussRoberts,

I'm running into a problem with labeling polygons.  The labels appear perfectly in the centroid of the polygon.  Works great if you see the full extent of the polygon.  Where the problems begin is when you zoom in.  The label no longer moves with the map extent.  So now, if I'm not zoomed in to the centroid of the polygon, I do not see the label at all making it virtually pointless.

Is Esri looking to fix this in future releases?  

DJB_0-1680197990975.png

DJB_1-1680198080381.png

Any information you may have to offer would be greatly appreciated.

Thank you

 

RussRoberts
Esri Notable Contributor

Yup this is something on the 4.x JSAPI roadmap to support and will be seen across all apps using that version of the API which would be Map Viewer, Dashboards, Experience Builder and Instant Apps for example. 

ZacharyStanley
Occasional Contributor

Is there a timeline for the roadmap updates?

0 Kudos
HaileyWright1
Regular Contributor

@RussRoberts any timeline for this update for polygon labels? My colleague and I are researching elaborate and time consuming work arounds, which we'd happily avoid if this enhancement is close. Thanks!

0 Kudos
ChelseaRozek
MVP Regular Contributor

Hi @RussRoberts any update on the polygon labeling issue? I tried to get added to ENH-000130376 to track it, but support said it's already been implemented. With the retirement of the old API, we're moving all our apps to newer products, but my users are disappointed that the labeling is hindering usability.

RussRoberts
Esri Notable Contributor

dynamic "centroid" placement for polygons is still on our roadmap to have this supported in the JS Maps SDK this fall which would bring this to Map Viewer and other 4.x based JS Maps SDK apps like Experience Builder and Dashboards. 

SarahNoakes1
Frequent Contributor

Hi @RussRoberts ,

Do you have an ETA for the AGOL fall update please?  I know you probably won't be able to give a precise date, but an estimate would be appreciated.
Thanks,

Sarah 🙂

RussRoberts
Esri Notable Contributor

Looking like Novemberish.