Commit 7f2c79d6 authored by Joseph Alberts's avatar Joseph Alberts
Browse files

Try different slider options

parent edd507d7
......@@ -312,6 +312,10 @@ require([
// add slider widget
mainView.ui.add("infoDiv", {
position: "top-right",
});
// view.whenLayerView(layer).then(function(layerView) {
const filterField = "happening";
......@@ -329,20 +333,22 @@ require([
// labelsVisible: true, // deprecated in 4.15
// rangeLabelsVisible: true, // deprecated in 4.15
precision: 0,
layout: "vertical"
});
mainView.ui.add("infoDiv", {
position: "top-right",
layout: "vertical",
tickConfigs: [{
mode: "percent",
values: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100], // a value of 10 doesn't produce expected results.
labelsVisible: true,
}]
// labelInputsEnabled: true,
});
slider.tickConfigs = [{
mode: "percent",
values: 20,
labelsVisible: true,
}];
// slider.tickConfigs = [{
// mode: "percent",
// values: 20,
// labelsVisible: true,
// }];
const sliderValue = document.getElementById("sliderValue");
// const sliderValue = document.getElementById("sliderValue");
// filter features by belief happening
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment