Skip to content

how to Load my mapId #2594

Discussion options

You must be logged in to vote
      <LoadScript
        mapIds={['mymapid']}
        googleMapsApiKey={process.env.REACT_APP_GOOGLE_API_KEY as string}>
        <GoogleMap
          zoom={2.3}
          center={{ lat: 0, lng: 150.644 }}
          mapContainerStyle={{
            width: '100%',
            height: '100%',
          }}
 options={{
            mapId: 'mymapid',
          }}
        />

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jeonghun-project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant