Skip to content

fitBounds() function with padding  #450

@davidroettger

Description

@davidroettger

How to use the fitBounds() function with a padding option?

I tried this.$refs.leafmap.fitBounds(this.initbounds,{ padding: [20, 20] })

but it isn’t working that way.

I tried to set a :padding on the LMap component too. But it seems the map doesn't recognize the value. I tried this with number arrays like [50,50] or [50,50,50,50]

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions