This commit is contained in:
Caleb Robinson 2019-06-29 00:11:31 +00:00
Родитель f8175509be
Коммит 49aaa31d2b
1 изменённых файлов: 1 добавлений и 23 удалений

Просмотреть файл

@ -266,7 +266,7 @@
zoom: START_ZOOM,
keyboard: false,
minZoom: baseLayer.options.minZoom,
layers: [baseLayer, cities, heatmap]
layers: [baseLayer, cities]
});
map.createPane('labels');
map.getPane('labels').style.zIndex = 200;
@ -349,7 +349,6 @@
}
var overlayMaps = {
"Heatmap": heatmap,
};
L.control.layers(
baseMaps, overlayMaps, {
@ -401,27 +400,6 @@
);
windowSizeSlider.addTo(map);
//----------------------------------------------------------------------
// Setup the selection window size slider
//----------------------------------------------------------------------
heatmapSlider = L.control.slider( // opacity slider
function(value){
heatmap.setOpacity(value / 100.0);
}, {
position: 'bottomleft',
id: 'window_size_slider',
orientation: 'horizontal',
collapsed: true,
syncSlider: true,
min: 0,
max: 100,
value: 60,
logo: "Heatmap Opacity",
size: "171px"
}
);
heatmapSlider.addTo(map);
//----------------------------------------------------------------------
// Setup the sharpness slider to control which type of image is shown
//----------------------------------------------------------------------