Update style links

pull/319/head
Manuel Roth 2016-05-13 20:03:50 +02:00
rodzic c3fe4d88f3
commit db5b5582b1
3 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -57,7 +57,7 @@ for visually examining osm2vectortiles.
var zoom = parseFloat(div.getAttribute("data-zoom"));
var vectorMap = new mapboxgl.Map({
container: div,
style: 'https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-js-example/master/bright-v9.json',
style: 'https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-styles/master/styles/bright-v9-cdn.json',
center: [lon, lat],
zoom: zoom
});

Wyświetl plik

@ -20,7 +20,7 @@ if (!mapboxgl.supported()) {
} else {
var map = new mapboxgl.Map({
container: 'map',
style: 'https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-js-example/master/bright-v9.json',
style: 'https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-styles/master/styles/bright-v9-cdn.json',
center: [8.54137, 47.36840],
zoom: 14.66
});

Wyświetl plik

@ -25,7 +25,7 @@ published: true
} else {
var vectorMap = new mapboxgl.Map({
container: 'vector-map',
style: 'https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-js-example/master/bright-v9.json',
style: 'https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-styles/master/styles/bright-v9-cdn.json',
center: [8.5456, 47.3739],
zoom: 11
}).addControl(new mapboxgl.Navigation());
@ -36,7 +36,7 @@ published: true
bright.onclick = function(e) {
e.preventDefault();
e.stopPropagation();
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-js-example/master/bright-v9.json');
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-styles/master/styles/bright-v9-cdn.json');
document.querySelector("#bright").style.display = "block";
document.querySelector("#basic").style.display = "none";
document.querySelector("#streets").style.display = "none";
@ -47,7 +47,7 @@ published: true
basic.onclick = function(e) {
e.preventDefault();
e.stopPropagation();
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-js-example/master/basic-v9.json');
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-styles/master/styles/basic-v9-cdn.json');
document.querySelector("#bright").style.display = "none";
document.querySelector("#basic").style.display = "block";
document.querySelector("#streets").style.display = "none";
@ -58,7 +58,7 @@ published: true
streets.onclick = function(e) {
e.preventDefault();
e.stopPropagation();
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-js-example/master/streets-v9.json');
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-styles/master/styles/streets-v9-cdn.json');
document.querySelector("#bright").style.display = "none";
document.querySelector("#basic").style.display = "none";
document.querySelector("#streets").style.display = "block";
@ -69,7 +69,7 @@ published: true
dark.onclick = function(e) {
e.preventDefault();
e.stopPropagation();
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-js-example/master/dark-v9.json');
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-styles/master/styles/dark-v9-cdn.json');
document.querySelector("#bright").style.display = "none";
document.querySelector("#basic").style.display = "none";
document.querySelector("#streets").style.display = "none";
@ -80,7 +80,7 @@ published: true
light.onclick = function(e) {
e.preventDefault();
e.stopPropagation();
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-js-example/master/light-v9.json');
vectorMap.setStyle('https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-styles/master/styles/light-v9-cdn.json');
document.querySelector("#bright").style.display = "none";
document.querySelector("#basic").style.display = "none";
document.querySelector("#streets").style.display = "none";