-
Notifications
You must be signed in to change notification settings - Fork 2
/
turf.html
250 lines (232 loc) · 11.6 KB
/
turf.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<!DOCTYPE html>
<html class="no-js">
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" type="image/png" href="images/favicon.png">
<title>Turf</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
================================================== -->
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Template CSS Files
================================================== -->
<!-- Twitter Bootstrs CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Ionicons Fonts Css -->
<link rel="stylesheet" href="css/ionicons.min.css">
<!-- animate css -->
<link rel="stylesheet" href="css/animate.css">
<!-- Hero area slider css-->
<link rel="stylesheet" href="css/slider.css">
<!-- owl craousel css -->
<link rel="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" href="css/owl.theme.css">
<link rel="stylesheet" href="css/jquery.fancybox.css">
<!-- template main css file -->
<link rel="stylesheet" href="css/main.css">
<!-- responsive css -->
<link rel="stylesheet" href="css/responsive.css">
<!-- Template Javascript Files
================================================== -->
<!-- modernizr js -->
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
<!-- jquery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- owl carouserl js -->
<script src="js/owl.carousel.min.js"></script>
<!-- bootstrap js -->
<script src="js/bootstrap.min.js"></script>
<!-- wow js -->
<script src="js/wow.min.js"></script>
<!-- slider js -->
<script src="js/slider.js"></script>
<script src="js/jquery.fancybox.js"></script>
<!-- template main js -->
<script src="js/main.js"></script>
<!-- MAP STUFF -->
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.5/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.5/mapbox.css' rel='stylesheet' />
<script src='https://api.tiles.mapbox.com/mapbox.js/plugins/turf/v1.3.0/turf.min.js'></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/plugins/turf/v2.0.2/turf.min.js'></script>
<style>
body { margin:0; padding:0; }
#map { height: 200px; }
</style>
</head>
<body>
<!--
==================================================
Header Section Start
================================================== -->
<header id="top-bar" class="navbar-fixed-top animated-header">
<div class="container">
<div class="navbar-header">
<!-- responsive nav button -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- /responsive nav button -->
<!-- logo -->
<div class="navbar-brand">
<a href="index.html" >
<img src="images/logo.png" alt="">
</a>
</div>
<!-- /logo -->
</div>
<!-- main menu -->
<nav class="collapse navbar-collapse navbar-right" role="navigation">
<div class="main-menu">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="index.html" >Home</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Blog <span class="caret"></span></a>
<div class="dropdown-menu">
<ul>
<li><a href="blog-fullwidth.html">My Thoughts</a></li>
</ul>
</div>
</li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
<!-- /main nav -->
</div>
</header>
<!--
==================================================
Global Page Section Start
================================================== -->
<section class="global-page-header">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="block">
<h2>Turf</h2>
</div>
</div>
</div>
</div>
</section><!--/#Page header-->
<section class="portfolio-single">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="portfolio-single-img">
<div class="post-img">
<img class="img-responsive" alt="" src="images\turf.jpg">
</div>
<div class="portfolio-content">
<p>
<article>
<h2>What is Turf?</h2>
<p>
<a href="https://turfjs.org">Turf</a> is a <a href="https://en.wikipedia.org/wiki/JavaScript_library">JavaScript library</a> for <a href="http://en.wikipedia.org/wiki/Spatial_analysis">spatial analysis</a>. It includes traditional spatial operations, helper functions for creating <a href="http://geojson.org">GeoJSON</a> data, and data classification and statistics tools. Turf can be added to your website as a client-side plugin, or you can <a href="https://www.npmjs.com/package/turf">run Turf server-side</a> with <a href="http://nodejs.org/">Node.js</a>. You can find the source code on <a href="http://github.com/turfjs/turf">GitHub</a>.</p>
</p><br>
</div>
</div>
</div>
</div>
</section>
<!--
==================================================
Portfolio Section Start
================================================== -->
<section id="works" class="works">
<div class="container">
<div class="section-heading">
<h1 class="title wow fadeInDown" data-wow-delay=".3s">Latest Work</h1>
<p class="wow fadeInDown" data-wow-delay=".5s">
Here are some examples.
</p>
<div>
<p>
This map calculates which hospital is closest to each library on the fly.<a href="https://www.mapbox.com/help/analysis-with-turf/">Instructions</a>
</p>
<iframe width="100%" height="320" frameborder="0" src="mapbox/turfexample2.html"allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>
</div>
<div>
<p>
<br>Here is a simple map using the same tutorial that shows Government (HIFLD Open) vs Crowd sourced (OSM) data.
</p>
<iframe width="100%" height="320" frameborder="0" src="http://jwitcoski.github.io/hifld/hifld.html" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>
<p>
Click on the line, it will tell you the length of a line using Turf.JS <a href="https://www.mapbox.com/help/intro-to-turf/#turf-inside">Instructions</a>
</p>
<iframe width="100%" height="320" frameborder="0" src="mapbox/turfexample1.html"allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen></iframe>
</div>
</div>
</section> <!-- #works -->
<!--
==================================================
Call To Action Section Start
================================================== -->
<section id="call-to-action">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="block">
<h2 class="title wow fadeInDown" data-wow-delay=".3s" data-wow-duration="300ms">SO WHAT YOU THINK ?</h1>
<p class="wow fadeInDown" data-wow-delay=".5s" data-wow-duration="300ms">Send Me a Message</p>
<a href="#" class="btn btn-default btn-contact wow fadeInDown" data-wow-delay=".7s" data-wow-duration="300ms">Contact Page</a>
</div>
</div>
</div>
</div>
</section>
<!--
==================================================
Footer Section Start
================================================== -->
<footer id="footer">
<div class="container">
<div class="col-md-8">
<p class="copyright">Copyright: <span>2015</span> . Design and Developed by <a href="http://www.Themefisher.com">Jonathan using Themefisher template</a></p>
</div>
<!-- Social Media -->
<ul class="social">
<li>
<a href="https://twitter.com/mappingthings" class="Twitter">
<i class="ion-social-twitter"></i>
</a>
</li>
<li>
<a href="https://www.linkedin.com/in/jonathanwitcoski" class="Linkedin">
<i class="ion-social-linkedin"></i>
</a>
</li>
<li>
<a href="mailto:jwitcoski@gmail.com" class="email">
<i class="ion-ios-email"></i>
</a>
</li>
<li>
<a href="https://mappingthings.wordpress.com/" class="email">
<i class="ion-social-wordpress"></i>
</a>
</li>
<li>
<a href="https://www.openstreetmap.org/user/jonwit" class="openstreetmap">
<i class="ion-map"></i>
</a>
</li>
</ul>
</div>
</div>
</footer> <!-- /#footer -->
</body>
</html>
</html>