Leaflet/debug/map/wms-marble.html

30 lines
710 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" />
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
2017-02-04 23:17:51 +08:00
<script>
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: 0,
maxZoom: 5
2011-05-31 00:20:23 +08:00
});
map.addLayer(bluemarble).fitWorld();
</script>
</body>
</html>