From b4062e5a3e61bfe756a59c7db3e8a945eb9e9005 Mon Sep 17 00:00:00 2001 From: ruchi Date: Sat, 3 Apr 2021 15:59:25 -0400 Subject: [PATCH] search --- src/listings-page/ListingsPage.js | 89 ++++++++++++++++++++--- src/listings-page/data/property-data.json | 8 +- 2 files changed, 82 insertions(+), 15 deletions(-) diff --git a/src/listings-page/ListingsPage.js b/src/listings-page/ListingsPage.js index 3aa80cf..4f03ce4 100644 --- a/src/listings-page/ListingsPage.js +++ b/src/listings-page/ListingsPage.js @@ -4,12 +4,17 @@ import { withScriptjs, withGoogleMap, Marker, - InfoWindow + InfoWindow, + useLoadScript } from "react-google-maps"; + + import * as listingData from "./data/property-data.json"; import mapStyles from "./mapStyles"; import "./ListingsPage.css"; + + function Map(){ const [selectedProperty, setSelectedProperty] = useState(null); @@ -17,6 +22,8 @@ function Map(){ return ( + + - {listingData.Properties.map(house => ( + { + listingData.Properties.map(house => { + - - - - ))} + + }) + } {selectedProperty && ( @@ -95,10 +103,6 @@ function Map(){ )} - - - - @@ -117,6 +121,70 @@ class ListingsPage extends Component {
+
+ +
+ + +
+ + + + +
+ + + + + +
+ +
+ +
+ +
+ + +
+ + + +
+ + +
+ +
+ {/* @@ -158,7 +226,6 @@ class ListingsPage extends Component {
-

Map