Sha256: 6c970912674a30613daeb509055ee65cfd7337fc4243c10256f7534b6e8fff78
Contents?: true
Size: 885 Bytes
Versions: 3
Compression:
Stored size: 885 Bytes
Contents
--- layout: tutorial_frame title: WMS example --- <script type='text/javascript'> var map = L.map('map', { center: [-17, -67], zoom: 3 }); var basemaps = { Countries: L.tileLayer.wms('http://demo.opengeo.org/geoserver/ows?', { layers: 'ne:ne_10m_admin_0_countries' }), Boundaries: L.tileLayer.wms('http://demo.opengeo.org/geoserver/ows?', { layers: 'ne:ne_10m_admin_0_boundary_lines_land' }), 'Countries, then boundaries': L.tileLayer.wms('http://demo.opengeo.org/geoserver/ows?', { layers: 'ne:ne_10m_admin_0_countries,ne:ne_10m_admin_0_boundary_lines_land' }), 'Boundaries, then countries': L.tileLayer.wms('http://demo.opengeo.org/geoserver/ows?', { layers: 'ne:ne_10m_admin_0_boundary_lines_land,ne:ne_10m_admin_0_countries' }) }; L.control.layers(basemaps, {}, {collapsed: false}).addTo(map); basemaps.Countries.addTo(map); </script>
Version data entries
3 entries across 3 versions & 1 rubygems