-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
147 lines (139 loc) · 4.93 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
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>geojson <> arcjson</title>
<link rel="icon" type="image/png" href="images/brs.png">
<link rel="stylesheet" type="text/css" href="css/geo.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="js/geo.js" type="text/javascript"></script>
<script src="js/geoutils.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<div class="row">
<span class="navbar navbar-fixed-top">
<span class="col-lg-2"></span>
<h2 class="col-lg-6">Convert between GeoJSON and ArcJSON</h2>
<a class="col-lg-4" href="//brightrain.com" target="_blank"><img id="logo-img"
src="//brightrain.com/images/brightrain.png" /></a>
</span>
</div>
<div class="container">
<div class="row">
<div id="geojson-container" class="col-lg-6">
<div class="panel">geoJson to arcJson</div>
<textarea id="geojson" name="the-geojson" class="col-lg-12" rows=25 placeholder="geojson happens here">
</textarea>
<button id="select-geojson-btn" class="btn select-all">select all</button>
<button id="clear-geojson-btn" class="btn text-float">clear</button>
</div>
<div id="arcjson-container" class="col-lg-6">
<div class="panel">results</div>
<textarea id="arcjson" class="col-lg-12" rows=25 placeholder="arcjson happens here">
</textarea>
<button id="select-arcjson-btn" class="btn select-all">select all</button>
<button id="clear-results-btn" class="btn text-float">clear</button>
</div>
</div>
<div class="row">
<div class="col-lg-1">
<button id="see-geojson-example-btn" class="btn" title="see example geojson input"><small>example</small></button>
</div>
<div class="col-lg-2"></div>
<div class="col-lg-2">
<button type="submit" id="convert-to-arcjson-btn" class="btn">to arcjson > </button>
</div>
<div class="col-lg-2"></div>
<div class="col-lg-2">
<button type="submit" id="convert-to-geojson-btn" class="btn">< to geojson</button>
</div>
<div class="col-lg-1"></div>
<div class="col-lg-1">
<button id="see-arcjson-example-btn" class="btn float-right" title="see example arcjson input"><small>example</small></button>
</div>
</div>
<div id="err" class="row alert alert-danger">
<strong class="col-lg-12">Hmmm, something went wrong, you sure the input geojson is formatted correctly?</strong>
</div>
</div>
<div class="modal fade" id="arcjson-example-modal" tabindex="-1" role="dialog" aria-labelledby="arcjson-example-modal-label">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">ArcJSON FORMAT EXAMPLE</h4>
</div>
<div class="modal-body">
<p id="arcjson-json" class="example-text">
{
"features": [
{
"geometry": {
"x": -56.093017578125,
"y": -15.614990234375
},
"attributes": {
"OBJECTID": 1,
"CITY_NAME": "Cuiaba",
"POP": 521934,
"POP_RANK": 3,
"POP_CLASS": "500,000 to 999,999",
"LABEL_FLAG": 0
}
}
]
}
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="geojson-example-modal" tabindex="-1" role="dialog" aria-labelledby="geojson-example-modal-label">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">GeoJSON FORMAT EXAMPLE</h4>
</div>
<div class="modal-body">
<p id="geojson-json" class="example-text">
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-56.093017578125,
-15.614990234375
]
},
"properties": {
"OBJECTID": 1,
"CITY_NAME": "Cuiaba",
"POP": 521934,
"POP_RANK": 3,
"POP_CLASS": "500,000 to 999,999",
"LABEL_FLAG": 0
}
}
]
}
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
</html>