File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import './App.css'
22import Map from './Map/Map'
3+ import Alert from 'react-bootstrap/Alert' ;
34
45
56
Original file line number Diff line number Diff line change 11import './Map.css'
22import { MapContainer , TileLayer , Marker , Popup } from 'react-leaflet'
33import 'leaflet/dist/leaflet.css'
4+ import Button from 'react-bootstrap/Button' ;
45
56
67function Map ( ) {
78
89 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 >
2123 </ div >
24+ < Button style = { { backgroundColor :"#ADD8E6" } } variant = "primary" > Primary</ Button > { ' ' }
25+ < Button style = { { backgroundColor :"#ADD8E6" } } variant = "secondary" > Secondary</ Button >
26+ < Button style = { { backgroundColor :"#ADD8E6" } } variant = "success" > Success</ Button >
27+ </ div >
2228 )
2329}
2430
You can’t perform that action at this time.
0 commit comments