-
Notifications
You must be signed in to change notification settings - Fork 24
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
1 parent
b416048
commit 5241a2c
Showing
3 changed files
with
42 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"> | ||
<link rel="stylesheet" href="style.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>POI</title> | ||
</head> | ||
<body> | ||
|
||
<div id="map"> | ||
|
||
</div> | ||
|
||
|
||
<script src = "https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script> | ||
<script src="script.js"></script> | ||
|
||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
let mapOptions = { | ||
center:[40.75703,-73.98597], | ||
zoom:12 | ||
} | ||
|
||
let map = new L.map('map', mapOptions); | ||
|
||
let layer = new L.TileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'); | ||
map.addLayer(layer); | ||
|
||
// let marker = new L.Marker([40.75703,-73.98597]); | ||
// marker.addTo(map); | ||
|
||
|
||
const marker = L.marker([40.75703,-73.98597]).addTo(map) | ||
.bindPopup('<b>Time Square</b><br />Famous for new year celebrations.').openPopup(); | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#map{ | ||
width:100%; | ||
height:100vh; | ||
} |