|
1 | 1 | import './Map.css' |
2 | 2 | import { MapContainer, TileLayer, Marker, Popup } from 'react-leaflet' |
3 | 3 | import 'leaflet/dist/leaflet.css' |
| 4 | +import Button from 'react-bootstrap/Button'; |
4 | 5 |
|
5 | 6 |
|
6 | 7 | function Map() { |
7 | | - |
| 8 | + const buttonStyle = {backgroundColor:"#ADD8E6", marginLeft: '1rem', marginRight: '1rem'} |
8 | 9 | return ( |
9 | | - <div className="leaflet-container"> |
10 | | - <MapContainer center={[39.952584, -75.165222]} zoom={13} scrollWheelZoom={true}> |
11 | | - <TileLayer |
12 | | - attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' |
13 | | - url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" |
14 | | - /> |
15 | | - <Marker position={[39.952584, -75.165222]}> |
16 | | - <Popup> |
17 | | - This spots got a good vibe |
18 | | - </Popup> |
19 | | - </Marker> |
20 | | - </MapContainer> |
| 10 | + <div className="leaflet-container-wrapper"> |
| 11 | + <div className="leaflet-container"> |
| 12 | + <MapContainer center={[39.952584, -75.165222]} zoom={13} scrollWheelZoom={true}> |
| 13 | + <TileLayer |
| 14 | + attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' |
| 15 | + url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" |
| 16 | + /> |
| 17 | + <Marker position={[39.952584, -75.165222]}> |
| 18 | + <Popup> |
| 19 | + This spots got a good vibe |
| 20 | + </Popup> |
| 21 | + </Marker> |
| 22 | + </MapContainer> |
| 23 | + </div> |
| 24 | + <div className="button-container"> |
| 25 | + <Button style={buttonStyle} variant="primary">Near Me</Button> |
| 26 | + <Button style={buttonStyle} variant="primary">On the Way To</Button> |
| 27 | + <Button style={buttonStyle} variant="primary">Around Destination</Button> |
21 | 28 | </div> |
| 29 | + </div> |
22 | 30 | ) |
23 | 31 | } |
24 | 32 |
|
|
0 commit comments