update mapbox api
This commit is contained in:
parent
41f64f4e26
commit
a07caf5b06
2 changed files with 5 additions and 4 deletions
|
@ -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/v2.2.2/mapbox.js" type="text/javascript"></script>
|
<script src="https://api.mapbox.com/mapbox.js/v3.3.1/mapbox.js" type="text/javascript"></script>
|
||||||
<script src="/static/js/app.js?0" type="text/javascript"></script>
|
<script src="/static/js/app.js?0" type="text/javascript"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.css" />
|
<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/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>
|
||||||
|
|
|
@ -164,8 +164,9 @@ window.app = (function() {
|
||||||
if (!marker) {
|
if (!marker) {
|
||||||
if (!map) {
|
if (!map) {
|
||||||
L.mapbox.accessToken = config.mapboxAccessToken;
|
L.mapbox.accessToken = config.mapboxAccessToken;
|
||||||
map = L.mapbox.map('map', 'mapbox.streets')
|
map = L.mapbox.map('map')
|
||||||
.setView(coords, zoomLevel);
|
.setView(coords, zoomLevel)
|
||||||
|
.addLayer(L.mapbox.styleLayer('mapbox://styles/mapbox/streets-v11'));
|
||||||
}
|
}
|
||||||
marker = L.marker(coords, options)
|
marker = L.marker(coords, options)
|
||||||
.bindPopup(options.title)
|
.bindPopup(options.title)
|
||||||
|
|
Loading…
Reference in a new issue