Skip to content
Try free for 7 days

How to add map search to a real estate website

Buyers look for a place before they look at a house. Here is how to add a map search where the pins follow the filters and buyers draw their own area.

Real estate 6 min read Updated

In this guide
  • A real estate map search shows every home as a pin that follows the filters
  • Google Maps needs a key and a billing account, and very busy websites may pay for it
  • Place suggestions, a radius and a drawn area let buyers search by place
  • Buyers switch between photo cards, the map, or both side by side
  • MyHome has all of this built in

A real estate map search shows every home as a pin, and the pins change as buyers pick filters. To add one, you need a theme with map search built in, a Google Maps key and an exact address for each listing.

On a real estate website, buyers use the map to check a school, an office or a street they know. The seven steps below start with the demo and the Google Maps key, and end with the view buyers see first.

What buyers expect from a real estate map search

Map search is the first item on our real estate website features checklist. Buyers know a property search with a map from big portals, and they look for five things.

  • Pins and a result count that follow every filter, with no page reload
  • Place suggestions as buyers type a town or a street
  • A way to draw an area, or to search near an address
  • A choice of photo cards, the map, or both side by side
  • A link that opens the same search on another phone

1. Start from a demo with the map search built in

The pins, the filters and the list of results must work together, or buyers see homes that do not match. Every MyHome demo imports in one click, with its search pages, menus and sample listings.

MyHome is made for agencies that show their own listings. For a portal where agents and owners post, see how to create a website like Zillow.

2. Connect Google Maps with a key and a billing account

MyHome's map runs on Google Maps. In the Google Cloud console, create a key and switch on Maps JavaScript, Geocoding and Places, the three services MyHome uses. Then add the key in the MyHome Panel.

Google Maps needs a billing account
Without a key, the map and the place suggestions do not work. Without a billing account, Google shows a dark map marked "For development purposes only". Very busy websites may pay for the map.

Restrict the key to your own domain, so no other website can use it. Then set a budget alert in the Google Cloud console, so a busy month does not surprise you.

3. Give every listing an exact location

A pin on the wrong street hurts trust more than no pin at all. Before a listing goes live, check three things.

  • The address follows the same format as your other listings
  • The pin lands on the right street when you open the map
  • The listing has its region and area, so area filters find it

MyHome keeps the address in a Location field, and the listing page shows the same pin on its own map. On the demos, Region and Subregion are linked, so buyers pick a region first, then an area inside it. Our guide to what a property listing page needs covers the rest of that page.

4. Put the main property search filters next to the map

In the search bar, keep only the filters most buyers use, such as offer type, price, property type, and beds and baths. The MyHome demos keep region, size, year built and features under More.

The MyHome Modern demo map with the More panel open, Central Brooklyn and Downtown Manhattan ticked, and the number of homes next to each region and subregion
Under More, buyers tick regions and see how many homes each one holds, and the map keeps the 39 that match.

A new field, such as a pool, does not appear in the search on its own. Place it in the search template, as Adding Custom Fields to Search Results and Single Listing Pages shows.

5. Suggest places as soon as buyers type

Buyers type a few letters and pick a town, a street or an area from the list. The map then moves to that place at once.

The MyHome location field with Brook typed in and suggestions such as Brooklyn, NY, USA, next to the split view with 147 results and a Draw button on the map
After typing Brook, the field suggests Brooklyn and four other places, next to the split view with 147 results.

You choose whether the field suggests cities, regions or full addresses. By default, suggestions come from every country, so limit them to the countries you serve, up to five. Limiting Google Maps Autocomplete to Specific Countries on Your Website shows how.

6. Let buyers draw an area or search near a place

Some buyers know exactly which streets they want. With a draw-on-map search, they click Draw in MyHome, outline the area, and only the homes inside it stay.

On the Modern demo, For Sale cuts 147 results to 83, a price limit leaves 61, beds and baths 27, and a drawn area 15. Try the map search on the demo

Other buyers search around one address, such as a new office or a school. A place suggestion is a single point on the map, so a search radius turns it into an area.

On the demo, buyers pick a distance from 10 to 100 miles, and you can switch the unit to kilometers. Understanding the Search Radius Feature shows how to set the default.

Follow these steps on a MyHome website of your own

Your own MyHome website with the demo you pick and the full WordPress admin, ready in a minute.

Try MyHome free Free for 7 days. No card needed.

7. Choose the grid, split or map view buyers see first

MyHome shows results in three views, and buyers switch between them with one click. You choose which one opens first.

On the Modern demo, the Layout menu switches the results from a grid of photo cards to the split view, then to the full map. Try the three views on the demo

Each view suits a different buyer.

  • A grid of photo cards, for buyers who browse
  • The split view, for buyers who weigh place and photos together
  • The full map with prices on the pins, for buyers who know the area

Whatever the view, any search can be shared as a link that opens the same homes, so a couple sees the same results.

Check your map search before launch

From the demo to a shared search link

10 tasks

Tick each item as you set it up, or as you test it on the demo.

Before you start

  • All four MyHome demos have the same map search and import in one click.

    See it on the demo

Listings

Search and filters

  • Offer type, price, property type, and beds and baths come first.

  • See it on the demo

Place and distance

  • MyHome allows up to five countries.

  • The demo offers 10, 20, 30, 50, 75 and 100 miles.

    Understanding the Search Radius Feature

Before launch

Want help setting up your map search?

MyHome bought from us comes with 12 months of Premium Support. We help with the Google Maps key, the search filters and how listings show on the map.

Questions

What real estate websites have maps?
Most big property portals show homes on a map, and buyers now expect it from agencies too. MyHome gives an agency website that map search, built in. Explore MyHome
Is Google Maps free on a real estate website?
Not always. Google gives a free amount of map use every month, and only very busy websites go past it. Premium Support includes advice on map services. What Premium Support covers
Can one map show homes for sale and for rent?
Yes. On the MyHome demos, Offer Type filters For Sale and For Rent, and rental pins show a price per month. You can rename these options or add your own. How to Customize Texts for Custom Fields and Placeholders
Can the search start from where the buyer is?
Yes, if the buyer allows it. MyHome can ask the browser for the buyer's location and fill it in, and the radius shows the homes around it. Automatically Ask for the Current User Location
Does map search help my website rank on Google?
Not the map itself. Google ranks pages, and MyHome gives each search page a short, clean web address and a title built from its filters. Real estate SEO: how agencies get found on Google

Set up map search on your own MyHome website

Pick a demo and follow the seven steps on a real MyHome website, free for 7 days.

  • No card needed
  • Real WordPress admin
  • Ready in a minute