Skip to content

Instantly share code, notes, and snippets.

@theronic
Created June 6, 2023 11:39
Show Gist options
  • Save theronic/d1b49a4970b7eb1dff624924f49203be to your computer and use it in GitHub Desktop.
Save theronic/d1b49a4970b7eb1dff624924f49203be to your computer and use it in GitHub Desktop.
Example to show why Google Maps React component does not work with Framer
// Welcome to Code in Framer
// Get Started: https://www.framer.com/docs/guides/
import Example from "https://framer.com/m/framer/Example.js@^1.0.0"
import { Map, InfoWindow, Marker, GoogleApiWrapper } from "google-maps-react"
const YOUR_GOOGLE_API_KEY_GOES_HERE = "<your API keys goes here>"
const MapContainer = (props) => {
return (
<Map google={this.props.google} zoom={14}>
</Map>
)
}
export default GoogleApiWrapper({
apiKey: YOUR_GOOGLE_API_KEY_GOES_HERE,
})(MapContainer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment