Created
June 6, 2023 11:39
-
-
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
This file contains 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
// 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