Skip to content

country autocomplete #91

@mossa-Sammer

Description

@mossa-Sammer

from google APIS doc

 const autocomplete = new google.maps.places.Autocomplete(input);
  // Set initial restrict to the greater list of countries.
  autocomplete.setComponentRestrictions({
    country: ["us", "pr", "vi", "gu", "mp"],
  });

when I try this it gives me undefined for the places
the Error

Uncaught (in promise) TypeError: Cannot read property 'Autocomplete' of undefined
    at GoogleMapsScriptLoader

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