Select to view content in your preferred language

SketchViewModel : color selection

478
2
Jump to solution
09-26-2024 05:36 AM
LionelGOUBET
Regular Contributor

Hi,

I create polygon with the SketchViewModel and when I select the polygon, the fill color selection is "very light blue", I would like that be "transparent"

is it possible ? what the best way ? (sketch._internalGraphicsLayer.graphics.map ?)

 

LionelGOUBET_0-1727354105763.png

 

Thanks a lot

0 Kudos
1 Solution

Accepted Solutions
Sage_Wall
Esri Regular Contributor

Hi @LionelGOUBET ,

Set the view's or the layer view's  highlightOptions

 

const view = new MapView({
  container: "viewDiv",
  highlightOptions: {
    fillOpacity: 0
  }
});

 

https://codepen.io/sagewall/pen/abezexx 

View solution in original post

0 Kudos
2 Replies
Sage_Wall
Esri Regular Contributor

Hi @LionelGOUBET ,

Set the view's or the layer view's  highlightOptions

 

const view = new MapView({
  container: "viewDiv",
  highlightOptions: {
    fillOpacity: 0
  }
});

 

https://codepen.io/sagewall/pen/abezexx 

0 Kudos
LionelGOUBET
Regular Contributor

thanks great Sage

0 Kudos