block by wboykinm 4617266

Reference Overlay Compare-O-Tron

Full Screen

index.html

<!DOCTYPE html>
<html>
<head>
  <title>Reference overlay comparison</title>
 
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
 
	<link rel="stylesheet" href="//geosprocket.com/assets/leaflet/dist/leaflet.css" />
	<!--[if lte IE 8]><link rel="stylesheet" href="//geosprocket.com/assets/leaflet/dist/leaflet.ie.css" /><![endif]-->
 
	<!--<script src="//geosprocket.com/assets/leaflet/dist/leaflet.js"></script>-->
	<script src="//libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script>
	<script src="//geosprocket.com/assets/stamen/leaflet-hash.js"></script>
 
	<style>
		body {
			padding: 0;
			margin: 0;
		}
		html, body, #map {
			height: 100%;
		}
	</style>
</head>
<body>
	<div id="map"></div>
 
	<script>
		var night = L.tileLayer('//a.tiles.mapbox.com/v3/landplanner.blackmarble2/{z}/{x}/{y}.png', {
			maxZoom: 9,
			attribution: 'Map data &copy; <a href="//openstreetmap.org">OpenStreetMap</a> contributors, <a href="//creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
		}),
		
		sat = L.tileLayer('//a.tiles.mapbox.com/v3/landplanner.map-f887z6pg/{z}/{x}/{y}.png', {
			maxZoom: 18,
			attribution: 'Map data &copy; 2012 <a href="//nasa.gov">NASA</a>'
    		}),
    		
    		terrain = L.tileLayer('//a.tiles.mapbox.com/v3/landplanner.map-azfnqdsx/{z}/{x}/{y}.png', {
			maxZoom: 18,
			attribution: 'Map data &copy; 2012 <a href="//nasa.gov">NASA</a>'
    		}),
    
    		ref1 = L.tileLayer('//b.tile.stamen.com/toner-hybrid/{z}/{x}/{y}.png', {
  		maxZoom: 19,
			attribution: 'Map data &copy; <a href="//openstreetmap.org">OpenStreetMap</a> contributors, <a href="//creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
		}),
		
		ref2 = L.tileLayer('//a.tiles.mapbox.com/v3/landplanner.map-6loa9k8g/{z}/{x}/{y}.png', {
			maxZoom: 19,
			attribution: 'Map data &copy; <a href="//openstreetmap.org">OpenStreetMap</a> contributors, <a href="//creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
		}),

    ref3 = L.tileLayer('//acetate.geoiq.com/tiles/acetate-fg/{z}/{x}/{y}.png', {
  		maxZoom: 19,
			attribution: 'Map data &copy; <a href="//openstreetmap.org">OpenStreetMap</a> contributors, <a href="//creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
		})
		
		var map = L.map('map', { 
        		zoomControl: true,
        		center: [24.427013, -79.091309],
        		zoom: 7,
        		layers: [night, ref1]
 
      		});
 		var hash = new L.Hash(map);
		var baseLayers = {
   			 "Black Marble": night,
  			 "Satellite View": sat,
  			 "Terrain": terrain
		};
 
		var overlays = {
			"Stamen Reference": ref1,
      "Mapbox Reference": ref2,
      "Acetate Reference": ref3
		};
 
		L.control.layers(baseLayers, overlays).addTo(map);
		
		
		</script>
</body>
</html>