About summary features of Situation Awareness Widget

1511
2
Jump to solution
05-02-2016 07:26 AM
JakeCliffton
New Contributor III

In the Situation Awareness widget, the summary features can be checked on to display summary Features (at the bottom of the picture). 

My question is: is there any method to adjust the transparency of the summary features from the source code? Thanks!

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Jake,

  Sure in the Widget.js file there is the _initLayer function. in that function you will find:

Add line 4 and adjust to suit your needs.

if (this.summaryDisplayEnabled) {
    this.lyrSummary = new GraphicsLayer();
    this.lyrSummary.setVisibility(false);
    this.lyrSummary.setOpacity(0.5);
    this.map.addLayer(this.lyrSummary);
}

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Jake,

  Sure in the Widget.js file there is the _initLayer function. in that function you will find:

Add line 4 and adjust to suit your needs.

if (this.summaryDisplayEnabled) {
    this.lyrSummary = new GraphicsLayer();
    this.lyrSummary.setVisibility(false);
    this.lyrSummary.setOpacity(0.5);
    this.map.addLayer(this.lyrSummary);
}
JakeCliffton
New Contributor III

Thank you very much!

0 Kudos