2018-07-19 11:01:31 -04:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
html, body {
|
2018-07-21 15:22:32 -04:00
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
2018-07-19 11:01:31 -04:00
|
|
|
}
|
|
|
|
.map {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-07-21 15:22:32 -04:00
|
|
|
.ol-control.layer-toggles {
|
|
|
|
top: 0.5em;
|
|
|
|
right: 0.5em;
|
|
|
|
background-color: rgba(70, 115, 164, 0.7);
|
|
|
|
color: #eee;
|
2018-07-23 17:09:06 -04:00
|
|
|
white-space: nowrap;
|
|
|
|
max-height: calc(100vh - 1em);
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
.layer-toggles > div {
|
|
|
|
margin: 0.5em;
|
|
|
|
margin-right: 1em;
|
2018-07-21 15:22:32 -04:00
|
|
|
}
|
|
|
|
.ol-control.layer-toggles:hover {
|
|
|
|
background-color: rgba(0,60,136,0.7);
|
|
|
|
}
|
2018-07-23 17:09:06 -04:00
|
|
|
.layer-toggles > div > label {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.expand {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.expand + span::before {
|
|
|
|
content: '\25B6';
|
|
|
|
}
|
|
|
|
.expand:checked + span::before {
|
|
|
|
content: '\25BC';
|
|
|
|
}
|
|
|
|
.expand ~ .collapsible-content {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.expand:checked ~ .collapsible-content {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.collapsible-content {
|
|
|
|
margin-left: 0.8em;
|
|
|
|
}
|
|
|
|
.collapsible-content label {
|
2018-07-21 15:22:32 -04:00
|
|
|
display: block;
|
|
|
|
}
|
2018-07-19 11:01:31 -04:00
|
|
|
</style>
|
|
|
|
<title>OpenLayers example</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="map" class="map"></div>
|
|
|
|
<script src="./map.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|