-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (62 loc) · 2.65 KB
/
index.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Türkiye İller Dilim Orta Meridyenleri</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="map"></div>
<!-- Sağ üst köşeye yerleştirilmiş custom div -->
<div class="custom-div">
<h3>Muhammet Ahmet ARACI</h3>
<img src="photo.png" alt="Profile Image" class="profile-image" />
<div class="social-icons">
<a href="https://www.linkedin.com/in/ahmet-araci/" target="_blank"><img src="linkedin-icon.png"
alt="LinkedIn" /></a>
<a href="/~https://github.com/ahmetaraci/" target="_blank"><img src="github-icon.png" alt="GitHub" /></a>
</div>
</div>
<!-- En üst ortada yer alan bar -->
<div class="top-bar">
<span class="top-bar-text">TÜRKİYE İLLER DİLİM ORTA MERİDYENLERİ</span>
</div>
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script src="script.js"></script>
<script>fetch("tr.json")
.then((response) => response.json())
.then((data) => {
L.geoJSON(data, {
onEachFeature: function (feature, layer) {
if (feature.properties) {
var popupContent =
"<p><b>Şehir:</b> " +
feature.properties.name +
"</p>" +
"<p><b>3˚ DOM:</b> " +
feature.properties.dom_3_derece +
"</p>" +
"<p><b>6˚ DOM:</b> " +
feature.properties.dom_6_derece +
"</p>";
layer.bindPopup(popupContent);
}
},
}).addTo(map);
});
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WYGBN91KQ8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-WYGBN91KQ8');
</script>
</body>
</html>