The VisibleScaleRangeSlider widget does not change the layer visibility.
Last Published: December 10, 2015ArcGIS API for JavaScript
Bug ID Number
BUG-000088937
Submitted
July 9, 2015
Last Modified
June 5, 2024
Applies to
ArcGIS API for JavaScript
Version found
3.13
Status
Non-Reproducible
This issue was not reproducible when tested by the development team. Issues may be given this status when they cannot be reproduced or are no longer relevant in a development version of the software, but a specific fix was not installed to address the issue. The issue's Additional Information section may contain further explanation.
Additional Information
Use
var visibleScaleRangeSlider = new VisibleScaleRangeSlider({
map: map,
maxScale :5000,
minScale : 600000
}, "sliderdiv");
or after it's created use
visibleScaleRangeSlider.set("maxScale",5000);
visibleScaleRangeSlider.set("minScale", 600000);
doc is not very clear on this and will be updated to indicate how to use this. Layer will still display, zooming and map scale needs to be wired up by user. VSR slider is used to handle scale values. Wiring still needs to be handled for the map zoom levels.