2016-04-02 22:13:56 +08:00
|
|
|
---
|
|
|
|
layout: tutorial_frame
|
|
|
|
title: WMS example
|
|
|
|
---
|
|
|
|
<script type='text/javascript'>
|
|
|
|
|
|
|
|
var map = L.map('map', {
|
|
|
|
center: [-17, -67],
|
|
|
|
zoom: 3
|
|
|
|
});
|
|
|
|
|
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: 'ne:ne'
|
|
|
|
}).addTo(map);
|
|
|
|
|
|
|
|
</script>
|