Leaflet.heat icon indicating copy to clipboard operation
Leaflet.heat copied to clipboard

MaxOpacity

Open Ryllau opened this issue 2 years ago • 2 comments

Would it be possible to implement a maximum opacity so that I can still see the map beneath if the intensity is high?

Ryllau avatar May 09 '22 07:05 Ryllau

What helped me ist the following

.leaflet-heatmap-layer { opacity: .5; }

sets the opacity of the whole layer. What i miss is that the opacity also varies based on weighting.

Utrehd avatar Dec 15 '22 19:12 Utrehd

The maxOpacity seems to do nothing, but @Utrehd's solution is solid.

MongoCaleb avatar Jan 19 '24 18:01 MongoCaleb