1
+
2
+ const K_EXAMPLES_SOURCE_ROOT = 'https://github.com/istarkov/google-map-react-examples/blob/master/web/flux/components/examples/' ;
3
+
1
4
const exampleDefs = {
2
5
main : {
3
6
title : 'MAIN EXAMPLE' ,
@@ -9,36 +12,42 @@ const exampleDefs = {
9
12
'Ability to hover on every marker <i>(zoom out to test)</i>;<br/>' +
10
13
'Hover probability <i>(different hover probability for markers)</i>;<br/>' +
11
14
'No map moving on balloon open.<br/><br/>' +
12
- '</div>'
15
+ '</div>' ,
16
+ source : K_EXAMPLES_SOURCE_ROOT + 'x_main/main_map_block.jsx'
13
17
} ,
14
18
15
19
simple : {
16
20
title : 'SIMPLE EXAMPLE' ,
17
21
info : 'Base map usage example. <br/>' +
18
- 'Show any react component on the map.'
22
+ 'Show any react component on the map.' ,
23
+ source : K_EXAMPLES_SOURCE_ROOT + 'x_simple/simple_map_page.jsx'
19
24
} ,
20
25
21
26
simple_hover : {
22
27
title : 'SIMPLE HOVER EXAMPLE' ,
23
- info : 'Show base of internal hover algorithm.'
28
+ info : 'Show base of internal hover algorithm.' ,
29
+ source : K_EXAMPLES_SOURCE_ROOT + 'x_simple_hover/simple_hover_map_page.jsx'
24
30
} ,
25
31
26
32
distance_hover : {
27
33
title : 'DISTANCE HOVER EXAMPLE' ,
28
34
info : 'Show how to use internal hover algorithm.<br/>' +
29
35
'For use with non symmetric markers, or to tweak hover probability on some kind of markers.<br/>' +
30
- 'There is more probable to hover on marker A at this example.'
36
+ 'There is more probable to hover on marker A at this example.' ,
37
+ source : K_EXAMPLES_SOURCE_ROOT + 'x_distance_hover/distance_hover_map_page.jsx'
31
38
} ,
32
39
33
40
events : {
34
41
title : 'EVENTS EXAMPLE' ,
35
42
info : 'Be sure you understand <a href="https://github.com/matthewwithanm/react-controllables">react-controllables</a>.<br/>' +
36
- 'Click on markers.'
43
+ 'Click on markers.' ,
44
+ source : K_EXAMPLES_SOURCE_ROOT + 'x_events/events_map_page.jsx'
37
45
} ,
38
46
39
47
balderdash : {
40
48
title : 'BALDERDASH' ,
41
- info : 'Many different markers.'
49
+ info : 'Many different markers.' ,
50
+ source : K_EXAMPLES_SOURCE_ROOT + 'x_main/main_map_block.jsx'
42
51
}
43
52
} ;
44
53
0 commit comments