File tree Expand file tree Collapse file tree 7 files changed +10
-15
lines changed Expand file tree Collapse file tree 7 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 1
- import React , { FunctionComponent } from 'react' ;
1
+ import React from 'react' ;
2
2
import { createRoot } from 'react-dom/client' ;
3
3
4
4
import { APIProvider , Map } from '@vis.gl/react-google-maps' ;
@@ -9,9 +9,10 @@ const API_KEY = process.env.GOOGLE_MAPS_API_KEY as string;
9
9
const App = ( ) => (
10
10
< APIProvider apiKey = { API_KEY } >
11
11
< Map
12
- zoom = { 10 }
13
- center = { { lat : 53 .54992, lng : 10.00678 } }
12
+ zoom = { 3 }
13
+ center = { { lat : 22 .54992, lng : 0 } }
14
14
gestureHandling = { 'greedy' }
15
+ disableDefaultUI = { true }
15
16
/>
16
17
< ControlPanel />
17
18
</ APIProvider >
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ import * as React from 'react';
3
3
function ControlPanel ( ) {
4
4
return (
5
5
< div className = "control-panel" >
6
- < h3 > Example Template </ h3 >
6
+ < h3 > Basic Map </ h3 >
7
7
< p >
8
- Add a brief description of the example here and update the link below
8
+ The simplest example possible, just rendering a google map with some
9
+ settings adjusted.
9
10
</ p >
10
11
< div className = "source-link" >
11
12
< a
Original file line number Diff line number Diff line change @@ -63,18 +63,12 @@ export const GetStartedLink = styled.a`
63
63
font-weight: bold;
64
64
margin: 24px 0;
65
65
padding: 0 4rem;
66
- pointer-events: all;
67
66
display: inline-block;
68
67
text-decoration: none;
69
68
transition: background-color 250ms ease-in, color 250ms ease-in;
70
69
border: solid 2px var(--ifm-color-primary);
71
70
color: var(--ifm-color-gray-200);
72
- border-image: linear-gradient(
73
- to right,
74
- var(--ifm-color-gray-700) 0%,
75
- var(--ifm-color-gray-400) 100%
76
- );
77
- border-image-slice: 2;
71
+
78
72
&:visited {
79
73
color: var(--ifm-color-gray-200);
80
74
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import Layout from '@theme/Layout';
7
7
const HeroExample = styled . div `
8
8
background-image: url(images/hero.jpg);
9
9
background-size: cover;
10
- background-position: center;
10
+ background-position: top center;
11
11
height: 100%;
12
12
` ;
13
13
@@ -36,7 +36,6 @@ const TextContainer = styled.div`
36
36
hr {
37
37
border: none;
38
38
background: #e1e8f0;
39
- height: 1px;
40
39
margin: 24px 0 0;
41
40
width: 32px;
42
41
height: 2px;
Original file line number Diff line number Diff line change 22
22
--ifm-color-gray-700 : # 6F8196 ;
23
23
--ifm-color-gray-800 : # 485668 ;
24
24
--ifm-color-gray-900 : # 2B3848 ;
25
- --ifm-color-black : # 19202C
25
+ --ifm-color-black : # 19202C;
26
26
--code-font-size : 95% ;
27
27
}
28
28
main .container {
You can’t perform that action at this time.
0 commit comments