Skip to content

Commit 97bd260

Browse files
committed
Added bootstrap buttons
1 parent 3ccb959 commit 97bd260

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

src/app/src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import './App.css'
22
import Map from './Map/Map'
3+
import Alert from 'react-bootstrap/Alert';
34

45

56

src/app/src/Map/Map.tsx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11
import './Map.css'
22
import { MapContainer, TileLayer, Marker, Popup } from 'react-leaflet'
33
import 'leaflet/dist/leaflet.css'
4+
import Button from 'react-bootstrap/Button';
45

56

67
function Map() {
78

89
return (
9-
<div className="leaflet-container">
10-
<MapContainer center={[39.952584, -75.165222]} zoom={13} scrollWheelZoom={true}>
11-
<TileLayer
12-
attribution='&copy; <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='&copy; <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

0 commit comments

Comments
 (0)