Leaflet/debug/map/wms-marble.html

31 lines
802 B
HTML
Raw Normal View History

2011-05-31 00:20:23 +08:00
<!DOCTYPE html>
<html>
<head>
<title>Leaflet debug page</title>
<link rel="stylesheet" href="../../dist/leaflet.css" />
2011-05-31 00:20:23 +08:00
<link rel="stylesheet" href="../css/screen.css" />
2013-01-31 18:29:39 +08:00
<script type="text/javascript" src="../../build/deps.js"></script>
2011-06-02 22:07:56 +08:00
<script src="../leaflet-include.js"></script>
2011-05-31 00:20:23 +08:00
</head>
<body>
2011-05-31 05:37:48 +08:00
<div id="map" style="width: 1024px; height: 440px; border: 1px solid #ccc"></div>
2011-05-31 00:20:23 +08:00
<script type="text/javascript">
var map = new L.Map('map', {crs: L.CRS.EPSG4326});
2011-05-31 00:20:23 +08:00
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
2011-05-31 00:20:23 +08:00
});
map.addLayer(bluemarble).fitWorld();
</script>
</body>
</html>