forked from matnel/react-maps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (37 loc) · 1.43 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
<!doctype html>
<html>
<head>
<title>React Maps</title>
<link rel="stylesheet" href="demo/style.css">
</head>
<body>
<h1>React Maps</h1>
<div id="map"></div>
<!-- <pre class="install-sh">npm install react-maps --save</pre> -->
<hr>
<ul>
<li><a href="demo/refreshable.html">Refreshable</a></li>
<li><a href="demo/multiple.html">Multiple Maps</a></li>
<li><a href="demo/polylines.html">Polylines</a></li>
</ul>
<pre class="demo"></pre>
<hr>
<div class="footer">
<p>made for fun by <a href="http://twitter.com/iamdanfox">iamdanfox</a></p>
<iframe src="http://ghbtns.com/github-btn.html?user=iamdanfox&repo=react-maps&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/0.10.0/react.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/react/0.10.0/JSXTransformer.js"></script>
<script src="src/map.js" type="text/javascript"></script>
<script type="text/jsx" class="demo"> /** @jsx React.DOM */
points = [
{latitude:60.1876172,longitude:24.815366},
{latitude:60.2049747,longitude:24.9634712}
]
React.renderComponent(
<Map points={points} initLat={60.17} initLon={24.94} initZoom={9} width={600} height={300} />,
document.querySelector('#map')
)</script>
<!-- Copy javascript into <pre> and colour it nicely -->
<script src="demo/highlighter.js"></script>
</body>