Skip to content

MapContainer map prop undefined #190

@dirodriguezm

Description

@dirodriguezm

Hi, I'm sorry if this question is too dumb but I've been struggling with the autocomplete example for days.

The autocomplete example has this function:

renderAutoComplete() {
    const { google, map } = this.props;

    if (!google || !map) return;
    ...
    /*
     Rest of the function here
    */
}

but in my code, this.props is: {apiKey: "API_KEY", loaded: true, google: Object}

Here you can see my code: https://codesandbox.io/s/vw39jx5n5

Please help me understand what is this map prop and what is going on with the autocomplete example.

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