-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (40 loc) · 1.55 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
<!doctype html>
<html lang="de-de">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" >
<meta charset="utf-8">
<title dir="ltr">osmitude - your google latitude position on openstreetmap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="leaflet/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="leaflet/leaflet.ie.css" />
<![endif]-->
<style type="text/css">
* {
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<div id="map"></div>
<script src="leaflet/leaflet.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript">
$(function (){
$("#map").width($(window).width());
$("#map").height($(window).height());// - 150);
$(window).resize(function() {
$("#map").width($(window).width());
$("#map").height($(window).height());// - 150);
});
var map = new L.Map('map');
//var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
var osmUrl = 'http://{s}tile.cloudmade.com/4a9852ba82264eb9a16c531fd53e70ed/999/256/{z}/{x}/{y}.png',
osmAttribution = 'leaflet/cloudmade',
osm = new L.TileLayer(osmUrl, {maxZoom: 18, attribution: osmAttribution, subdomains: ["a.", "b.", "c.", ""]});
map.setView(new L.LatLng(51.338, 12.375), 13).addLayer(osm);
});
</script>
</body>
</html>