Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formally support renderer options #14

Open
m314 opened this issue Mar 16, 2017 · 0 comments
Open

Formally support renderer options #14

m314 opened this issue Mar 16, 2017 · 0 comments

Comments

@m314
Copy link

m314 commented Mar 16, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant