-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (92 loc) · 3.95 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" type="text/css" href="css/qgis2web.css">
<link rel="stylesheet" href="css/MarkerCluster.css" />
<link rel="stylesheet" href="css/MarkerCluster.Default.css" />
<style>
html, body, #map {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
</style>
<script src="jquery/jquery-1.9.1.js"></script>
<script src="jquery/jquery-ui-1.10.3.custom.min.js"></script>
<link rel="stylesheet" href="jquery/jquery-ui-1.10.3.custom.min.css" />
<script src="js/qgis2web_expressions.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="js/leaflet-heat.js"></script>
<script src="js/leaflet.rotatedMarker.js"></script>
<script src="js/OSMBuildings-Leaflet.js"></script>
<script src="js/leaflet-hash.js"></script>
<script src="js/Autolinker.min.js"></script>
<script src="js/leaflet.markercluster.js"></script>
<link rel="stylesheet" href="opacity/Control.Opacity.css" />
<script src="opacity/Control.Opacity.js"></script>
<title> Edirne </title>
</head>
<body>
<div id="map">
</div>
<script>
L.ImageOverlay.include({
getBounds: function () {
return this._bounds;
}
});
var map = L.map('map', {
zoomControl:true, maxZoom:28, minZoom:1
}).fitBounds([[41.6112845717,26.456126605],[41.7362732411,26.6849683903]]);
var hash = new L.Hash(map);
map.attributionControl.addAttribution('<a href="https://github.com/tomchadwin/qgis2web" target="_blank">qgis2web</a>');
var bounds_group = new L.featureGroup([]);
var basemap0 = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© <a href="https://openstreetmap.org">OpenStreetMap</a> contributors,<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',
maxZoom: 28
});
basemap0.addTo(map);
function setBounds() {
}
function geoJson2heat(geojson, weight) {
return geojson.features.map(function(feature) {
return [
feature.geometry.coordinates[1],
feature.geometry.coordinates[0],
feature.properties[weight]
];
});
}
var img_1854 = 'data/1854EdirneSHDGRGR6MR18410B2250001Hsmallmodified20.png';
var img_bounds_1854 = [[41.6354614508,26.5045810809],[41.7292096177,26.600216558]];
var overlay_1854 = new L.imageOverlay(img_1854, img_bounds_1854).setOpacity(0.5);
bounds_group.addLayer(overlay_1854);
map.addLayer(overlay_1854);
var title = new L.Control();
title.onAdd = function (map) {
this._div = L.DomUtil.create('div', 'info');
this.update();
return this._div;
};
title.update = function () {
this._div.innerHTML = '<h2> Edirene </h2>';
};
title.addTo(map);
setBounds();
var higherOpacity = new L.Control.higherOpacity();
map.addControl(higherOpacity);
var lowerOpacity = new L.Control.lowerOpacity();
map.addControl(lowerOpacity);
var opacitySlider = new L.Control.opacitySlider();
map.addControl(opacitySlider);
higherOpacity.setOpacityLayer(overlay_1854);
</script>
</body>
</html>