Select to view content in your preferred language

SketchValueOptions for new arcgis-sketch web component

106
1
yesterday
Insa_bel
Occasional Contributor

Hello!

 

I am currently in the process of migrating our widgets to the new web components. 

While migrating the Sketch Widget, I ran into an issue. I do not see any option anymore to set the SketchValueOptions. We use the valueOptions to change the units for the tooltip to nautical-miles like this:

valueOptions: {
displayUnits: {
length: 'nautical-miles',
area: 'square-nautical-miles'
}
}
 
The only unit related option when working with the arcgis-sketch (that I found) is setting the unit system for the labels (labelOptions) via a PortalItem on the Map?
Insa_bel_0-1780046723266.png


This only works with SceneViews, but we use a MapView. 

I could not find any unit options that only apply to the sketch component directly.

 

Could you please help me out there?

0 Kudos
1 Reply
Insa_bel
Occasional Contributor

Hello!

 

I am currently in the process of migrating our widgets to the new web components. 

While migrating the Sketch Widget, I ran into an issue. I do not see any option anymore to set the SketchValueOptions. We use the valueOptions to change the units for the tooltip to nautical-miles like this:

valueOptions: {
displayUnits: {
length: 'nautical-miles',
area: 'square-nautical-miles'
}
}
 
The only unit related option when working with the arcgis-sketch (that I found) is setting the unit system for the labels (labelOptions) via a PortalItem on the Map?
Insa_bel_0-1780046564916.png


This only works with SceneViews, but we use a MapView. 

I could not find any unit options that only apply to the sketch component directly.

 

Could you please help me out there?

0 Kudos