Labeling FeatureLayer JS3.x

Jump to solution
04-29-2021 10:32 AM
MVP Frequent Contributor

WABDev 2.19

I have a custom widget that I am adding a FeatureLayer from an onClick event and trying to symbolize and add labels.  From THIS example it's showing an important step to "showLabels":

map = new Map("map", {
   extent: bbox,
   showLabels : true //very important that this must be set to true!


However, I don't implement that "new Map" and just setting reference to the map source to the WAB itself.  All I do is decalare map: null at the top and then access throughout the .js of the widget


How do I set to showLabels: true?

0 Kudos
1 Solution

Accepted Solutions
2 Replies
MVP Esteemed Contributor
MVP Frequent Contributor

oof.. did I whiff on that one.  Thank you!

0 Kudos