By using an SVG (Scalable Vector Graphics) file, you can create a map where counties, cities, or zip codes are clickable and redirect visitors to specific property searches.
Note: JPG or PNG files will not work for clicking!
Download & Open: Download the Original SVG file.
Get the Code: Right-click the file on your computer and select "Open with..." then choose Notepad (Windows) or TextEdit (Mac).
Adjust Size: You will see lines of code. You can manually adjust the height and width values in the first few lines to fit your site's layout.
Log In: Access your SitesBAY editor.
Select Template 01: Click Design, select Template 01, and click Use This Design. (This template is optimized for this feature!)
Edit Hero Image: Click Edit Page and select the Hero Image section (where the search bar is located).
Enable HTML: Find the setting "Would you like to display custom HTML?" and toggle it to Yes.
Open Source Code: A text box will appear. Click the Source Code icon in the top-left corner (it looks like two brackets: < >).
Paste & Save: Copy the entire code from your Notepad/Text Editor and paste it into the box. Click OK and then Save.
To turn the map into a functional search tool, you need to add a small snippet of data to the code.
Re-open Source Code: Go back into the < > source code box for your SVG.
Find the SVG Tag: Locate the very first line that starts with <svg.
Insert Attributes: Directly after the word svg, paste the following:
data-clickable="true" data-click="county"
Customize your Tag: Change the data-click value to match your map's data:
Use data-click="county" for county maps.
Use data-click="city" for city maps.
Use data-click="zip_code" for zip code maps.
Final Save: Hit Save. πΎ
Your map should now be fully rendered! When users hover over an area, they will see a hover effect, and clicking will automatically redirect them to a property search for that specific location. π π¨