1

I tried implementing location finder using https://michaellwest.blogspot.in/2016/10/build-location-finder-search-using-sxa.html and able to implement the functionality with minor issues:

  1. If I am assigning POI item on map date item then after clicking on POI item on MAP, it’s showing the details. In this case while searching any place using Location Finder/Search Results component, it will show all the details not specific POI item

    Assign POI item to MAP: Assign POI item to MAP enter image description here

  2. If I am not assigning POI item on map date item then after clicking on POI item on MAP, it’s not showing the details and showing error on console (400 bad request). In this case while searching any place using Location Finder/Search Results component, it will narrow down the result and show particular POI item on MAP:

    POI items not assigned to MAP: enter image description here

    enter image description here

    400 bad request url : http://site//sxa/geoVariants/1ad82bbf-4d55-4dbd-b635-b68cf2171002/ae69e57b-da98-4bd5-b889-477448d61139/13.0826802,80.27071840000008/undefined&site=null

    Is there any pointers to resolve above issue, so that after clicking on POI item, it will show the details of POI item?
    
7
  • That should work OOTB without any problems. Check out this link for an example michaellwest.blogspot.com/2016/10/…. Commented Jan 13, 2018 at 16:27
  • I tried this post of yours but it's showing distance from searched to POI items and map not showing matched items.
    – Amit Kumar
    Commented Jan 13, 2018 at 16:31
  • Did you include a search box component? Commented Jan 13, 2018 at 16:38
  • I used the location finder text box not search text box. Shall I use Search text box instead of location finder text box?
    – Amit Kumar
    Commented Jan 13, 2018 at 16:51
  • Try a combination of both. Commented Jan 13, 2018 at 16:53

1 Answer 1

2

Just like Michel wrote - it's possible out of the box in SXA. You don't need to drop Search Box rendering. Take a look below:

enter image description here

If out would like to have auto-complete from Google in your Location Finder you need to provide the number of options you want to see:

enter image description here

Remember also about providing Google (or Bing - it depends on what you want to use) key in /sitecore/content/Tenant/Site/Settings/Maps Provider item.

2
  • Any inputs on query.
    – Amit Kumar
    Commented Mar 28, 2018 at 11:34
  • Sorry, I'm out of time right now. I'll look at this tomorrow. Commented Mar 28, 2018 at 14:34

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.