Closed GregStephen closed 5 years ago
As a user, when I open the website there should be a map that displays on the page
WHEN the page loads THEN a map will show up of the page
Map
Map.scss
.Map
this.map = L.map('map', { zoom: 11, layers: [ L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors', }), ], });
<div className="Map" id="map"></div>
User Story
As a user, when I open the website there should be a map that displays on the page
AC
WHEN the page loads THEN a map will show up of the page
Development
Map
componentMap.scss
give.Map
a height.this.map = L.map('map', { zoom: 11, layers: [ L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors', }), ], });
<div className="Map" id="map"></div>