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

Formally support renderer options

Open m314 opened this issue 7 years ago • 0 comments

Thank you for your great work on this plugin!

I have a question. I want Leaflet.hotline's renderer to support the Renderer's padding option.

I can modify the source code to hard-code a padding value:

L.Hotline = L.Polyline.extend({
        statics: {
            Renderer: Renderer,
            renderer: renderer
        },
        options: {
            renderer: renderer({ padding: 1.0 }), //<--add padding option here!
            min: 0,
        [...]

but I'm not sure this is the best way to do this. Is there a better way to pass in this option?

m314 avatar Mar 16 '17 21:03 m314