Skip to content

TypeError: Cannot read property 'getCenter' of null #5

@mosynaq

Description

@mosynaq

Hi! I use your project in my work and I like it. My project is in TypeScript and it has a custom map component made using React-Leaflet withLeaflet() component. But I often get an error which says TypeError: Cannot read property 'getCenter' of null and I guess it happens when the state of my custom map component which uses your component, changes.

Is there any way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions