How to create a Sitecore scope in sxa?

How to create a Sitecore scope in sxa?

The Scope item uses a Sitecore query to get the appropriate data. The query needs to return items that inherit from the POI template which contains fields like Latitude and Longitude. Add a new scope under Settings -> Scopes.

What do you need to know about sxa search?

SXA is bundled with quite a number of search components. Let us see what is in use. Location Finder – essentially a search box with label and button. Search Results – just like it sounds. Filter (Radius) – used to reduce the search results by geospatial comparison. Map – a map using the Google Maps JavaScript API.

How to customize the marker icon in sxa?

The POI Type item provides a way to customize the marker icon. For this demo I created a new POI type under Presentation -> POI Types, which allowed me to specify the awesome SPE custom marker icon. The POI item as mentioned before contains the Latitude and Longitude necessary for the spatial search to function.

What do the poi items do in sxa?

The POI item as mentioned before contains the Latitude and Longitude necessary for the spatial search to function. I used the POI Group item to help organize the POI items by state. Notice that the Type field uses the custom SPE POI. Each of the cities are represented by the base POI which comes with a title, description, and image field.

Where do I Find my location in sxa?

Rather than your locations appearing below the POIs node they would exist in your content tree, somewhere underneath the Home item. For this to function, create a “Location” feature template which inherits from the IPOI template. Then create a “Location Detail” project template which inherits from “Location”.

What do you need to know about location finder?

In the above image, the hash query contains an entry for the geolocation (g), order (o), and distance (DistanceMi). Let’s have a look at each of the search components in greater detail. This control deals with accepting search criteria from the user in the form of a city, state, or zip code.