is it possible for the Sketch UI widget, that it only shows the sketch point button?

1020
4
03-08-2019 05:18 AM
WwLl
by
New Contributor II

Hey,

i want only the Point Button, can i somehow turn off the other function?

thanks!

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

Just add this css rule to your code:

  .esri-sketch__button.esri-icon-polyline,
    .esri-sketch__button.esri-icon-polygon,
    .esri-sketch__button.esri-icon-checkbox-unchecked,
    .esri-sketch__button.esri-icon-radio-unchecked {
      display:none;
    }
WwLl
by
New Contributor II

Thanks, it worked  

0 Kudos
JonathanUihlein
Esri Regular Contributor

We will be adding a property to control the display of specific tools in an upcoming release (4.12). In the meantime, you can use Robert's solution.

GregoryBologna
Occasional Contributor II

add what you want

          var sketch = new Sketch({
            layer: somelayer
            view: view,
            availableCreateTools: ["polyline""polygon""rectangle""circle"]        
          });
0 Kudos