-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmaps.html
More file actions
29 lines (28 loc) · 1020 Bytes
/
maps.html
File metadata and controls
29 lines (28 loc) · 1020 Bytes
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
28
29
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="leaflet.css">
<script src="leaflet.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#map{
position: relative;
top:0;bottom: 0;left: 0;right: 0;
width: 50%;
height: 20vh;
}
</style>
</head>
<body>
<div id="map">
<script>
var map = L.map('map').setView([0,0], 1);
L.tileLayer('https://api.maptiler.com/maps/streets/{z}/{x}/{y}.png?key=dQEBopAmJS4uqE2dYEma' ,{
attribution:'<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>'
,}).addTo(map);
var marker = L.marker([25.8817874,85.1745621]).addTo(map)
</script>
</body>
</html>