-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ img { | |
|
||
#map { | ||
grid-area: map; | ||
height: 80vh; | ||
height: 90vh; | ||
} | ||
|
||
footer { | ||
|