Leaflet/debug/map/wms-marble.html

30 lines
826 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" />
<!--[if lte IE 8]><link rel="stylesheet" href="../../dist/leaflet.ie.css" /><![endif]-->
<link rel="stylesheet" href="../css/screen.css" />
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,
});
map.addLayer(bluemarble).fitWorld();
</script>
</body>
</html>