1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/osm-vector-maps/templates/index.html

58 lines
2.2 KiB
HTML
Raw Normal View History

2019-03-18 04:45:33 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>Osm-Vector Splash Page</title>
2019-03-18 04:45:33 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2019-04-08 23:14:48 +00:00
<!-- Bootstrap -->
<link href="/common/css/bootstrap.min.css" rel="stylesheet">
2019-04-03 19:11:32 +00:00
<script src='/common/js/jquery.min.js'></script>
2019-03-18 04:45:33 +00:00
</head>
<body>
<h2>Vector Maps Test Page -- Use The Admin Console to Download a Selected Region</h2>
<p>The IIAB vector maps are based upon OpenStreetMap Data. Each map has general geographic information that covers the <b>whole world </b>with a resolution of about 5 KM. The detailed regions provide data about items that are 5 meters apart. </p>
2019-03-18 04:45:33 +00:00
<div class="row">
<div class="col-sm-12"><a href="/admin"><button id="INST-MODS" type="button" class="btn btn-lg btn-primary">Go To Admin Console</button></a></div>
2019-03-18 04:45:33 +00:00
</div>
<div id="osmRegionSelection" >
<style>
#map-container{
background-color: #b2d3f8;
float: right;
width: 70%;
right: 10px;
height: 500px;
}
body {
padding: 40px;
}
2019-03-18 04:45:33 +00:00
</style>
<div id="map-container"></div>
</div>
<div id='regionlist'>placeholdr</div>
</div> <!-- End instOsmRegion Submenu Option Pane -->
<script>
function readableSize(kbytes) {
if (kbytes == 0)
return "0";
var bytes = 1024 * kbytes;
var s = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'];
var e = Math.floor(Math.log(bytes) / Math.log(1024));
return (bytes / Math.pow(1024, e)).toFixed(2) + " " + s[e];
}
</script>
2019-05-06 14:23:16 +00:00
<script src="/osm-vector-maps/maplist/assets/map_functions.js"></script>
2019-04-03 19:11:32 +00:00
<script>
window.$ = window.$ = jQuery;
2019-05-06 04:18:41 +00:00
$.when(readMapCatalog()).done(function() {
2019-04-03 19:11:32 +00:00
renderRegionList(false);
});
</script>
2019-05-06 14:23:16 +00:00
<script type="text/javascript" src="/osm-vector-maps/maplist/main.js"></script></body>
2019-03-18 04:45:33 +00:00
</html>