AnsweredAssumed Answered

Place 2D polygon labels inside polygon

Question asked by danf on Aug 21, 2018
Latest reply on Aug 26, 2018 by oreng

I'm about to throw in the towel on this one, but figure I'd ask the question to make sure I'm not missing anything. I've got my JSAPI 4.8 2D WebGL polygon labels working great on a FeatureLayer - fonts, halos, scale sensitivity. What I realize now though is that labels are placed at polygon centroids. Many of my polygons, political districts in this case, are irregularly shaped, so the center falls outside of the polygon. The reason for labeling the polygons is so that users can identify them. I'm afraid the net effect in this case is that districts will be labeled 'wrong', thereby sowing confusion. There would be no way to force the labels back into their respective polygons, right???