ClassedColorSlider widget handle values are rounded off

770
3
08-09-2017 12:54 PM
MarcBate
Occasional Contributor II

When changing the normalization from linear to log, the ClassedColorSlider widget rounds off the values after you drag the handle to the nearest integer. Here is an example based on one of the developer samples. To recreate the issue, check the 'lognormal' checkbox. The widget histogram and handles are updated correctly. Now drag one of the handles. You'll notice that it is always rounded off to the nearest whole number. This doesn't happen if the widget is initially created with the log normal option. 

Esri ClassedColorSlider - JSFiddle 

In my example, I had to manually set the symbol on the breakInfos returned from the smart mapping response in order to have the intervals colored appropriately in this ClassedColorSlider widget.

Not nearly as important to me, but I thought I'd also report that this widget does not work with the vector basemaps. When you choose any of them in this example, the application seems to do nothing because it is throwing an error. I thought that the vector basemaps were now supported with all of the widgets? Wouldn't it be better to have the widgets fall back to return the scheme for the "streets" basemap along with a warning, rather than just throwing an error and returning nothing?

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Marc,

   Have you contacted and reported these issue to esri tech support. The forum is not the appropriate way to get bugs logged.

0 Kudos
MarcBate
Occasional Contributor II

No I haven't. I ended up just destroying the widget and recreating it when I want to change from linear to log

0 Kudos
KristianEkenes
Esri Regular Contributor

Not nearly as important to me, but I thought I'd also report that this widget does not work with the vector basemaps. When you choose any of them in this example, the application seems to do nothing because it is throwing an error. I thought that the vector basemaps were now supported with all of the widgets? Wouldn't it be better to have the widgets fall back to return the scheme for the "streets" basemap along with a warning, rather than just throwing an error and returning nothing?

This is an issue we're aware of. Vector tile basemaps are supported in the 4.x slider widgets, but updating the 3.x sliders seemed to slip between the cracks.  So the 3.x smart mapping module will be updated to support all vector tile basemaps in our fall release.