2016-04-02 22:13:56 +08:00
|
|
|
---
|
|
|
|
layout: tutorial_frame
|
|
|
|
title: WMS example
|
|
|
|
---
|
|
|
|
<script type='text/javascript'>
|
|
|
|
|
|
|
|
var map = L.map('map', {
|
|
|
|
center: [0, 0],
|
|
|
|
zoom: 1,
|
|
|
|
crs: L.CRS.EPSG4326
|
|
|
|
});
|
|
|
|
|
2017-08-14 17:29:53 +08:00
|
|
|
var wmsLayer = L.tileLayer.wms('https://demo.boundlessgeo.com/geoserver/ows?', {
|
2016-04-02 22:13:56 +08:00
|
|
|
layers: 'nasa:bluemarble'
|
|
|
|
}).addTo(map);
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|