-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
161 lines (139 loc) · 3.87 KB
/
index.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WKT</title>
<style>
html,
body {
margin: 0;
height: 100%;
width: 100%;
background-color: black;
}
#map {
height: 100%;
margin-left: 300px;
}
#sidebar {
height: 100%;
width: 300px;
box-sizing: border-box;
float: left;
padding: 40px 10px 10px 10px;
color: rgb(204, 204, 204);
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
}
#inWkt {
padding: 5px;
width: 270px;
color: rgb(204, 204, 204);
background-color: rgb(20, 20, 20);
}
#sidebar label {
padding: 5px;
width: 270px;
color: rgb(204, 204, 204);
}
#sidebar small {
display: block;
padding: 5px;
color: rgb(143, 143, 143);
}
#lblInfo {
font-style: italic;
font-size: 12px;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(46, 54, 57); /* Fallback color */
background-color: rgba(46, 54, 57,0.4); /* Black w/ opacity */
font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
}
/* Modal Content */
.modal-content {
background-color: rgb(46, 54, 57);
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
/* The Close Button */
.modal-content .close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.modal-content .close:hover,
.modal-content .close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
/* Create three equal columns that floats next to each other */
.modal-content .column {
float: left;
width: 30%;
padding: 5px;
margin: 5px;
}
/* Clear floats after the columns */
.modal-content .row:after {
content: "";
display: table;
clear: both;
}
.modal-content #lblModalInfo {
color: rgb(204, 204, 204);
}
.transform-textarea {
width: 98%;
color: rgb(204, 204, 204);
background-color: rgb(20, 20, 20);
}
</style>
</head>
<body>
<div id="transformerModal" class="modal">
<div class="modal-content">
<span class="close-transformer-modal">×</span>
<label id="lblModalInfo"></label>
<div class="row">
<div class="column" style="background-color:#aaa;">
<label>WKT</label>
<textarea id="inTransformWkt" rows="25" class="transform-textarea"></textarea>
</div>
<div class="column" style="background-color:#bbb;">
<label>GeoJSON</label>
<textarea id="inTransformGeoJson" rows="25" class="transform-textarea"></textarea>
</div>
<div class="column" style="background-color:#ccc;">
<label>ArcGIS JSON</label>
<textarea id="inTransformArcGisJson" rows="25" class="transform-textarea"></textarea>
</div>
</div>
</div>
</div>
<div id="sidebar">
<label>Enter some Well-Known Text</label>
<textarea id="inWkt" rows="20"></textarea>
<label id="lblInfo"></label>
<br/><br/>
<small>coordinates in WGS84 datum (EPSG:4326), projection in Web Mercator (EPSG:3857)</small>
<br/>
<button id="openTransforBtn">Open Transform</button>
</div>
<div id="map"></div>
<script type="module" src="./main.js"></script>
</body>
</html>