I am using SXA's Location Finder component for searching but Google Auto-Completion is not working.

Normally it should work like this:

enter image description here

The Map is working but auto-suggestion is not working correctly. It shows requests in Browser Network Tab but does not render. See the attached image for reference: enter image description here

But right now, it is not suggesting any City or Country. How to make it work, thanks for the help.

  • Have you added needed APIs for Google Maps? Check my blog post for further details -> tothecore.sk/2018/09/07/… Commented May 27, 2019 at 12:28
  • @PeterProcházka I have added all the API Keys already but still, it is not working. The map is working not the auto-suggestion. And it is not a duplicate of that question. Thanks
    – PSS
    Commented May 27, 2019 at 12:32
  • Have you specified "Key" field in /sitecore/content/{tenant}/{site}/Settings/Maps Provider item? Commented May 27, 2019 at 12:34
  • Yes, I have provided the key. I did some changes to the question it will help you to get the situation. Please have a look at it. Thanks.
    – PSS
    Commented May 27, 2019 at 12:38
  • @PrabhatSharma I've checked this on the latest code and it works fine. Do you have any console errors? Are you using custom theme with custom scripts which can interfere with SXA ones? Commented May 27, 2019 at 16:45

1 Answer 1


I had this issue in SXA 1.7.0. It is a problem in the component-search-location-filter.js file. It was fixed in SXA 1.8.0. It can be fixed by requesting a patch from Sitecore Support quoting 247292, or taking a new version of this file from a SXA 1.8+.

  • Hi Mark, I copied the component-search-location-filter.js from SXA 1.8 and attached it to SXA 1.7. Still, it is throwing the same issue. Also, I am not able to search using Zip Codes while doing so it throws this error "component-search-location-filter.js:219 Error while getting '67000' location". Do you have any idea about this? And one more thing can you please provide me that Sitecore support patch 247292. Thanks.
    – PSS
    Commented May 31, 2019 at 11:28
  • Patch 247292 isn't published so I can't provide it. As for changing to Zip Code search, you have to modify google-maps-connector.js and change to autocomplete.getPlacePredictions({input : queryParams.text, types: ['(regions)'] Commented Jun 4, 2019 at 8:14
  • I did that change in google-maps-connector.js (changes are: autocomplete.getPlacePredictions[{input : queryParams.text, types: ['(regions)']}, function(results)] but still I am not able to search using Zip Codes, it is working fine with Region or the City name. I want all three parameters will work (Zip code, region, and city).
    – PSS
    Commented Jun 4, 2019 at 11:55
  • Check out the google maps api docs, this isn't really SXA specific - although would be nice if SXA supports these scenarios OOTB. Commented Jun 5, 2019 at 0:17
  • Sure, I will look at it, thanks for the help.
    – PSS
    Commented Jun 5, 2019 at 7:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.