-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·381 lines (356 loc) · 17 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
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<html><head>
<meta charset="utf-8">
<title>react-d3-map</title>
<meta name="description" content="Painless Building D3 Charts - A whole new solution for building reusable components for d3 charts.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="57x57" href="/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png">
<link rel="manifest" href="/favicon/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- Google fonts - which you want to use - (rest you can just remove) -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic,700,700italic,800,800italic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic" rel="stylesheet" type="text/css">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/animate.css">
<link rel="stylesheet" href="/css/prettyPhoto.css">
<link rel="stylesheet" href="/css/owl.carousel.css">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/responsive.css">
<link rel="stylesheet" href="/css/github-markdown.css">
<link rel="stylesheet" href="/css/prism.css">
<style>
.markdown-body {
min-width: 200px;
max-width: 850px;
margin: 0 auto;
padding: 30px;
}
.glyphicon {
padding-right: 10px;
}
</style>
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<script src="https://cdn.jsdelivr.net/react/0.14.0/react-dom.js"></script>
</head>
<body id="top">
<header>
<!-- NAVIGATION -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- LOGO -->
<a class="navbar-brand page-scroll" href="#page-top">
<img src="/img/react-d3_2.png" alt="" style="width:150px">
</a>
<!-- END LOGO -->
</div>
<!-- TOGGLE NAV -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-left">
<li class="hidden">
<a href="#page-top"></a>
</li>
<li>
<a href="/get_start">Get Started</a>
</li>
<!-- <li>
<a href="/docs">Docs</a>
</li> -->
<li>
<a href="/gallery">Gallery</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="http://reactd3.org">React-d3 charts</a>
</li>
<li>
<a href="http://github.com/react-d3">Github</a>
</li>
</ul>
</div>
<!-- TOGGLE NAV -->
</div>
<!-- /.container -->
</nav>
<!-- END NAVIGATION -->
</header>
<!-- HOME -->
<div id="home-area">
<div class="overlay">
<div class="container">
<div class="row">
<!-- HOME CONTENT -->
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="home-content wow fadeInLeft" data-wow-duration="1s" data-wow-delay="0s">
<h1>A Javascript Library For Building Composable And Declarative Maps</h1>
<p>A whole new solution for building reusable components for your maps</p>
</div>
</div>
<!-- END HOME CONTENT -->
<!-- HOME FEATURE IMAGE -->
<div class="col-md-10 col-sm-10 col-xs-12">
<div class="home-feature pull-right center-block wow bounceIn" data-wow-duration="1s" data-wow-delay="1s">
<a href="/get_start">
<button type="button" class="btn btn-danger btn-lg">Get Started</button>
</a>
</div>
</div>
<!-- END HOME FEATURE IMAGE -->
</div>
</div>
</div>
</div>
<!-- END HOME -->
<!-- SERVICES -->
<a name="0"></a>
<section id="services" class="section text-center">
<div class="container">
<h2 class="section-title wow fadeIn">Introduction</h2>
<div class="row text-left wow fadeInRight" data-wow-duration="1s" data-wow-delay=".3s">
<div class="col-md-4 col-sm-6">
<div class="single-service text-left wow fadeInRight" data-wow-duration="1s" data-wow-delay=".3s">
<div class="row" style="margin-bottom:20px">
<div class="col-md-12">
<div class="service-content">
<h3><span class="glyphicon glyphicon-refresh"></span>Preserve d3 flexibility</h3>
<p><code>react-d3-map</code> is a highly modular map library. You can build new interactive maps like leaflet, openlayers. And you could also build customized data visualization maps you love! </p>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="single-service text-left wow fadeInRight" data-wow-duration="1s" data-wow-delay=".3s">
<div class="row" style="margin-bottom:20px">
<div class="col-md-12">
<div class="service-content">
<h3><span class="glyphicon glyphicon-stats"></span>Provide high level chart library</h3>
<p><code>react-d3-map</code> support high level components that you can build your shapes like polygons, points, markers, lines ... etc. By importing the exact module you need.</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6">
<div class="single-service text-left wow fadeInRight" data-wow-duration="1s" data-wow-delay=".3s">
<div class="row" style="margin-bottom:20px">
<div class="col-md-12">
<div class="service-content">
<h3><span class="glyphicon glyphicon-retweet"></span>Better data flow, and structures</h3>
<p><code>react-d3-map</code> combine the power of <code>d3</code> flexibility and the data flow, structures, components, virtual DOM, and others benefits that <code>react.js</code> provide.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!--.row-->
</div>
<!--/.container -->
</section>
<a name="1"></a>
<section id="services" class="section text-center">
<div class="container">
<h2 class="section-title wow fadeIn">Demo</h2>
<div class="row text-left wow fadeInRight" data-wow-duration="1s" data-wow-delay=".3s">
<div class="markdown-body">
<div class="single-service text-left wow fadeInRight" data-wow-duration="1s" data-wow-delay=".3s">
<div class="row" style="margin-bottom:20px">
<div class="service-content">
<h1 id="building-a-interactive-map">Building a interactive map</h1>
<p><code>react-d3-map</code> can make you easily build interactive map just like leaflet, openlayers. But we replace layers with SVG components. Which can make us access to DOM more easily.</p>
<p></p><div id="blank-point" class="demo"></div><p></p>
<script src="/react-d3-example/dist/map_detail/min/interactive_marker.min.js"></script>
<pre><code class="lang-js">ReactDOM.render(
<Map
width= {width}
height= {height}
scale= {scale}
scaleExtent= {scaleExtent}
center= {center}
>
<MarkerGroup
key= {"polygon-test"}
data= {data}
popupContent= {popupContent}
onClick= {onMarkerClick}
onCloseClick= {onMarkerCloseClick}
onMouseOver= {onMarkerMouseOver}
onMouseOut= {onMarkerMouseOut}
markerClass= {"your-marker-css-class"}
/>
</Map>
, document.getElementById('blank-point')
)
</code></pre>
</div>
</div>
</div>
</div>
<div class="markdown-body">
<div class="single-service text-left wow fadeInRight" data-wow-duration="1s" data-wow-delay=".3s">
<div class="row" style="margin-bottom:20px">
<div class="service-content">
<h1 id="map-bubble">Map bubble</h1>
<p><code>react-d3-map-bubble</code> provide high level component, that you can build your bubble map plot in ease.</p>
<p></p><div id="blank-earthquake" class="demo"></div><p></p>
<script src="/react-d3-example/dist/map_detail/min/earthquake.min.js"></script>
<pre><code class="lang-js">ReactDOM.render(
<MapBubble
width= {width}
height= {height}
domain= {domain}
dataCircle= {circles}
circleValue= {circleValue}
circleClass= {'bubble'}
circleX= {circleX}
circleY= {circleY}
tooltipContent= {tooltipContent}
projection= {projection}
precision= {precision}
translate= {translate}
scale= {scale}
showGraticule= {true}
showTooltip= {true}
showLegend= {false}
showTile= {true}
/>
, document.getElementById('blank-earthquake')
)
</code></pre>
</div>
</div>
</div>
</div>
<div class="markdown-body">
<div class="single-service text-left wow fadeInRight" data-wow-duration="1s" data-wow-delay=".3s">
<div class="row" style="margin-bottom:20px">
<div class="service-content">
<h1 id="map-with-orthographic">Map with orthographic</h1>
<p>Using components in <code>react-d3-map</code> and <code>react-d3-map-core</code>, you can build your own reusable maps, such as orthographic in maps.</p>
<p></p><div id="blank-multipolygon" class="demo"></div><p></p>
<script src="/react-d3-example/dist/map_detail/min/ortho_polygon.min.js"></script>
<pre><code class="lang-js">ReactDOM.render(
<MapOrthographic
width= {width}
height= {height}
scale= {scale}
scaleExtent= {scaleExtent}
center= {center}
clip={true}
bounds={[[0, 0], [width, height]]}
>
<Container/>
</MapOrthographic>
, document.getElementById('blank-multipolygon')
)
</code></pre>
</div>
</div>
</div>
</div>
<div class="markdown-body">
<div class="single-service text-left wow fadeInRight" data-wow-duration="1s" data-wow-delay=".3s">
<div class="row" style="margin-bottom:20px">
<div class="service-content">
<h1 id="map-choropleth">Map choropleth</h1>
<p><code>react-d3-map-choropleth</code> provide high level component, that you can build your choropleth map plot in ease.</p>
<p></p><div id="blank-twpopulation" class="demo"></div><p></p>
<script src="/react-d3-example/dist/map_detail/min/twpopulation.min.js"></script>
<pre><code class="lang-js">ReactDOM.render(
<MapChoropleth
width= {width}
height= {height}
dataPolygon= {dataCounties}
dataMesh= {dataMeshCounties}
scale= {scale}
domain= {domain}
domainData= {valArr}
domainValue= {domainValue}
domainKey= {domainKey}
mapKey = {mapKey}
center= {center}
projection= {projection}
showGraticule= {false}
tooltipContent= {tooltipContent}
showTooltip= {true}
showTile= {true}
/>
, document.getElementById('blank-twpopulation')
)
</code></pre>
</div>
</div>
</div>
</div>
</div>
<!--.row-->
</div>
<!--/.container -->
</section>
<!-- END SERVICES -->
<!-- FOOTER -->
<footer>
<div class="container">
<div class="row">
<!-- FOOTER MENU -->
<div class="col-md-6">
</div>
<!-- END FOOTER MENU -->
<!-- FOOTER CONTENT -->
<div class="col-md-6">
<div class="footer-content text-right">
<p>© 2015 License Apache2.0, <a href="/">react-d3-map</a>
</p>
</div>
</div>
<!-- END FOOTER CONTENT -->
</div>
<!-- /.row -->
</div>
<!-- ./container -->
</footer>
<!-- js files -->
<script src="/js/vendor/jquery-1.10.2.min.js"></script>
<script src="/js/plugins.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/wow.min.js"></script>
<script src="/js/prettyPhoto.js"></script>
<script src="/js/owl.carousel.min.js"></script>
<script src="/js/main.js"></script>
<script src="/js/prism.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-67901975-1', 'auto');
ga('send', 'pageview');
</script>
</body></html>