Labeling FeatureLayer JS3.x

505
2
Jump to solution
04-29-2021 10:32 AM
JamesCrandall
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 this.map throughout the .js of the widget

 

How do I set this.map to showLabels: true?

0 Kudos
1 Solution
2 Replies
JamesCrandall
MVP Frequent Contributor

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

0 Kudos