kopia lustrzana https://github.com/kartoza/docker-osm
25 wiersze
794 B
HTML
25 wiersze
794 B
HTML
![]() |
<!DOCTYPE html><html><head>
|
||
|
<title>Docker OSM</title>
|
||
|
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
|
||
|
<style>
|
||
|
body { padding: 0; margin: 0; }
|
||
|
html, body, #map { height: 100%; width: 100%; }
|
||
|
</style></head><body>
|
||
|
<div id="map"></div>
|
||
|
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
|
||
|
<script>
|
||
|
var map = L.map('map').setView([0, 0], 3);
|
||
|
var wms = L.tileLayer.wms("http://localhost:8198/cgi-bin/qgis_mapserv.fcgi?", {
|
||
|
map: '/web/project.qgs',
|
||
|
layers: 'docker',
|
||
|
format: 'image/png',
|
||
|
transparent: true,
|
||
|
attribution: "OpenStreetMap"
|
||
|
});
|
||
|
var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png?');
|
||
|
var baseMaps = {
|
||
|
"Docker": wms,
|
||
|
"OSM": osm
|
||
|
};
|
||
|
L.control.layers(baseMaps).addTo(map);
|
||
|
</script></body></html>
|