Labels on Polyline

I'm trying to add labels to polylines without any success, I was hoping that someone could point out what I'm doing wrong. The gist of what I'm attempting is to add concentric range circles around Halifax, which works. Then I'm adding four polylines to serve as crosshairs through the range rings. I would ultimately want to indicate the distances and units using labels.

Thanks in advance,

I've modified my code s.t. I'm using LabelCollection (outside of the polyline) and it seems promising. I was hoping that 'label' was part polyline (or inherited). If anyone has a better way, I'd love to hear it.


Hi Ian,

Yes, you’ll need to add the labels separately. See this demo:



Thank you Hannah :slight_smile: