Select to view content in your preferred language

Place one label per part on web map or map service (duplicate labels)

1324
3
04-15-2020 11:13 AM
FionaRenton1
Frequent Contributor

I want to place one label per part on a multi-part polygon feature class on an ArcGISJavaScriptAPI web map.

Sometimes the multi part features are not adjacent to each other like in this map using ArcPro.

 

In ArcGIS Pro this is done by using the menu: Label Placement duplicate labels: one label per part.

 

I have tried publishing a web map with the labels on, but the webMap does not read the duplicate labels and so only one label is displayed for GH.

 

I've added labels using the JSAP, but I cannot find an option for placing duplicate labels.

I think it should be somewhere in the labelClass placement properties, but I can't see it. 

 

Is my only option to create a single part featureClass for labeling?

 

 

Thanks!

3 Replies
FredSpataro
Frequent Contributor

Hi @FionaRenton1 

Did you ever find a solution to this?  I'm not seeing any option to set in the LabelClass object at 4.30. 

Thanks

Fred

0 Kudos
FionaRenton1
Frequent Contributor

That was 4 years ago/ I gave up and labelled manually!

0 Kudos
FredSpataro
Frequent Contributor

😢🤣

Someone just created an Idea on the issue ... i added your post:

 

https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/label-multipoint-features/idi-p/15456...