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-ClassedColorSlider.html) 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 )
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-AuthoringInfoVisualVariable.html#maxSliderValue
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.html#fromRendererResult
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
Thank so much for the quick response 🙂
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.