-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelineo.html
138 lines (107 loc) · 2.61 KB
/
delineo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head data-dir="${dir}">
<title>GEOLYTIX | Co-op | Delineo</title>
<link rel="icon" type="image/x-icon" href="${dir}/icons/favicon.ico" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="${dir}/css/openlayers.css" />
<link rel="stylesheet" href="${dir}/css/control.css" />
<script src="${dir}/js/xyz_openlayers.js" defer></script>
<script src="${dir}/api/provider/github?url=api.github.com/repos/GEOLYTIX/coop/contents/delineo.js" defer></script>
<style>
* {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
#Grid {
display: grid;
grid-gap: 20px;
grid-template-columns: 300px 1fr;
grid-template-rows: 1fr;
padding-bottom: 30px;
}
#Focus {
grid-row: 1;
grid-column: 1;
z-index: 9999;
}
#Locale {
grid-row: 2;
grid-column: 1;
}
#Map {
grid-row: 1/3;
grid-column: 2;
overflow: hidden;
position: relative;
height: 500px;
}
._attribution {
z-index: 999;
position: absolute;
bottom: 0;
width: 100%;
text-overflow: ellipsis;
overflow: hidden;
text-align: left;
white-space: nowrap;
background-color: #fff;
opacity: 0.9;
padding: 5px;
font-size: 10px;
font-weight: bold;
}
.ol-control button {
color: #000;
font-size: 1.5em;
height: 1.5em;
width: 1.5em;
background-color: #fff;
}
body>div {
margin: auto 50px;
}
@media only screen and (max-width: 900px) {
body>div {
margin: auto 30px;
}
#Grid {
grid-template-columns: 1fr 1fr;
}
#Focus {
grid-row: 1;
grid-column: 1/3;
}
#Map {
grid-row: 2;
grid-column: 1/3;
}
#Locale {
grid-row: 3;
grid-column: 1/3;
}
}
</style>
</head>
<body>
<div id="Grid">
<div id="Focus">
<div>Find a locale</div>
<div id="Gazetteer" class="input-drop">
<input type="text" placeholder="Search places">
<ul></ul>
</div>
</div>
<div id="Locale" class="location-view"></div>
<div id="Map">
<div class="_attribution">
<a target="_blank" href="https://github.com/geolytix/xyz">GEOLYTIX XYZ</a> |
<a target="_blank" href="https://openlayers.org">Openlayers</a> |
<a target="_blank" href="https://www.mapbox.com/about/maps">Mapbox</a>
</div>
</div>
</div>
</body>
</html>