is there a way to set the opacity of just the tiles using leaflet and OpenStreetMap? I want the map to have 50% opacity, but keep 100% opacity on the markers.
Setting opacity like this, does not work:
var bkgLayer = L.tileLayer.grayscale('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png');
var map = new L.Map("map", {
center: new L.LatLng(-31.4, 50.9),
scrollWheelZoom: false,
zoomControl: false,
zoom: 5,
opacity: 0.5,
layers: bkgLayer
});