kopia lustrzana https://github.com/kartoza/docker-osm
28 wiersze
835 B
HTML
28 wiersze
835 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 osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png?');
|
|
var baseMaps = {
|
|
"OSM-Tiles": osm
|
|
};
|
|
var wms = L.tileLayer.wms("http://localhost:8198/cgi-bin/qgis_mapserv.fcgi?", {
|
|
map: '/web/project.qgs',
|
|
layers: 'project',
|
|
format: 'image/png',
|
|
transparent: true,
|
|
attribution: "OpenStreetMap"
|
|
});
|
|
var overlays = {
|
|
"OSM-Docker": wms
|
|
};
|
|
L.control.layers(baseMaps, overlays).addTo(map);
|
|
</script></body></html>
|