Select to view content in your preferred language

classedColorSlider from saved params

652
3
Jump to solution
10-26-2022 02:00 PM
wolfvincent
Emerging Contributor

Dear all,

 

I'm looking for way to save the state of a classedColorSlider (https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColor...) and reload it as soon as the user starts editing again. In other words, a way to save the properties and pass them to the slider as soon as things are being re-edited. Any hints highly appreciated :)) 

0 Kudos
1 Solution

Accepted Solutions
KristianEkenes
Esri Regular Contributor

Each renderer has an authoringInfo property for preserving properties like slider values set by the user: https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVi... 

If you set these values in the renderer, the "fromRendererResult" methods on the sliders take these properties into account when updating slider values: 

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider....

 

View solution in original post

0 Kudos
3 Replies
KristianEkenes
Esri Regular Contributor

Each renderer has an authoringInfo property for preserving properties like slider values set by the user: https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVi... 

If you set these values in the renderer, the "fromRendererResult" methods on the sliders take these properties into account when updating slider values: 

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider....

 

0 Kudos
wolfvincent
Emerging Contributor

Thank so much for the quick response 🙂

0 Kudos
wolfvincent
Emerging Contributor

Hi Kristian, one more question: Is there a way to set the classBreakInfos to the authoringInfo? Or am I overlooking something? I'm using the slider in a way as in this sample , in base it would be saving the settings set on the slider when having chosen for manual and configured the slider breaks(thumbs). Cheers, Vincent

0 Kudos