latest
This commit is contained in:
37
osmstatic/index.html
Normal file
37
osmstatic/index.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user