hacks/osmstatic/index.html

38 lines
769 B
HTML
Raw Normal View History

2020-02-15 21:38:59 +00:00
<!DOCTYPE html>
<html style="height:100%;margin:0;padding:0;">
<!--
setup per
https://switch2osm.org/serving-tiles/using-a-docker-container/
-->
<title>map</title>
<meta charset="utf-8">
<link rel="stylesheet" href="./leaflet.css" />
<script src="./leaflet.js"></script>
<script src="./leaflet-hash.js"></script>
<style type="text/css">
.leaflet-tile-container { pointer-events: auto; }
</style>
</head>
<body style="height:100%;margin:0;padding:0;">
<div id="map" style="height:100%"></div>
<script>
//<![CDATA[
var tileserver = 'http://127.0.0.1';
var map = L.map('map').setView([40.36629, 49.83335], 18);
L.tileLayer(tileserver + '/tile/{z}/{x}/{y}.png', {
attribution: 'OSM'
}).addTo(map);
var hash = L.hash(map)
//]]>
</script>
</body>
</html>