-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLageplan.html
73 lines (57 loc) · 2.28 KB
/
Lageplan.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
---
layout: nil
permalink: /lageplan/
title: Lageplan
description: "The Lageplan from the Erlenweg"
---
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href="/assets/css//leaflet/leaflet_custom.css" />
</head>
<body>
<div id="map"></div>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script>
var map = L.map('map').setView([47.82110, 10.03507], 14);
L.tileLayer('https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="http://mapbox.com">Mapbox</a>',
id: 'examples.map-i86knfo3'
}).addTo(map);
L.marker([47.82110, 10.03507]).addTo(map)
.bindPopup("<b>aia</b> - büro für gestaltung<br />Erlenweg 11<br />88299 Leutkirch").openPopup();
var popup = L.popup();
function onMapClick(e) {
popup
.setLatLng(e.latlng)
.setContent("Sie haben auf die Karte geklickt bei<br />" + e.latlng.toString())
.openOn(map);
}
map.on('click', onMapClick);
</script>
<!--<script>47.82110/10.03507
L.tileLayer('https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png', {
maxZoom: 20,
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="http://mapbox.com">Mapbox</a>',
id: 'examples.map-i86knfo3'
}).addTo(map);
// You can add the control via the settings object
var map = L.map('map', {
zoomsliderControl: false,
zoomControl: true,
layers: [layer]
}).setView([47.8264733, 10.0988024], 14);
var marker = L.marker([47.82438, 10.09893]).addTo(map)
.bindPopup("<b>Ali Baba Tajine</b><br />Am Weidenbach 30<br />88299 Ausnang").openPopup();
// You can also add it manually:47.82438/10.09893
// map.addControl(new L.Control.Zoomslider());
</script>-->
</body>
</html>