This repository has been archived by the owner on Nov 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.jsx
103 lines (95 loc) · 3.02 KB
/
index.jsx
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
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import Map from './src/components/Map';
ReactDOM.render(
<div>
Example of using a Google Map (Location: 1600 Amphitheatre Parkway, Mountain View CA United States)
<Map provider='google'
mapId='googleLocation'
addressLine1='1600 Amphitheatre Parkway'
city='Mountain View'
state='CA'
country='United States'
zoom={15}
height={270}
width={580}
/>
<br />
Example of using a Google Map (Latitude: 51.477222, Longitude: 0)
<Map provider='google'
mapId='googleLocation'
latitude={51.477222}
longitude={0}
zoom={15}
height={270}
width={580} />
<br />
Example of using a Yahoo Map (Location: 701 First Avenue, Sunnyvale CA United States)
<Map
provider='yahoo'
mapId='yahooLocation'
addressLine1='701 First Avenue'
city='Sunnyvale'
state='CA'
country='United States'
zoom={15}
height={270}
width={580}
/>
<br />
Example of using a Yahoo Map (Latitude: 51.477222, Longitude: 0)
<Map
provider='yahoo'
mapId='yahooLocation'
latitude={51.477222}
longitude={0}
zoom={15}
height={270}
width={580}
/>
<br />
Example of using a Bing Map (Location: One Microsoft Way, Redmond WA United States)
<Map
provider='bing'
providerKey='AkcOTa579AYlvB3OsS4N5OpCPsxG2rUiVQibQEwneylAPIuyhAim3paIGLZp7ukc'
mapId='bing'
addressLine1='One Microsoft Way'
city='Redmond'
state='WA'
country='United States'
zoom={15}
height={270}
width={580}
/>
<br />
Example of using a Bing Map (Latitude: 51.477222, Longitude: 0)
<Map
provider='bing'
providerKey='AkcOTa579AYlvB3OsS4N5OpCPsxG2rUiVQibQEwneylAPIuyhAim3paIGLZp7ukc'
mapId='bing'
latitude={51.477222}
longitude={0}
zoom={15}
height={270}
width={580}
/>
<br />
Example of using a Bing Map as a background image (Latitude: 51.477222, Longitude: 0)
<Map
provider='bing'
providerKey='AkcOTa579AYlvB3OsS4N5OpCPsxG2rUiVQibQEwneylAPIuyhAim3paIGLZp7ukc'
mapId='bing'
latitude={51.477222}
longitude={0}
zoom={15}
height={270}
useBackgroundImageStyle={true}
/>
<br />
</div>,
document.getElementById('content'));