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

RGBA values or opacity

Open itscz-org opened this issue 8 years ago • 5 comments

Is it possible to configure some alpha to generate smoothly faded polys with this plugin?

itscz-org avatar Apr 15 '16 15:04 itscz-org

This plugin does not support RGBA palette colours or a general opacity at the moment. That's because a path consists of multiple separately drawn lines, one for each line segment. The lines overlap on the start- and endpoints and with semitransparent lines there would be circles there.

I'll have a look to maybe use ctx.globalCompositeOperation in an upcoming release to support alpha values.

klaftertief avatar Apr 18 '16 07:04 klaftertief

Bump. Any further thoughts on this?

m314 avatar Dec 13 '17 20:12 m314

Opacity will be greate!

webmatrixxxl avatar Apr 13 '19 21:04 webmatrixxxl

Is related PR getting reviewed? https://github.com/iosphere/Leaflet.hotline/pull/23

Pukri avatar May 31 '21 11:05 Pukri

Bump here - The PR should fix this (albeit with some extras put into it!). @klaftertief ?

trevelyanuk avatar Feb 01 '22 12:02 trevelyanuk