aboutsummaryrefslogtreecommitdiffstats
path: root/extlib/leaflet/debug/map/wms-marble.html
blob: fd5443abcd67abce8afd66bbe1b14ce9cc08b9f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
	<title>Leaflet debug page</title>

	<link rel="stylesheet" href="../../dist/leaflet.css" />
	<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
	
	<link rel="stylesheet" href="../css/screen.css" />
	
	<script src="../leaflet-include.js"></script>
</head>
<body>

	<div id="map" style="width: 1024px; height: 440px; border: 1px solid #ccc"></div>

	<script type="text/javascript">
		var map = new L.Map('map', {crs: L.CRS.EPSG4326});
	
		var bluemarble = new L.TileLayer.WMS("http://maps.opengeo.org/geowebcache/service/wms", {
			layers: 'bluemarble',
			attribution: "Data &copy; NASA Blue Marble, image service by OpenGeo",
			minZoom: 2,
			maxZoom: 5,
		});

		map.addLayer(bluemarble).fitWorld();
	</script>
</body>
</html>