use openstreetmap
This commit is contained in:
parent
a07caf5b06
commit
60aadcb76d
3 changed files with 9 additions and 6 deletions
|
@ -8,6 +8,7 @@
|
||||||
#users {
|
#users {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
.person {
|
.person {
|
||||||
border: 2px solid rgb(255, 255, 255);
|
border: 2px solid rgb(255, 255, 255);
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<title></title>
|
<title></title>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<script>var config = {};</script>
|
<script>var config = {};</script>
|
||||||
<script src="https://api.mapbox.com/mapbox.js/v3.3.1/mapbox.js" type="text/javascript"></script>
|
<script src="/static/js/leaflet.js"></script>
|
||||||
<script src="/static/js/app.js?0" type="text/javascript"></script>
|
<script src="/static/js/app.js?0"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox.js/v3.3.1/mapbox.css" />
|
<link rel="stylesheet" type="text/css" href="/static/css/leaflet.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="/static/css/app.css" />
|
<link rel="stylesheet" type="text/css" href="/static/css/app.css" />
|
||||||
<meta name="google" value="notranslate"/>
|
<meta name="google" value="notranslate"/>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -163,10 +163,12 @@ window.app = (function() {
|
||||||
};
|
};
|
||||||
if (!marker) {
|
if (!marker) {
|
||||||
if (!map) {
|
if (!map) {
|
||||||
L.mapbox.accessToken = config.mapboxAccessToken;
|
map = L.map('map')
|
||||||
map = L.mapbox.map('map')
|
|
||||||
.setView(coords, zoomLevel)
|
.setView(coords, zoomLevel)
|
||||||
.addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));
|
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||||
|
maxZoom: 19,
|
||||||
|
attribution: '© OpenStreetMap'
|
||||||
|
}).addTo(map)
|
||||||
}
|
}
|
||||||
marker = L.marker(coords, options)
|
marker = L.marker(coords, options)
|
||||||
.bindPopup(options.title)
|
.bindPopup(options.title)
|
||||||
|
|
Loading…
Reference in a new issue