Skip to content

Commit

Permalink
change map
Browse files Browse the repository at this point in the history
  • Loading branch information
zhamic7 committed Jun 27, 2024
1 parent 8987efb commit d808f14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions week1/js/init.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Initialize the map
const map = new maplibregl.Map({
container: 'map', // container ID
style: 'https://api.maptiler.com/maps/streets/style.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL', // Your style URL
center: [-118.444, 34.0709], // Starting position [lng, lat]
style: 'https://api.maptiler.com/maps/streets/style.json?key=Oo1CDYXThbnZ95OKpxHl', // Your style URL
center: [-121.9622, 37.5489], // Starting position [lng, lat]
zoom: 15 // Starting zoom level
});

// Add a marker to the map
new maplibregl.Marker()
.setLngLat([-118.444, 34.0709])
.setLngLat([-121.9622, 37.5489])
.setPopup(new maplibregl.Popup({ offset: 25 }) // Add popups
.setHTML('Math Sciences 4328 aka the Technology Sandbox<br> is the lab where I used to work in '))
.setHTML('Lake Elizabeth -- the local lake + city park!'))
.addTo(map);
2 changes: 1 addition & 1 deletion week1/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ img {

#map {
grid-area: map;
height: 80vh;
height: 90vh;
}

footer {
Expand Down

0 comments on commit d808f14

Please sign in to comment.