-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaflet.html
27 lines (20 loc) · 854 Bytes
/
leaflet.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
!Doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Schools</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
</head>
<body>
<div id="mapid" style = "height:1000px;width:100%; "></div>
<script>
var mymap = L.map('mapid').setView([37.7749, -122.4194], 13);
L.tileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'
}).addTo(mymap);
var marker = L.marker([37.7219, -122.4782]).addTo(mymap);
marker.bindPopup("<b>Hello world!</b><br>I am a popup.").openPopup();
</script>
</body>