Hide Select by Rectangle and Selectable Layers section in Screening Widget

564
5
Jump to solution
01-09-2018 09:40 AM
MarkCooper5
Occasional Contributor II

Hi

I need to hide the Select by Rectangle and Selectable Layers section in the Screening Widget draw tool as we don't want users to use them. Is this possible in the HTML?

Thanks

Mark

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Mark,

   Here is the css rule to add to hide those items:

.jimu-multiple-layers-featureset-chooser,
.esriCTParentDivOfChooseSymbol,
.esriCTWidgetAndBufferSeparator[data-dojo-attach-point='seperatorAfterSelect'] {
  display: none;
}

View solution in original post

5 Replies
RobertScheitlin__GISP
MVP Emeritus

Mark,

  So just remove the two items outlined in the image?

0 Kudos
MarkCooper5
Occasional Contributor II

Almost! The tool I want to remove is not the one you have highlighted, but the one two to the right (with the 3 polygons and the arrow). The other bit is correct.

I may be wrong, but if I can just hide it in the html, it is less likely to cause any issues than if I remove it elsewhere!

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Mark,

   Here is the css rule to add to hide those items:

.jimu-multiple-layers-featureset-chooser,
.esriCTParentDivOfChooseSymbol,
.esriCTWidgetAndBufferSeparator[data-dojo-attach-point='seperatorAfterSelect'] {
  display: none;
}
MarkCooper5
Occasional Contributor II

Fantastic Robert - you are a genius!

If I wanted to hide the buffer tool, would that be in the same place?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Mark,

   At would be this rule then:

.jimu-multiple-layers-featureset-chooser,
.esriCTParentDivOfChooseSymbol,
.esriCTWidgetAndBufferSeparator,
.esriCTAOIBufferChangeParentContainer,
.esriCTBufferDistanceLabelTextBoxContainer {
  display: none;
}

Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.