Skip to content

Instantly share code, notes, and snippets.

@jthoms1
Last active October 12, 2022 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthoms1/f03bb368a8ea05a06a947bc1591678e4 to your computer and use it in GitHub Desktop.
Save jthoms1/f03bb368a8ea05a06a947bc1591678e4 to your computer and use it in GitHub Desktop.
Why_not
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