kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
				
				
				
			Remove streets, dark and light styles due to copyright issues
							rodzic
							
								
									b723207e03
								
							
						
					
					
						commit
						722f96697f
					
				| 
						 | 
				
			
			@ -9,7 +9,7 @@
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
.map-button {
 | 
			
		||||
  width: 20%;
 | 
			
		||||
  width: 50%;
 | 
			
		||||
  height: 50px;
 | 
			
		||||
  background-color: #44A886;
 | 
			
		||||
  color: white;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										10
									
								
								js/maps.js
								
								
								
								
							
							
						
						
									
										10
									
								
								js/maps.js
								
								
								
								
							| 
						 | 
				
			
			@ -17,17 +17,11 @@ document.addEventListener("DOMContentLoaded", function() {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	var basic = document.getElementById("vector-basic");
 | 
			
		||||
	var streets = document.getElementById("vector-streets");
 | 
			
		||||
	var dark = document.getElementById("vector-dark");
 | 
			
		||||
	var light = document.getElementById("vector-light");
 | 
			
		||||
	if(bright && basic && streets && dark && light) {
 | 
			
		||||
		var styles = ["#bright", "#basic", "#streets", "#dark", "#light"];
 | 
			
		||||
	if(bright && basic) {
 | 
			
		||||
		var styles = ["#bright", "#basic"];
 | 
			
		||||
		var styleUrl = "https://raw.githubusercontent.com/osm2vectortiles/mapbox-gl-styles/master/styles/";
 | 
			
		||||
		addOnClickEventListener(bright, vectorMap, styleUrl + "bright-v9-cdn.json", 0, styles);
 | 
			
		||||
		addOnClickEventListener(basic, vectorMap, styleUrl + "basic-v9-cdn.json", 1, styles);
 | 
			
		||||
		addOnClickEventListener(streets, vectorMap, styleUrl + "streets-v9-cdn.json", 2, styles);
 | 
			
		||||
		addOnClickEventListener(dark, vectorMap, styleUrl + "dark-v9-cdn.json", 3, styles);
 | 
			
		||||
		addOnClickEventListener(light, vectorMap, styleUrl + "light-v9-cdn.json", 4, styles);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// instantiate map clipboard
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,10 +15,7 @@ published: true
 | 
			
		|||
 | 
			
		||||
<div id="map-container">
 | 
			
		||||
	<button id="vector-bright" class="map-button">Bright</button
 | 
			
		||||
	><button id="vector-basic" class="map-button">Basic</button
 | 
			
		||||
	><button id="vector-streets" class="map-button">Streets</button
 | 
			
		||||
	><button id="vector-dark" class="map-button">Dark</button
 | 
			
		||||
	><button id="vector-light" class="map-button">Light</button>
 | 
			
		||||
	><button id="vector-basic" class="map-button">Basic</button>
 | 
			
		||||
</div>
 | 
			
		||||
<div id="vector-map" class="map-preview"></div>
 | 
			
		||||
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.18.0/mapbox-gl.js'></script>
 | 
			
		||||
| 
						 | 
				
			
			@ -30,15 +27,6 @@ published: true
 | 
			
		|||
	<div id="basic">
 | 
			
		||||
		<script src="https://gist.github.com/manuelroth/2a20607d02b71b29d02a1963a7e12e6e.js"></script>
 | 
			
		||||
	</div>
 | 
			
		||||
	<div id="streets">
 | 
			
		||||
		<script src="https://gist.github.com/manuelroth/d0e37ef2e8f8e7080317c779044979d7.js"></script>
 | 
			
		||||
	</div>
 | 
			
		||||
	<div id="dark">
 | 
			
		||||
		<script src="https://gist.github.com/manuelroth/80cb27ff4eecd822661baf3abeab6150.js"></script>
 | 
			
		||||
	</div>
 | 
			
		||||
	<div id="light">
 | 
			
		||||
		<script src="https://gist.github.com/manuelroth/fdb546e2abf91ec1b3b3f9b7b253aec3.js"></script>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
<div id="map-clipboard">
 | 
			
		||||
	<button class="map-clipboard-button" onclick="showCopiedHint()">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue