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

Unable to call component method. Public method [reverseGeocodeUsing] not found on component #68

Open
brain82 opened this issue Nov 25, 2023 · 2 comments

Comments

@brain82
Copy link

brain82 commented Nov 25, 2023

The error Unable to call component method. Public method [reverseGeocodeUsing] not found on component is thrown once an address is selected.

Geocomplete::make('customer_location_raw')
  ->live()
  ->isLocation()
  ->required()
  ->prefixIcon('heroicon-o-map-pin')
  ->label('Customer Address')
  ->countries(['uk'])
  ->reverseGeocodeUsing(function (array $results) {
      ray($results);
  })
@SiddharthaGF
Copy link

SiddharthaGF commented Dec 2, 2023

Try putting use InteractsWithMaps; in the resource's create and edit class

@mderubertis
Copy link

This fixed it, thanks!!

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

3 participants