Let buyers trace the streets and neighbourhoods they have in mind. Pass the resulting area to your own property search, then display the matching listings.
Draw an area on the map, then select “Search in this area”.Interactive Yatmo demo. The selection returns a geographic polygon; this example does not query a property catalogue.
From shape to results
A simple contract with your search.
01
The visitor selects an area.
The Yatmo plugin handles the drawing states and closes the shape.
02
Your catalogue does the matching.
Use the returned GeoJSON polygon with your property filters and spatial search.
03
The map displays the results.
Return the matching listings to the map, with the photos, prices and links you choose.
For your integration
Two moments to listen for.
onShape
The area changes.
Use this callback to keep the current selection in sync with your interface.
onSearch
The visitor asks for results.
Run your catalogue search when the visitor confirms the area.