Last active
October 12, 2022 16:34
-
-
Save jthoms1/f03bb368a8ea05a06a947bc1591678e4 to your computer and use it in GitHub Desktop.
Why_not
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { GoogleMap } from '@capacitor/google-maps'; | |
const MyMap: React.FC = () => { | |
return ( | |
<div className="component-wrapper"> | |
<GoogleMap | |
apiKey={process.env.REACT_APP_YOUR_API_KEY_HERE} | |
config={{ | |
center: { | |
lat: 33.6, | |
lng: -117.9 | |
}, | |
zoom: 8 | |
}} | |
style={{ | |
display: 'inline-block', | |
width: 275, | |
height: 400 | |
}} | |
></GoogleMap> | |
</div> | |
) | |
} | |
export default MyMap; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment