I’m creating a locator using Search UI React and I would like to use Google Maps. The training uses Mapbox, and in the Github docs I don’t see a component for Google Maps. Is there one that can be used for a locator?
Hi Michael,
We don’t currently have a Google Maps component. This has been submitted to the Ideas board - feel free to upvote and comment any additional details to let our product team know of your request.
Would it be possible to get access to the Google Maps component built by the Yext Services team?
In this file (https://github.com/yextconsulting/pages-starter-react-consulting/blob/main/src/components/search/Locator.tsx) they reference a Map component from the @yext/pages/components package, which doesn’t seem to be accessible to the public
Hi,
Everything in @yext/pages/components got moved to a different package, but you can access the map in the 1.0.0-rc.5 version of @yext/sites-components.
You can see an example usage here: https://github.com/yextconsulting/pages-starter-react-consulting/blob/1.0.0.rc/src/components/search/Locator.tsx (the only difference from main
is that we import the GoogleMaps provider from @yext/sites-components
instead of @yext/components-tsx-maps
.