Leaflet.hotline
Leaflet.hotline copied to clipboard
Formally support renderer options
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?